Skip to content

Commit c44c4c7

Browse files
authored
Merge branch 'main' into gsakakihara/executor
2 parents 9a3945d + d402ad0 commit c44c4c7

File tree

121 files changed

+1143
-828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+1143
-828
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ plugins {
1818
}
1919

2020
firebaseLibrary {
21-
libraryGroup "appcheck"
21+
libraryGroup = "appcheck"
2222
testLab.enabled = true
2323
publishSources = true
2424
releaseNotes {
@@ -60,21 +60,21 @@ dependencies {
6060
api 'com.google.firebase:firebase-common-ktx:21.0.0'
6161
api 'com.google.firebase:firebase-components:18.0.0'
6262

63-
implementation "androidx.test:core:$androidxTestCoreVersion"
63+
implementation libs.androidx.test.core
6464
implementation 'com.google.android.gms:play-services-base:18.0.1'
6565
implementation 'com.google.android.gms:play-services-tasks:18.0.1'
6666

6767
testImplementation project(':appcheck:firebase-appcheck-playintegrity')
68-
testImplementation "androidx.test:core:$androidxTestCoreVersion"
69-
testImplementation "com.google.truth:truth:$googleTruthVersion"
68+
testImplementation libs.androidx.test.core
69+
testImplementation libs.truth
7070
testImplementation 'junit:junit:4.13-beta-2'
7171
testImplementation 'org.mockito:mockito-core:2.25.0'
72-
testImplementation "org.robolectric:robolectric:$robolectricVersion"
72+
testImplementation libs.robolectric
7373

7474
androidTestImplementation project(':firebase-storage')
7575
androidTestImplementation 'androidx.test:runner:1.2.0'
76-
androidTestImplementation "androidx.test.ext:junit:$androidxTestJUnitVersion"
77-
androidTestImplementation "com.google.truth:truth:$googleTruthVersion"
76+
androidTestImplementation libs.androidx.test.junit
77+
androidTestImplementation libs.truth
7878
androidTestImplementation 'junit:junit:4.13-beta-2'
7979
androidTestImplementation 'org.mockito:mockito-core:2.25.0'
8080
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ plugins {
1717
}
1818

1919
firebaseLibrary {
20-
libraryGroup "appcheck"
20+
libraryGroup = "appcheck"
2121
publishSources = true
2222
releaseNotes {
2323
name.set("{{app_check}} Debug")
@@ -63,10 +63,10 @@ dependencies {
6363
exclude group: 'com.google.firebase', module: 'firebase-common'
6464
exclude group: 'com.google.firebase', module: 'firebase-components'
6565
}
66-
testImplementation "androidx.test:core:$androidxTestCoreVersion"
66+
testImplementation libs.androidx.test.core
6767
testImplementation 'androidx.test:rules:1.2.0'
68-
testImplementation "com.google.truth:truth:$googleTruthVersion"
68+
testImplementation libs.truth
6969
testImplementation 'junit:junit:4.13-beta-2'
7070
testImplementation 'org.mockito:mockito-core:2.25.0'
71-
testImplementation "org.robolectric:robolectric:$robolectricVersion"
71+
testImplementation libs.robolectric
7272
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ dependencies {
4949
implementation 'com.google.android.gms:play-services-base:18.0.1'
5050
implementation 'com.google.android.gms:play-services-tasks:18.0.1'
5151

52-
testImplementation "androidx.test:core:$androidxTestCoreVersion"
52+
testImplementation libs.androidx.test.core
5353
testImplementation 'androidx.test:rules:1.2.0'
54-
testImplementation "com.google.truth:truth:$googleTruthVersion"
54+
testImplementation libs.truth
5555
testImplementation 'junit:junit:4.12'
5656
testImplementation 'org.mockito:mockito-core:2.25.0'
57-
testImplementation "org.robolectric:robolectric:$robolectricVersion"
57+
testImplementation libs.robolectric
5858
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ plugins {
1717
}
1818

1919
firebaseLibrary {
20-
libraryGroup "appcheck"
20+
libraryGroup = "appcheck"
2121
publishSources = true
2222
releaseNotes {
2323
name.set("{{app_check}} Play integrity")
@@ -64,9 +64,9 @@ dependencies {
6464
exclude group: 'com.google.firebase', module: 'firebase-common'
6565
exclude group: 'com.google.firebase', module: 'firebase-components'
6666
}
67-
testImplementation "androidx.test:core:$androidxTestCoreVersion"
68-
testImplementation "com.google.truth:truth:$googleTruthVersion"
69-
testImplementation 'junit:junit:4.13.2'
67+
testImplementation libs.androidx.test.core
68+
testImplementation libs.truth
69+
testImplementation libs.junit
7070
testImplementation 'org.mockito:mockito-core:3.4.6'
71-
testImplementation "org.robolectric:robolectric:$robolectricVersion"
71+
testImplementation libs.robolectric
7272
}

appcheck/firebase-appcheck/firebase-appcheck.gradle

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ plugins {
1818
}
1919

2020
firebaseLibrary {
21-
libraryGroup "appcheck"
21+
libraryGroup = "appcheck"
2222
publishSources = true
2323
releaseNotes {
2424
name.set("{{app_check}}")
@@ -51,40 +51,40 @@ android {
5151
dependencies {
5252
javadocClasspath 'com.google.auto.value:auto-value-annotations:1.6.6'
5353

54-
api 'com.google.android.gms:play-services-tasks:18.1.0'
54+
api libs.playservices.tasks
5555
api 'com.google.firebase:firebase-annotations:16.2.0'
5656
api "com.google.firebase:firebase-appcheck-interop:17.1.0"
5757
api("com.google.firebase:firebase-common:21.0.0")
5858
api("com.google.firebase:firebase-common-ktx:21.0.0")
5959
api("com.google.firebase:firebase-components:18.0.0")
6060

6161
implementation 'androidx.annotation:annotation:1.1.0'
62-
implementation 'com.google.android.gms:play-services-base:18.1.0'
63-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
62+
implementation libs.playservices.base
63+
implementation libs.kotlin.stdlib
6464

6565
testImplementation(project(":integ-testing")){
6666
exclude group: 'com.google.firebase', module: 'firebase-common'
6767
exclude group: 'com.google.firebase', module: 'firebase-components'
6868
}
69-
testImplementation "androidx.test:core:$androidxTestCoreVersion"
69+
testImplementation libs.androidx.test.core
7070
testImplementation 'androidx.test:rules:1.2.0'
71-
testImplementation "com.google.truth:truth:$googleTruthVersion"
71+
testImplementation libs.truth
7272
testImplementation 'junit:junit:4.12'
7373
testImplementation 'junit:junit:4.13-beta-2'
74-
testImplementation 'org.mockito:mockito-core:5.2.0'
74+
testImplementation libs.mockito.core
7575
testImplementation 'org.mockito:mockito-inline:5.2.0'
76-
testImplementation "org.robolectric:robolectric:$robolectricVersion"
76+
testImplementation libs.robolectric
7777

7878
androidTestImplementation project(':appcheck:firebase-appcheck')
7979
androidTestImplementation(project(":integ-testing")){
8080
exclude group: 'com.google.firebase', module: 'firebase-common'
8181
exclude group: 'com.google.firebase', module: 'firebase-components'
8282
}
8383
androidTestImplementation "androidx.annotation:annotation:1.0.0"
84-
androidTestImplementation "androidx.test:core:$androidxTestCoreVersion"
84+
androidTestImplementation libs.androidx.test.core
8585
androidTestImplementation 'androidx.test:runner:1.2.0'
86-
androidTestImplementation "androidx.test.ext:junit:$androidxTestJUnitVersion"
87-
androidTestImplementation "com.google.truth:truth:$googleTruthVersion"
86+
androidTestImplementation libs.androidx.test.junit
87+
androidTestImplementation libs.truth
8888
androidTestImplementation 'junit:junit:4.12'
8989
androidTestImplementation 'org.mockito:mockito-core:2.25.0'
9090
androidTestImplementation 'org.mockito:mockito-inline:2.25.0'

appcheck/firebase-appcheck/ktx/ktx.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ plugins {
1818
}
1919

2020
firebaseLibrary {
21-
libraryGroup "appcheck"
21+
libraryGroup = "appcheck"
2222
testLab.enabled = true
2323
publishJavadoc = false
2424
releaseNotes {
@@ -61,14 +61,14 @@ dependencies {
6161

6262
implementation("com.google.firebase:firebase-components:18.0.0")
6363

64-
testImplementation "com.google.truth:truth:$googleTruthVersion"
64+
testImplementation libs.truth
6565
testImplementation 'junit:junit:4.12'
6666
testImplementation 'org.mockito:mockito-core:2.25.0'
67-
testImplementation "org.robolectric:robolectric:$robolectricVersion"
67+
testImplementation libs.robolectric
6868

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

build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
// limitations under the License.
1414

1515
buildscript {
16-
// TODO: remove once all sdks have migrated to version catalog
17-
ext.kotlinVersion = libs.versions.kotlin.get()
18-
ext.coroutinesVersion = libs.versions.coroutines.get()
19-
2016
repositories {
2117
google()
2218
mavenCentral()
@@ -47,15 +43,6 @@ buildscript {
4743
apply from: 'sdkProperties.gradle'
4844
apply from: "gradle/errorProne.gradle"
4945

50-
ext {
51-
// TODO: remove once all sdks have migrated to version catalog
52-
googleTruthVersion = libs.versions.truth.get()
53-
grpcVersion = libs.versions.grpc.get()
54-
robolectricVersion = libs.versions.robolectric.get()
55-
androidxTestCoreVersion = libs.versions.androidx.test.core.get()
56-
androidxTestJUnitVersion = libs.versions.androidx.test.junit.get()
57-
}
58-
5946
apply plugin: com.google.firebase.gradle.plugins.PublishingPlugin
6047

6148
apply plugin: com.google.firebase.gradle.plugins.ci.ContinuousIntegrationPlugin

buildSrc/build.gradle.kts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
// limitations under the License.
1414

1515
plugins {
16-
id("com.ncorti.ktfmt.gradle") version "0.11.0"
1716
alias(libs.plugins.kotlinx.serialization)
17+
alias(libs.plugins.spotless)
1818
`kotlin-dsl`
1919
}
2020

@@ -26,15 +26,23 @@ repositories {
2626
maven(url = "https://plugins.gradle.org/m2/")
2727
}
2828

29+
spotless {
30+
java {
31+
target("src/**/*.java")
32+
targetExclude("**/test/resources/**")
33+
googleJavaFormat("1.22.0").reorderImports(true).skipJavadocFormatting()
34+
}
35+
kotlin {
36+
target("src/**/*.kt")
37+
ktfmt("0.52").googleStyle()
38+
}
39+
}
40+
2941
// Refer latest "perf-plugin" released version on https://maven.google.com/web/index.html?q=perf-plugin#com.google.firebase:perf-plugin
3042
// The System property allows us to integrate with an unreleased version from https://bityl.co/3oYt.
3143
// Refer go/fireperf-plugin-test-on-head for more details.
3244
val perfPluginVersion = System.getenv("FIREBASE_PERF_PLUGIN_VERSION") ?: "1.4.1"
3345

34-
ktfmt {
35-
googleStyle()
36-
}
37-
3846
dependencies {
3947
// Firebase performance plugin, it should be added here because of how gradle dependency
4048
// resolution works, otherwise it breaks Fireperf Test Apps.
@@ -43,7 +51,7 @@ dependencies {
4351
implementation("com.google.auto.value:auto-value-annotations:1.8.1")
4452
annotationProcessor("com.google.auto.value:auto-value:1.6.5")
4553
implementation(kotlin("gradle-plugin", "1.8.22"))
46-
implementation("org.json:json:20210307")
54+
implementation(libs.org.json)
4755

4856
implementation("org.eclipse.aether:aether-api:1.0.0.v20140518")
4957
implementation("org.eclipse.aether:aether-util:1.0.0.v20140518")
@@ -63,8 +71,8 @@ dependencies {
6371
implementation(libs.android.gradlePlugin.builder.test.api)
6472

6573
testImplementation(libs.bundles.kotest)
66-
testImplementation("junit:junit:4.13.2")
67-
testImplementation("com.google.truth:truth:1.4.2")
74+
testImplementation(libs.junit)
75+
testImplementation(libs.truth)
6876
testImplementation("commons-io:commons-io:2.15.1")
6977
}
7078

@@ -84,7 +92,7 @@ gradlePlugin {
8492
}
8593
register("firebaseLibraryPlugin") {
8694
id = "firebase-library"
87-
implementationClass = "com.google.firebase.gradle.plugins.FirebaseLibraryPlugin"
95+
implementationClass = "com.google.firebase.gradle.plugins.FirebaseAndroidLibraryPlugin"
8896
}
8997
register("firebaseJavaLibraryPlugin") {
9098
id = "firebase-java-library"

buildSrc/src/main/java/com/google/firebase/gradle/NdkBinaryFixTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ abstract class NdkBinaryFixTask : DefaultTask() {
4242
Files.copy(
4343
inputFile.get().asFile.toPath(),
4444
outputFile.toPath(),
45-
StandardCopyOption.REPLACE_EXISTING
45+
StandardCopyOption.REPLACE_EXISTING,
4646
)
4747
}
4848
}

0 commit comments

Comments
 (0)