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

Loading…
Cancel
Save