File tree Expand file tree Collapse file tree 4 files changed +22
-12
lines changed
module-flavor1-androidTest-only Expand file tree Collapse file tree 4 files changed +22
-12
lines changed 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 ' 23.0.0rc3 '
4
+ compileSdkVersion rootProject . ext . compileSdkVersion
5
+ buildToolsVersion rootProject . ext . buildToolsVersion
6
6
7
7
/*
8
8
Test only modules require other artifacts like the classes.jar to be published, so the test can
@@ -12,9 +12,10 @@ android {
12
12
publishNonDefault true
13
13
14
14
defaultConfig {
15
+ minSdkVersion rootProject. ext. minSdkVersion
16
+ targetSdkVersion rootProject. ext. targetSdkVersion
17
+
15
18
applicationId ' com.example.android.testing.blueprint'
16
- minSdkVersion 10
17
- targetSdkVersion 22
18
19
versionCode 1
19
20
versionName ' 1.0'
20
21
Original file line number Diff line number Diff line change @@ -17,3 +17,10 @@ allprojects {
17
17
jcenter()
18
18
}
19
19
}
20
+
21
+ ext {
22
+ minSdkVersion = 10
23
+ targetSdkVersion = 22
24
+ compileSdkVersion = 23
25
+ buildToolsVersion = " 23.0.0"
26
+ }
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
3
3
android {
4
- compileSdkVersion 22
5
- buildToolsVersion " 23.0.0rc3 "
4
+ compileSdkVersion rootProject . ext . compileSdkVersion
5
+ buildToolsVersion rootProject . ext . buildToolsVersion
6
6
7
7
defaultConfig {
8
- minSdkVersion 10
9
- targetSdkVersion 22
8
+ minSdkVersion rootProject. ext. minSdkVersion
9
+ targetSdkVersion rootProject. ext. targetSdkVersion
10
+
10
11
versionCode 1
11
12
versionName " 1.0"
12
13
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.test' // A plugin used for test-only-modules
2
2
3
3
android {
4
- compileSdkVersion 22
5
- buildToolsVersion = ' 23.0.0rc3 '
4
+ compileSdkVersion rootProject . ext . compileSdkVersion
5
+ buildToolsVersion rootProject . ext . buildToolsVersion
6
6
7
7
defaultConfig {
8
- minSdkVersion 10
9
- targetSdkVersion 22
8
+ minSdkVersion rootProject. ext. minSdkVersion
9
+ targetSdkVersion rootProject. ext. targetSdkVersion
10
+
10
11
// The package name of the test app
11
12
testApplicationId ' com.example.android.testing.blueprint.test'
12
13
// The Instrumentation test runner used to run tests.
You can’t perform that action at this time.
0 commit comments