0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Firebaseのライブラリバージョンを楽に管理する

Posted at

AndroidでFirebaseライブラリを導入するとき、バージョンがバラバラで管理が大変になります。 Firebase BoM を使えば、Firebaseライブラリを一括自動でバージョン管理できます。
BoMは複数のFirebase SDKのバージョンを一括で管理する方法です。各ライブラリのバージョンを個別に指定しなくても、自動的に互換性のある最新バージョンが使われます。バージョンの不整合やエラーを防ぎ、メンテナンスが楽になります。

dependencies {
    implementation(platform("com.google.firebase:firebase-bom:32.7.3"))
    // BoMで管理できるライブラリ一覧
    // 実際には必要なライブラリだけ追加する
    implementation("com.google.firebase:firebase-analytics")
    implementation("com.google.firebase:firebase-auth")
    implementation("com.google.firebase:firebase-firestore")
    implementation("com.google.firebase:firebase-database")
    implementation("com.google.firebase:firebase-storage")
    implementation("com.google.firebase:firebase-functions")
    implementation("com.google.firebase:firebase-messaging")
    implementation("com.google.firebase:firebase-crashlytics")
    implementation("com.google.firebase:firebase-perf")
    implementation("com.google.firebase:firebase-config")
    implementation("com.google.firebase:firebase-inappmessaging")
    implementation("com.google.firebase:firebase-inappmessaging-display")
    implementation("com.google.firebase:firebase-dynamic-links")
    implementation("com.google.firebase:firebase-appcheck")
    implementation("com.google.firebase:firebase-appdistribution")
    implementation("com.google.firebase:firebase-appindexing")
    implementation("com.google.firebase:firebase-ml-modeldownloader")
    implementation("com.google.firebase:firebase-installations")
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?