如何在 Kotlin Gradle dsl 中使用 Firebase BoM?
How to use Firebase BoM in Kotlin Gradle dsl?
kotlin DSL 看起来如何:
dependencies {
// Import the BoM for the Firebase platform
implementation platform('com.google.firebase:firebase-bom:26.2.0')
}
以上是目前在Firebase docs
推荐的
dependencies {
implementation(platform("com.google.firebase:firebase-bom:26.2.0"))
}
参考:https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import
kotlin DSL 看起来如何:
dependencies {
// Import the BoM for the Firebase platform
implementation platform('com.google.firebase:firebase-bom:26.2.0')
}
以上是目前在Firebase docs
推荐的dependencies {
implementation(platform("com.google.firebase:firebase-bom:26.2.0"))
}
参考:https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import