Change vectordrawable-animated package name.
Package name for a library only affects the package of R.java class.
In the namespaced resource world each R.java file has to be in a unique
package. We were violating that in vectordrawable-animated library.
We got lucky that this library has no resources, so we are not breaking
anyone.
This change also enables the check to make sure we don't make this
mistake again.
Bug: 132781141
Test: ./gradlew assembleDebug passes w/ this patch and check enabled
Change-Id: Id97a6b6bdfe4627826aec65716dd8c8bacf0fe8f
diff --git a/docs-fake/build.gradle b/docs-fake/build.gradle
index b6ef181..a13de10 100644
--- a/docs-fake/build.gradle
+++ b/docs-fake/build.gradle
@@ -17,6 +17,13 @@
import androidx.build.SupportConfig
import static androidx.build.dependencies.DependenciesKt.CHECKER_FRAMEWORK
+buildscript {
+ // TODO: Remove this when this test app no longer depends on 1.0.0 of vectordrawable-animated.
+ // vectordrawable and vectordrawable-animated were accidentally using the same package name
+ // which is no longer valid in namespaced resource world.
+ project.ext['android.uniquePackageNames'] = false
+}
+
plugins {
id("AndroidXPlugin")
id("com.android.application")