Skip to content

Commit 033ab2d

Browse files
authored
Use version catalog for appcheck deps (#6567)
1 parent 2190810 commit 033ab2d

File tree

7 files changed

+43
-42
lines changed

7 files changed

+43
-42
lines changed

appcheck/firebase-appcheck-debug-testing/firebase-appcheck-debug-testing.gradle

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,29 @@ android {
5050
}
5151

5252
dependencies {
53-
javadocClasspath 'com.google.auto.value:auto-value-annotations:1.6.6'
53+
javadocClasspath libs.autovalue.annotations
5454

5555
api project(':appcheck:firebase-appcheck')
5656
api project(':appcheck:firebase-appcheck-debug')
5757
api 'com.google.firebase:firebase-appcheck-interop:17.0.0'
5858
api 'com.google.firebase:firebase-common:21.0.0'
59-
api 'com.google.firebase:firebase-common-ktx:21.0.0'
6059
api 'com.google.firebase:firebase-components:18.0.0'
6160

6261
implementation libs.androidx.test.core
63-
implementation 'com.google.android.gms:play-services-base:18.0.1'
64-
implementation 'com.google.android.gms:play-services-tasks:18.0.1'
62+
implementation libs.playservices.base
63+
implementation libs.playservices.tasks
6564

6665
testImplementation project(':appcheck:firebase-appcheck-playintegrity')
6766
testImplementation libs.androidx.test.core
6867
testImplementation libs.truth
69-
testImplementation 'junit:junit:4.13-beta-2'
70-
testImplementation 'org.mockito:mockito-core:2.25.0'
68+
testImplementation libs.junit
69+
testImplementation libs.mockito.core
7170
testImplementation libs.robolectric
7271

7372
androidTestImplementation project(':firebase-storage')
74-
androidTestImplementation 'androidx.test:runner:1.2.0'
73+
androidTestImplementation libs.androidx.test.runner
7574
androidTestImplementation libs.androidx.test.junit
7675
androidTestImplementation libs.truth
77-
androidTestImplementation 'junit:junit:4.13-beta-2'
78-
androidTestImplementation 'org.mockito:mockito-core:2.25.0'
76+
androidTestImplementation libs.junit
77+
androidTestImplementation libs.mockito.core
7978
}

appcheck/firebase-appcheck-debug/firebase-appcheck-debug.gradle

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,24 @@ android {
4747
}
4848

4949
dependencies {
50-
javadocClasspath 'com.google.auto.value:auto-value-annotations:1.6.6'
50+
javadocClasspath libs.autovalue.annotations
5151

5252
api project(':appcheck:firebase-appcheck')
5353
api 'com.google.firebase:firebase-annotations:16.2.0'
5454
api 'com.google.firebase:firebase-common:21.0.0'
55-
api 'com.google.firebase:firebase-common-ktx:21.0.0'
5655
api 'com.google.firebase:firebase-components:18.0.0'
5756

58-
implementation 'com.google.android.gms:play-services-base:18.0.1'
59-
implementation 'com.google.android.gms:play-services-tasks:18.0.1'
57+
implementation libs.playservices.base
58+
implementation libs.playservices.tasks
6059

6160
testImplementation(project(":integ-testing")){
6261
exclude group: 'com.google.firebase', module: 'firebase-common'
6362
exclude group: 'com.google.firebase', module: 'firebase-components'
6463
}
6564
testImplementation libs.androidx.test.core
66-
testImplementation 'androidx.test:rules:1.2.0'
65+
testImplementation libs.androidx.test.rules
6766
testImplementation libs.truth
68-
testImplementation 'junit:junit:4.13-beta-2'
69-
testImplementation 'org.mockito:mockito-core:2.25.0'
67+
testImplementation libs.junit
68+
testImplementation libs.mockito.core
7069
testImplementation libs.robolectric
7170
}

appcheck/firebase-appcheck-interop/firebase-appcheck-interop.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ android {
4545
}
4646

4747
dependencies {
48-
implementation 'com.google.android.gms:play-services-base:18.0.1'
49-
implementation 'com.google.android.gms:play-services-tasks:18.0.1'
48+
implementation libs.playservices.base
49+
implementation libs.playservices.tasks
5050

5151
testImplementation libs.androidx.test.core
52-
testImplementation 'androidx.test:rules:1.2.0'
52+
testImplementation libs.androidx.test.rules
5353
testImplementation libs.truth
54-
testImplementation 'junit:junit:4.12'
55-
testImplementation 'org.mockito:mockito-core:2.25.0'
54+
testImplementation libs.junit
55+
testImplementation libs.mockito.core
5656
testImplementation libs.robolectric
5757
}

appcheck/firebase-appcheck-playintegrity/firebase-appcheck-playintegrity.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ android {
4747
}
4848

4949
dependencies {
50-
javadocClasspath 'com.google.auto.value:auto-value-annotations:1.6.6'
50+
javadocClasspath libs.autovalue.annotations
5151

5252
api project(':appcheck:firebase-appcheck')
5353
api 'com.google.firebase:firebase-annotations:16.2.0'
5454
api 'com.google.firebase:firebase-common:21.0.0'
5555
api 'com.google.firebase:firebase-common-ktx:21.0.0'
5656
api 'com.google.firebase:firebase-components:18.0.0'
5757

58-
implementation 'com.google.android.gms:play-services-base:18.0.1'
59-
implementation 'com.google.android.gms:play-services-tasks:18.0.1'
60-
implementation 'com.google.android.play:integrity:1.2.0'
58+
implementation libs.playservices.base
59+
implementation libs.playservices.tasks
60+
implementation libs.integrity
6161

6262
testImplementation(project(":integ-testing")){
6363
exclude group: 'com.google.firebase', module: 'firebase-common'
@@ -66,6 +66,6 @@ dependencies {
6666
testImplementation libs.androidx.test.core
6767
testImplementation libs.truth
6868
testImplementation libs.junit
69-
testImplementation 'org.mockito:mockito-core:3.4.6'
69+
testImplementation libs.mockito.core
7070
testImplementation libs.robolectric
7171
}

appcheck/firebase-appcheck/firebase-appcheck.gradle

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,15 @@ android {
4848
}
4949

5050
dependencies {
51-
javadocClasspath 'com.google.auto.value:auto-value-annotations:1.6.6'
51+
javadocClasspath libs.autovalue.annotations
5252

5353
api libs.playservices.tasks
5454
api 'com.google.firebase:firebase-annotations:16.2.0'
5555
api "com.google.firebase:firebase-appcheck-interop:17.1.0"
5656
api("com.google.firebase:firebase-common:21.0.0")
57-
api("com.google.firebase:firebase-common-ktx:21.0.0")
5857
api("com.google.firebase:firebase-components:18.0.0")
5958

60-
implementation 'androidx.annotation:annotation:1.1.0'
59+
implementation libs.androidx.annotation
6160
implementation libs.playservices.base
6261
implementation libs.kotlin.stdlib
6362

@@ -66,25 +65,25 @@ dependencies {
6665
exclude group: 'com.google.firebase', module: 'firebase-components'
6766
}
6867
testImplementation libs.androidx.test.core
69-
testImplementation 'androidx.test:rules:1.2.0'
68+
testImplementation libs.androidx.test.rules
7069
testImplementation libs.truth
71-
testImplementation 'junit:junit:4.12'
72-
testImplementation 'junit:junit:4.13-beta-2'
70+
testImplementation libs.junit
71+
testImplementation libs.junit
7372
testImplementation libs.mockito.core
74-
testImplementation 'org.mockito:mockito-inline:5.2.0'
73+
testImplementation libs.mockito.mockito.inline
7574
testImplementation libs.robolectric
7675

7776
androidTestImplementation project(':appcheck:firebase-appcheck')
7877
androidTestImplementation(project(":integ-testing")){
7978
exclude group: 'com.google.firebase', module: 'firebase-common'
8079
exclude group: 'com.google.firebase', module: 'firebase-components'
8180
}
82-
androidTestImplementation "androidx.annotation:annotation:1.0.0"
81+
androidTestImplementation libs.androidx.annotation
8382
androidTestImplementation libs.androidx.test.core
84-
androidTestImplementation 'androidx.test:runner:1.2.0'
83+
androidTestImplementation libs.androidx.test.runner
8584
androidTestImplementation libs.androidx.test.junit
8685
androidTestImplementation libs.truth
87-
androidTestImplementation 'junit:junit:4.12'
88-
androidTestImplementation 'org.mockito:mockito-core:2.25.0'
89-
androidTestImplementation 'org.mockito:mockito-inline:2.25.0'
86+
androidTestImplementation libs.junit
87+
androidTestImplementation libs.mockito.core
88+
androidTestImplementation libs.mockito.mockito.inline
9089
}

appcheck/firebase-appcheck/ktx/ktx.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ dependencies {
6161
implementation("com.google.firebase:firebase-components:18.0.0")
6262

6363
testImplementation libs.truth
64-
testImplementation 'junit:junit:4.12'
65-
testImplementation 'org.mockito:mockito-core:2.25.0'
64+
testImplementation libs.junit
65+
testImplementation libs.mockito.core
6666
testImplementation libs.robolectric
6767

6868
androidTestImplementation libs.androidx.test.core
69-
androidTestImplementation 'androidx.test:runner:1.2.0'
69+
androidTestImplementation libs.androidx.test.runner
7070
androidTestImplementation 'com.google.firebase:firebase-appcheck-interop:17.1.0'
7171
androidTestImplementation libs.truth
72-
androidTestImplementation 'junit:junit:4.12'
72+
androidTestImplementation libs.junit
7373
}

gradle/libs.versions.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ firebaseCommon = "21.0.0"
1212
firebaseComponents = "18.0.0"
1313
grpc = "1.62.2"
1414
grpcKotlin = "1.4.1"
15+
integrity = "1.2.0"
1516
javalite = "3.25.5"
1617
kotlin = "1.8.22"
1718
mavenResolverApi = "1.9.22"
1819
mavenResolverProvider = "3.9.9"
20+
mockitoInlineVersion = "2.25.0"
1921
mockk = "1.13.11"
2022
serialization-plugin = "1.8.22"
2123
protoc = "3.25.5"
@@ -60,6 +62,7 @@ grpc-testing = { module= "io.grpc:grpc-testing", version.ref="grpc" }
6062
grpc-protoc-gen-java = { module = "io.grpc:protoc-gen-grpc-java", version.ref = "grpc" }
6163
grpc-protoc-gen-kotlin = { module = "io.grpc:protoc-gen-grpc-kotlin", version.ref = "grpcKotlin" }
6264
grpc-stub = { module = "io.grpc:grpc-stub", version.ref = "grpc" }
65+
integrity = { module = "com.google.android.play:integrity", version.ref = "integrity" }
6366
javax-annotation-jsr250 = { module = "javax.annotation:jsr250-api", version = "1.0" }
6467
javax-inject = { module = "javax.inject:javax.inject", version = "1" }
6568
kotlin-bom = { module = "org.jetbrains.kotlin:kotlin-bom", version.ref = "kotlin" }
@@ -77,6 +80,7 @@ maven-resolver-provider = { module = "org.apache.maven:maven-resolver-provider",
7780
maven-resolver-transport-file = { module = "org.apache.maven.resolver:maven-resolver-transport-file", version.ref = "mavenResolverApi" }
7881
maven-resolver-transport-http = { module = "org.apache.maven.resolver:maven-resolver-transport-http", version.ref = "mavenResolverApi" }
7982
maven-resolver-util = { module = "org.apache.maven.resolver:maven-resolver-util", version.ref = "mavenResolverApi" }
83+
mockito-mockito-inline = { module = "org.mockito:mockito-inline", version.ref = "mockitoInlineVersion" }
8084
okhttp = { module = "com.squareup.okhttp3:okhttp", version = "3.12.13" }
8185
org-json = { module = "org.json:json", version = "20210307" }
8286
playservices-base = { module = "com.google.android.gms:play-services-base", version = "18.1.0" }

0 commit comments

Comments
 (0)