Skip to content

Commit f7ee5f4

Browse files
committed
Introduce variables to store versions
1 parent 214b236 commit f7ee5f4

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

ui/espresso/ScreenshotSample/app/build.gradle

+7-9
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ android {
1515
versionName "1.0"
1616

1717
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18-
1918
testInstrumentationRunnerArguments useTestStorageService: 'true'
2019
}
2120

@@ -36,14 +35,13 @@ android {
3635

3736
dependencies {
3837

39-
implementation 'androidx.core:core-ktx:1.6.0'
40-
implementation 'androidx.appcompat:appcompat:1.3.1'
41-
implementation 'com.google.android.material:material:1.4.0'
38+
implementation "androidx.core:core-ktx:$androidxCoreVersion"
39+
implementation "androidx.appcompat:appcompat:$androidxCompatVersion"
40+
implementation "com.google.android.material:material:1.4.0"
4241
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
4342
testImplementation 'junit:junit:4.13.2'
44-
androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.4-alpha03'
45-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0-alpha03'
46-
androidTestImplementation 'androidx.test.espresso:espresso-screenshot:3.5.0-alpha03'
47-
androidTestUtil 'androidx.test.services:test-services:1.4.1-alpha03'
48-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
43+
androidTestImplementation "androidx.test.ext:junit-ktx:$extJUnitVersion"
44+
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
45+
androidTestUtil "androidx.test.services:test-services:$servicesVersion"
46+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
4947
}
+16-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3-
ext.kotlin_version = '1.5.31'
3+
ext.agpVersion = "7.1.0-alpha13"
4+
ext.kotlinVersion = '1.5.31'
5+
ext.androidxCoreVersion = "1.6.0"
6+
ext.buildToolsVersion = "31.0.0"
7+
ext.androidxCompatVersion = "1.3.1"
8+
ext.coreVersion = "1.4.1-alpha02"
9+
ext.extJUnitVersion = "1.1.4-alpha02"
10+
ext.runnerVersion = "1.4.1-alpha02"
11+
ext.rulesVersion = "1.4.1-alpha02"
12+
ext.espressoVersion = "3.5.0-alpha02"
13+
ext.servicesVersion = "1.4.1-alpha02"
14+
ext.truthVersion = "1.1.3"
15+
416
repositories {
5-
maven {
6-
url "file:///Users/brettchabot/test-repos/m2repository"
7-
allowInsecureProtocol = true
8-
}
917
google()
1018
mavenCentral()
1119
}
1220
dependencies {
13-
classpath "com.android.tools.build:gradle:7.1.0-alpha13"
14-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
15-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
21+
classpath "com.android.tools.build:gradle:$agpVersion"
22+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
1623

1724
// NOTE: Do not place your application dependencies here; they belong
1825
// in the individual module build.gradle files
@@ -21,4 +28,4 @@ buildscript {
2128

2229
task clean(type: Delete) {
2330
delete rootProject.buildDir
24-
}
31+
}

ui/espresso/ScreenshotSample/settings.gradle

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
dependencyResolutionManagement {
22
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
33
repositories {
4-
maven {
5-
url "file:///Users/brettchabot/test-repos/m2repository"
6-
allowInsecureProtocol = true
7-
}
84
google()
95
mavenCentral()
106
}

0 commit comments

Comments
 (0)