简体   繁体   English

如何在 Kotlin Gradle dsl 中使用 Firebase BoM?

[英]How to use Firebase BoM in Kotlin Gradle dsl?

How does this look it kotlin DSL:这看起来怎么样 kotlin DSL:

dependencies {
  // Import the BoM for the Firebase platform
  implementation platform('com.google.firebase:firebase-bom:26.2.0')
}

The above is the current recommended at Firebase docs以上是Firebase 文档推荐的电流

dependencies {
    implementation(platform("com.google.firebase:firebase-bom:26.2.0"))
}

Reference: https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import参考: https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Gradle Kotlin DSL 中配置 Firebase 性能监控插件扩展 - How to configure Firebase Performance Monitoring plugin extension in Gradle Kotlin DSL 如何在Kotlin-dsl中使用多种口味? - How to use multiple flavors in gradle with kotlin-dsl? 如何在 Kotlin DSL 上实现 Firebase? - How to implement Firebase on Kotlin DSL? 如何使用 Kotlin dsl gradle 启用代码覆盖率? - How to enable code coverage with Kotlin dsl gradle? 如何在 Kotlin Gradle DSL 中更新 applicationVariants 中的 manifestPlaceholders? - How to update the manifestPlaceholders in applicationVariants in Kotlin Gradle DSL? 如何将 gradle BoM 与注释处理器一起使用? - How to use gradle BoM with annotation processor? 如何使用 Maven-Publish Android Gradle Plugin 生成的组件在 Kotlin DSL (build.gradle.kts) 中? - How do you use Maven-Publish Android Gradle Plugin's generated components in Kotlin DSL (build.gradle.kts)? Gradle Kotlin DSL的versionCodeOverride等效项 - versionCodeOverride equivalent for Gradle Kotlin DSL Gradle Kotlin DSL中Dynatrace的配置 - Configuration of Dynatrace in Gradle Kotlin DSL 如何在 Kotlin Gradle DSL 中为多个模块重用部分 Android 配置? - How to reuse parts of Android configuration in Kotlin Gradle DSL for multiple modules?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM