Set exclude.

Change-Id: I33860d84cf111173d8e8f284bd4f3ce0336a4871
pull/1412/head
Jaehwa Noh 9 months ago
parent b8872bfed6
commit 8f001c3ed1

@ -32,20 +32,22 @@ class AndroidApplicationFirebaseConventionPlugin : Plugin<Project> {
apply("com.google.firebase.crashlytics")
}
dependencies {
val bom = libs.findLibrary("firebase-bom").get()
add("implementation", platform(bom))
add("implementation", "firebase.analytics")
add("implementation", "firebase.performance")
configurations.forEach {
/*
Exclusion of protobuf / protolite dependencies is necessary as the
datastore-proto brings in protobuf dependencies. These are the source of truth
for Now in Android.
That's why the duplicate classes from below dependencies are excluded.
*/
exclude(group = "com.google.protobuf", module = "protobuf-javalite")
exclude(group = "com.google.firebase", module = "protolite-well-known-types")
it.exclude(group = "com.google.protobuf", module = "protobuf-javalite")
it.exclude(group = "com.google.firebase", module = "protolite-well-known-types")
}
dependencies {
val bom = libs.findLibrary("firebase-bom").get()
add("implementation", platform(bom))
add("implementation", "firebase.analytics")
add("implementation", "firebase.performance")
add("implementation", "firebase.crashlytics")
}

Loading…
Cancel
Save