File tree 40 files changed +93
-168
lines changed
integration/ServiceTestRuleSample
runner/AndroidJunitRunnerSample/app
40 files changed +93
-168
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ A collection of samples demonstrating different frameworks and techniques for au
7
7
Prerequisites
8
8
--------------
9
9
10
- - Android SDK v22
11
- - Android Build Tools v22
12
- - Android Support Repository rev15
10
+ - Android SDK v23
11
+ - Android Build Tools v23
12
+ - Android Support Repository rev17
13
13
14
14
Getting Started
15
15
---------------
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
5
5
jcenter()
6
6
}
7
7
dependencies {
8
- classpath ' com.android.tools.build:gradle:1.2.3 '
8
+ classpath ' com.android.tools.build:gradle:1.3.1 '
9
9
10
10
// NOTE: Do not place your application dependencies here; they belong
11
11
// in the individual module build.gradle files
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 22
5
- buildToolsVersion ' 22 .0.1 '
4
+ compileSdkVersion 23
5
+ buildToolsVersion ' 23 .0.0 '
6
6
defaultConfig {
7
7
applicationId " com.example.android.testing.integrationtesting.ServiceTestRuleSample"
8
8
minSdkVersion 10
9
- targetSdkVersion 22
9
+ targetSdkVersion 23
10
10
versionCode 1
11
11
versionName " 1.0"
12
12
@@ -24,6 +24,8 @@ android {
24
24
25
25
dependencies {
26
26
// Testing-only dependencies
27
+ // Force usage of support annotations in the test app, since it is internally used by the runner module.
28
+ androidTestCompile ' com.android.support:support-annotations:23.0.0'
27
29
androidTestCompile ' com.android.support.test:runner:0.3'
28
30
androidTestCompile ' com.android.support.test:rules:0.3'
29
31
}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
5
5
jcenter()
6
6
}
7
7
dependencies {
8
- classpath ' com.android.tools.build:gradle:1.2.3 '
8
+ classpath ' com.android.tools.build:gradle:1.3.1 '
9
9
10
10
// NOTE: Do not place your application dependencies here; they belong
11
11
// in the individual module build.gradle files
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
+
3
4
android {
4
- compileSdkVersion 22
5
- buildToolsVersion ' 22 .0.1 '
5
+ compileSdkVersion 23
6
+ buildToolsVersion ' 23 .0.0 '
6
7
defaultConfig {
7
8
applicationId " com.example.android.testing.androidjunitrunnersample"
8
9
minSdkVersion 8
9
- targetSdkVersion 22
10
+ targetSdkVersion 23
10
11
versionCode 1
11
12
versionName " 1.0"
12
13
@@ -27,9 +28,12 @@ android {
27
28
28
29
dependencies {
29
30
// App's dependencies, including test
30
- compile ' com.android.support:support-annotations:22.2 .0'
31
+ compile ' com.android.support:support-annotations:23.0 .0'
31
32
compile ' com.google.guava:guava:18.0'
33
+
32
34
// Testing-only dependencies
35
+ // Force usage of support annotations in the test app, since it is internally used by the runner module.
36
+ androidTestCompile ' com.android.support:support-annotations:23.0.0'
33
37
androidTestCompile ' com.android.support.test:runner:0.3'
34
38
androidTestCompile ' com.android.support.test:rules:0.3'
35
39
androidTestCompile ' com.android.support.test.espresso:espresso-core:2.2'
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 22
5
- buildToolsVersion ' 22 .0.1 '
4
+ compileSdkVersion 23
5
+ buildToolsVersion ' 23 .0.0 '
6
6
defaultConfig {
7
7
applicationId " com.example.android.testing.espresso.BasicSample"
8
8
minSdkVersion 10
9
- targetSdkVersion 22
9
+ targetSdkVersion 23
10
10
versionCode 1
11
11
versionName " 1.0"
12
12
@@ -24,9 +24,11 @@ android {
24
24
25
25
dependencies {
26
26
// App dependencies
27
- compile ' com.android.support:support-annotations:22.2 .0'
27
+ compile ' com.android.support:support-annotations:23.0 .0'
28
28
compile ' com.google.guava:guava:18.0'
29
29
// Testing-only dependencies
30
+ // Force usage of support annotations in the test app, since it is internally used by the runner module.
31
+ androidTestCompile ' com.android.support:support-annotations:23.0.0'
30
32
androidTestCompile ' com.android.support.test:runner:0.3'
31
33
androidTestCompile ' com.android.support.test:rules:0.3'
32
34
androidTestCompile ' com.android.support.test.espresso:espresso-core:2.2'
Original file line number Diff line number Diff line change 14
14
~ See the License for the specific language governing permissions and
15
15
~ limitations under the License.
16
16
-->
17
- <FrameLayout xmlns : android =" http://schemas.android.com/apk/res/android"
17
+ <merge xmlns : android =" http://schemas.android.com/apk/res/android"
18
18
xmlns : tools =" http://schemas.android.com/tools"
19
19
android : layout_width =" match_parent"
20
20
android : layout_height =" match_parent"
27
27
android : text =" @string/hello_world"
28
28
android : layout_gravity =" center" />
29
29
30
- </FrameLayout >
30
+ </merge >
Original file line number Diff line number Diff line change 17
17
<resources >
18
18
<!-- Default screen margins, per the Android Design guidelines. -->
19
19
<dimen name =" activity_horizontal_margin" >16dp</dimen >
20
- <dimen name =" activity_vertical_margin" >16dp</dimen >
21
20
<dimen name =" header_margin" >32dp</dimen >
22
21
</resources >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
5
5
jcenter()
6
6
}
7
7
dependencies {
8
- classpath ' com.android.tools.build:gradle:1.2.3 '
8
+ classpath ' com.android.tools.build:gradle:1.3.1 '
9
9
10
10
// NOTE: Do not place your application dependencies here; they belong
11
11
// in the individual module build.gradle files
Original file line number Diff line number Diff line change 5
5
6
6
<uses-sdk
7
7
android : minSdkVersion =" 10"
8
- android : targetSdkVersion =" 22 " />
8
+ android : targetSdkVersion =" 23 " />
9
9
10
10
<application
11
11
android : icon =" @drawable/ic_launcher"
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 22
5
- buildToolsVersion ' 22 .0.1 '
4
+ compileSdkVersion 23
5
+ buildToolsVersion ' 23 .0.0 '
6
6
defaultConfig {
7
7
applicationId " com.example.android.testing.espresso.CustomMatcherSample"
8
8
minSdkVersion 10
9
- targetSdkVersion 22
9
+ targetSdkVersion 23
10
10
versionCode 1
11
11
versionName " 1.0"
12
12
@@ -30,9 +30,11 @@ android {
30
30
31
31
dependencies {
32
32
// App dependencies
33
- compile ' com.android.support:support-annotations:22.2 .0'
33
+ compile ' com.android.support:support-annotations:23.0 .0'
34
34
compile ' com.google.guava:guava:18.0'
35
35
// Testing-only dependencies
36
+ // Force usage of support annotations in the test app, since it is internally used by the runner module.
37
+ androidTestCompile ' com.android.support:support-annotations:23.0.0'
36
38
androidTestCompile ' com.android.support.test:runner:0.3'
37
39
androidTestCompile ' com.android.support.test:rules:0.3'
38
40
androidTestCompile ' com.android.support.test.espresso:espresso-core:2.2'
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
5
5
jcenter()
6
6
}
7
7
dependencies {
8
- classpath ' com.android.tools.build:gradle:1.2.3 '
8
+ classpath ' com.android.tools.build:gradle:1.3.1 '
9
9
10
10
// NOTE: Do not place your application dependencies here; they belong
11
11
// in the individual module build.gradle files
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 22
5
- buildToolsVersion ' 22 .0.1 '
4
+ compileSdkVersion 23
5
+ buildToolsVersion ' 23 .0.0 '
6
6
defaultConfig {
7
7
applicationId " com.example.android.testing.espresso.DataAdapterSample"
8
8
minSdkVersion 10
9
- targetSdkVersion 22
9
+ targetSdkVersion 23
10
10
versionCode 1
11
11
versionName " 1.0"
12
12
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
@@ -21,9 +21,11 @@ android {
21
21
22
22
dependencies {
23
23
// App dependencies
24
- compile ' com.android.support:support-annotations:22.2 .0'
24
+ compile ' com.android.support:support-annotations:23.0 .0'
25
25
compile ' com.google.guava:guava:18.0'
26
26
// Testing-only dependencies
27
+ // Force usage of support annotations in the test app, since it is internally used by the runner module.
28
+ androidTestCompile ' com.android.support:support-annotations:23.0.0'
27
29
androidTestCompile ' com.android.support.test:runner:0.3'
28
30
androidTestCompile ' com.android.support.test:rules:0.3'
29
31
androidTestCompile ' com.android.support.test.espresso:espresso-core:2.2'
Original file line number Diff line number Diff line change 25
25
26
26
<TextView
27
27
android : id =" @+id/rowContentTextView"
28
- android : layout_width =" wrap_content "
28
+ android : layout_width =" 0dp "
29
29
android : layout_height =" wrap_content"
30
30
android : textSize =" 16sp"
31
31
android : layout_weight =" 1" />
34
34
android : id =" @+id/rowToggleButton"
35
35
android : layout_width =" wrap_content"
36
36
android : layout_height =" wrap_content"
37
- android : text =" "
38
- />
37
+ android : text =" " />
39
38
40
39
</LinearLayout >
Original file line number Diff line number Diff line change 16
16
-->
17
17
<resources >
18
18
<!-- Default screen margins, per the Android Design guidelines. -->
19
- <dimen name =" activity_horizontal_margin" >16dp</dimen >
20
19
<dimen name =" activity_vertical_margin" >16dp</dimen >
21
20
<dimen name =" list_activity_click_header_height" >24dp</dimen >
22
21
<dimen name =" selection_row_value_margin" >12dp</dimen >
Original file line number Diff line number Diff line change 17
17
<resources >
18
18
<string name =" app_name" >Data Adapter Sample</string >
19
19
<string name =" row_label" >Clicked on row</string >
20
- <string name =" column_label" >Clicked on column</string >
21
20
</resources >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
5
5
jcenter()
6
6
}
7
7
dependencies {
8
- classpath ' com.android.tools.build:gradle:1.2.3 '
8
+ classpath ' com.android.tools.build:gradle:1.3.1 '
9
9
10
10
// NOTE: Do not place your application dependencies here; they belong
11
11
// in the individual module build.gradle files
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 22
5
- buildToolsVersion ' 22 .0.1 '
4
+ compileSdkVersion 23
5
+ buildToolsVersion ' 23 .0.0 '
6
6
defaultConfig {
7
7
applicationId " com.example.android.testing.espresso.intents.AdvancedSample"
8
8
minSdkVersion 10
9
- targetSdkVersion 22
9
+ targetSdkVersion 23
10
10
versionCode 1
11
11
versionName " 1.0"
12
12
@@ -24,8 +24,10 @@ android {
24
24
25
25
dependencies {
26
26
// App dependencies
27
- compile ' com.android.support:support-annotations:22.2 .0'
27
+ compile ' com.android.support:support-annotations:23.0 .0'
28
28
// Testing-only dependencies
29
+ // Force usage of support annotations in the test app, since it is internally used by the runner module.
30
+ androidTestCompile ' com.android.support:support-annotations:23.0.0'
29
31
androidTestCompile ' com.android.support.test:runner:0.3'
30
32
androidTestCompile ' com.android.support.test:rules:0.3'
31
33
androidTestCompile ' com.android.support.test.espresso:espresso-core:2.2'
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
5
5
jcenter()
6
6
}
7
7
dependencies {
8
- classpath ' com.android.tools.build:gradle:1.2.3 '
8
+ classpath ' com.android.tools.build:gradle:1.3.1 '
9
9
10
10
// NOTE: Do not place your application dependencies here; they belong
11
11
// in the individual module build.gradle files
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 22
5
- buildToolsVersion ' 22 .0.1 '
4
+ compileSdkVersion 23
5
+ buildToolsVersion ' 23 .0.0 '
6
6
defaultConfig {
7
7
applicationId " com.example.android.testing.espresso.BasicSample"
8
8
minSdkVersion 10
9
- targetSdkVersion 22
9
+ targetSdkVersion 23
10
10
versionCode 1
11
11
versionName " 1.0"
12
12
@@ -24,8 +24,10 @@ android {
24
24
25
25
dependencies {
26
26
// App dependencies
27
- compile ' com.android.support:support-annotations:22.2 .0'
27
+ compile ' com.android.support:support-annotations:23.0 .0'
28
28
// Testing-only dependencies
29
+ // Force usage of support annotations in the test app, since it is internally used by the runner module.
30
+ androidTestCompile ' com.android.support:support-annotations:23.0.0'
29
31
androidTestCompile ' com.android.support.test:runner:0.3'
30
32
androidTestCompile ' com.android.support.test:rules:0.3'
31
33
androidTestCompile ' com.android.support.test.espresso:espresso-core:2.2'
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
5
5
jcenter()
6
6
}
7
7
dependencies {
8
- classpath ' com.android.tools.build:gradle:1.2.3 '
8
+ classpath ' com.android.tools.build:gradle:1.3.1 '
9
9
10
10
// NOTE: Do not place your application dependencies here; they belong
11
11
// in the individual module build.gradle files
You can’t perform that action at this time.
0 commit comments