Skip to content

Commit f5bee51

Browse files
authored
chore(*): allow alpha and beta updates for Firebase libraries (#1620)
1 parent 659a8d4 commit f5bee51

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ tasks.register<JavaExec>("ktlintCheck") {
5454
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
5555
}
5656

57+
fun notFromFirebase(candidate: ModuleComponentIdentifier): Boolean {
58+
return candidate.group != "com.google.firebase"
59+
}
60+
5761
fun isNonStable(candidate: ModuleComponentIdentifier): Boolean {
5862
return listOf("alpha", "beta", "rc", "snapshot", "-m", "final").any { keyword ->
5963
keyword in candidate.version.lowercase()
@@ -73,7 +77,7 @@ fun isBlockListed(candidate: ModuleComponentIdentifier): Boolean {
7377

7478
tasks.withType<DependencyUpdatesTask> {
7579
rejectVersionIf {
76-
isNonStable(candidate) || isBlockListed(candidate)
80+
(isNonStable(candidate) && notFromFirebase(candidate)) || isBlockListed(candidate)
7781
}
7882
}
7983

0 commit comments

Comments
 (0)