Skip to content

Commit 3c4aa68

Browse files
authored
Merge pull request #402 from android/updategradle2
Update to latest dependencies part 2
2 parents a46d7c5 + a65295b commit 3c4aa68

File tree

26 files changed

+67
-37
lines changed

26 files changed

+67
-37
lines changed

integration/ServiceTestRuleSample/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4+
ext.agpVersion = "7.0.2"
45
repositories {
56
// Insert local test repo here
67
google()
78
mavenCentral()
89
}
910
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.0.2'
11+
classpath "com.android.tools.build:gradle:$agpVersion"
1112

1213
// NOTE: Do not place your application dependencies here; they belong
1314
// in the individual module build.gradle files

runner/AndroidJunitRunnerSample/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4+
ext.agpVersion = "7.0.2"
45
repositories {
56
// Insert local test repo here
67
google()
78
mavenCentral()
89
}
910
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.0.2'
11+
classpath "com.android.tools.build:gradle:$agpVersion"
1112

1213
// NOTE: Do not place your application dependencies here; they belong
1314
// in the individual module build.gradle files

runner/AndroidTestOrchestratorSample/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4+
ext.agpVersion = "7.0.2"
45
repositories {
56
// Insert local test repo here
67
google()
78
mavenCentral()
89
}
910
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.0.2'
11+
classpath "com.android.tools.build:gradle:$agpVersion"
1112

1213
// NOTE: Do not place your application dependencies here; they belong
1314
// in the individual module build.gradle files

ui/espresso/AccessibilitySample/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.3.40'
4+
ext.kotlinVersion = "1.4.31"
5+
ext.agpVersion = "7.0.2"
56
repositories {
67
// Insert local test repo here
78
google()
89
mavenCentral()
910
}
1011
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.0.2'
12-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12+
classpath "com.android.tools.build:gradle:$agpVersion"
13+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
1314

1415
// NOTE: Do not place your application dependencies here; they belong
1516
// in the individual module build.gradle files

ui/espresso/BasicSample/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies {
4040
implementation 'com.google.guava:guava:' + rootProject.guavaVersion
4141

4242
// Testing-only dependencies
43-
androidTestImplementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
43+
androidTestImplementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
4444
androidTestImplementation 'androidx.test:core:' + rootProject.coreVersion
4545
androidTestImplementation 'androidx.test:core-ktx:' + rootProject.coreVersion
4646
androidTestImplementation 'androidx.test.ext:junit:' + rootProject.extJUnitVersion

ui/espresso/BasicSample/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.4.31'
4+
ext.kotlinVersion = "1.4.31"
5+
ext.agpVersion = "7.0.2"
56
repositories {
67
// Insert local test repo here
78
google()
89
mavenCentral()
910
}
1011
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.0.2'
12-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12+
classpath "com.android.tools.build:gradle:$agpVersion"
13+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
1314

1415
// NOTE: Do not place your application dependencies here; they belong
1516
// in the individual module build.gradle files

ui/espresso/CustomMatcherSample/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4+
ext.agpVersion = "7.0.2"
45
repositories {
56
// Insert local test repo here
67
google()
78
mavenCentral()
89
}
910
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.0.2'
11+
classpath "com.android.tools.build:gradle:$agpVersion"
1112

1213
// NOTE: Do not place your application dependencies here; they belong
1314
// in the individual module build.gradle files

ui/espresso/DataAdapterSample/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4+
ext.agpVersion = "7.0.2"
45
repositories {
56
// Insert local test repo here
67
google()
78
mavenCentral()
89
}
910
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.0.2'
11+
classpath "com.android.tools.build:gradle:$agpVersion"
1112

1213
// NOTE: Do not place your application dependencies here; they belong
1314
// in the individual module build.gradle files

ui/espresso/FragmentScenarioSample/app/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,18 @@ android {
3333
// include the android resources in local tests. See http://robolectric.org/migrating/#migrating-to-40
3434
unitTests.includeAndroidResources = true
3535
}
36+
compileOptions {
37+
sourceCompatibility JavaVersion.VERSION_1_8
38+
targetCompatibility JavaVersion.VERSION_1_8
39+
}
40+
kotlinOptions {
41+
jvmTarget = '1.8'
42+
}
3643
}
3744

3845
dependencies {
3946
implementation fileTree(dir: 'libs', include: ['*.jar'])
40-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
47+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
4148
implementation 'androidx.appcompat:appcompat:' + rootProject.androidxCompatVersion
4249
implementation 'androidx.core:core-ktx:' + rootProject.androidxCoreVersion
4350
implementation 'androidx.fragment:fragment-ktx:' + rootProject.androidxFragmentVersion

ui/espresso/FragmentScenarioSample/app/src/sharedTest/java/com/example/android/testing/espresso/fragmentscenario/SampleDialogFragmentTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import org.robolectric.annotation.LooperMode
1818
* See [testing documentation](http://d.android.com/tools/testing).
1919
*/
2020
@RunWith(AndroidJUnit4::class)
21-
@LooperMode(LooperMode.Mode.PAUSED)
2221
class SampleDialogFragmentTest {
2322

2423
@Test

0 commit comments

Comments
 (0)