From a1a89d9ba770d1b92e8ddfe083e76720cecaf918 Mon Sep 17 00:00:00 2001 From: Vladimir Kryachko Date: Thu, 1 Apr 2021 13:14:04 -0400 Subject: [PATCH] Add a tools:remove rule to the discovery service definition. The removal is needed to satisfy the manifest merger when it merges manifests across dynamic feature modules into the base app. Since each Firebase SDK has a discovery service definition in its manifest, placing them into a dynamic feature adds `android:splitName="featureName"` to the discovery service. Subsequent merge into the main app manifest causes a conflict since the splitName is different in each feature. Note that this change is also moving the dynamic module support registrar definition to `firebase-dynamic-module-support` since having an `android:remove` in `firebase-common` produces a warning when the app does not use dynamic feature modules. To avoid this warning, the manifest entry will now live in the dynamic module support sdk, since it's only expected to be used if the host app uses dynamic features. http://b/184263558 --- firebase-common/src/main/AndroidManifest.xml | 7 +------ .../src/main/AndroidManifest.xml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/firebase-common/src/main/AndroidManifest.xml b/firebase-common/src/main/AndroidManifest.xml index f66f9a4f9b9..cf06353f610 100644 --- a/firebase-common/src/main/AndroidManifest.xml +++ b/firebase-common/src/main/AndroidManifest.xml @@ -30,11 +30,6 @@ android:name="com.google.firebase.components.ComponentDiscoveryService" android:directBootAware="true" android:exported="false" - tools:targetApi="n"> - - - + tools:targetApi="n" /> diff --git a/firebase-components/firebase-dynamic-module-support/src/main/AndroidManifest.xml b/firebase-components/firebase-dynamic-module-support/src/main/AndroidManifest.xml index 3dcc1b93efa..f2ead955d84 100644 --- a/firebase-components/firebase-dynamic-module-support/src/main/AndroidManifest.xml +++ b/firebase-components/firebase-dynamic-module-support/src/main/AndroidManifest.xml @@ -18,4 +18,16 @@ package="com.google.firebase.dynamicloading"> + + + + + + +