Skip to content

Commit b276485

Browse files
committed
修复 Firebase 未正常收集数据
1 parent 47782c2 commit b276485

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

buildSrc/src/main/kotlin/AppConfiguration.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ object AppConfiguration {
2626
}
2727

2828
private fun initConfigurations() {
29-
val googleServicesJsonPath = "${System.getProperty("user.dir")}/app/google-services.json"
30-
val googleServicesJsonFile = File(googleServicesJsonPath)
29+
val googleServicesJsonFile = File("app/google-services.json")
3130
googleServicesAvailable =
3231
googleServicesJsonFile.exists() && googleServicesJsonFile.readText().let {
33-
it.contains(appId) && it.contains("$appId.r8test") && it.contains("$appId.debug")
32+
it.contains(appId) && it.contains("$appId.debug")
3433
}
34+
println("Google Services available: $googleServicesAvailable")
3535
}
3636
}
3737

0 commit comments

Comments
 (0)