summaryrefslogtreecommitdiff
path: root/prebuilts/gradle/NetworkConnect/Application
diff options
context:
space:
mode:
authorTrevor Johns <trevorjohns@google.com>2015-03-30 13:44:30 -0700
committerTrevor Johns <trevorjohns@google.com>2015-03-30 15:58:45 -0700
commitababd389951170f605d0f48f1b7877ab7b7cbe1c (patch)
treecb31b0ba8937337ce45b6f973c1fe1893dcbc4cf /prebuilts/gradle/NetworkConnect/Application
parent21e64c7921d245ed0540747f6fd4ae2cba25f0ba (diff)
downloadbuild-ababd389951170f605d0f48f1b7877ab7b7cbe1c.tar.gz
Update prebuilts for Android samples
Synced to developers/samples/android commit 97b2cfe5ba6d8fa8daaf3273141b321b5fe9e910. Change-Id: Icba85cdb6246b3fc11a72a20b10cd2658c5f42d7
Diffstat (limited to 'prebuilts/gradle/NetworkConnect/Application')
-rw-r--r--prebuilts/gradle/NetworkConnect/Application/build.gradle5
-rwxr-xr-xprebuilts/gradle/NetworkConnect/Application/src/main/res/layout/activity_main.xml36
-rw-r--r--prebuilts/gradle/NetworkConnect/Application/tests/src/com/example/android/networkconnect/tests/SampleTests.java24
3 files changed, 2 insertions, 63 deletions
diff --git a/prebuilts/gradle/NetworkConnect/Application/build.gradle b/prebuilts/gradle/NetworkConnect/Application/build.gradle
index 3e25a83b..ccff6ac9 100644
--- a/prebuilts/gradle/NetworkConnect/Application/build.gradle
+++ b/prebuilts/gradle/NetworkConnect/Application/build.gradle
@@ -14,13 +14,10 @@ repositories {
jcenter()
}
-
dependencies {
-
compile "com.android.support:support-v4:21.0.2"
compile "com.android.support:gridlayout-v7:21.0.2"
compile "com.android.support:cardview-v7:21.0.2"
-
}
// The sample build uses multiple directories to
@@ -33,7 +30,7 @@ List<String> dirs = [
android {
compileSdkVersion 21
- buildToolsVersion "21.1.1"
+ buildToolsVersion "21.1.2"
defaultConfig {
minSdkVersion 8
diff --git a/prebuilts/gradle/NetworkConnect/Application/src/main/res/layout/activity_main.xml b/prebuilts/gradle/NetworkConnect/Application/src/main/res/layout/activity_main.xml
deleted file mode 100755
index be1aa49d..00000000
--- a/prebuilts/gradle/NetworkConnect/Application/src/main/res/layout/activity_main.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<!--
- Copyright 2013 The Android Open Source Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
-
- <LinearLayout style="@style/Widget.SampleMessageTile"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
-
- <TextView style="@style/Widget.SampleMessage"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="@dimen/horizontal_page_margin"
- android:layout_marginRight="@dimen/horizontal_page_margin"
- android:layout_marginTop="@dimen/vertical_page_margin"
- android:layout_marginBottom="@dimen/vertical_page_margin"
- android:text="@string/intro_message" />
- </LinearLayout>
-</LinearLayout>
diff --git a/prebuilts/gradle/NetworkConnect/Application/tests/src/com/example/android/networkconnect/tests/SampleTests.java b/prebuilts/gradle/NetworkConnect/Application/tests/src/com/example/android/networkconnect/tests/SampleTests.java
index a5549647..ab441b24 100644
--- a/prebuilts/gradle/NetworkConnect/Application/tests/src/com/example/android/networkconnect/tests/SampleTests.java
+++ b/prebuilts/gradle/NetworkConnect/Application/tests/src/com/example/android/networkconnect/tests/SampleTests.java
@@ -1,22 +1,4 @@
/*
-* Copyright 2013 The Android Open Source Project
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-
-
-/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -43,7 +25,6 @@ import android.test.ActivityInstrumentationTestCase2;
public class SampleTests extends ActivityInstrumentationTestCase2<MainActivity> {
private MainActivity mTestActivity;
- private NetworkConnectFragment mTestFragment;
public SampleTests() {
super(MainActivity.class);
@@ -58,8 +39,6 @@ public class SampleTests extends ActivityInstrumentationTestCase2<MainActivity>
// flags = {@link Intent#FLAG_ACTIVITY_NEW_TASK}
// All other fields are null or empty.
mTestActivity = getActivity();
- mTestFragment = (NetworkConnectFragment)
- mTestActivity.getSupportFragmentManager().getFragments().get(1);
}
/**
@@ -69,11 +48,10 @@ public class SampleTests extends ActivityInstrumentationTestCase2<MainActivity>
//Try to add a message to add context to your assertions. These messages will be shown if
//a tests fails and make it easy to understand why a test failed
assertNotNull("mTestActivity is null", mTestActivity);
- assertNotNull("mTestFragment is null", mTestFragment);
}
/**
* Add more tests below.
*/
-} \ No newline at end of file
+}