Disable from-text stub generation for i18n.module.intra.core.api
i18n.module.intra.core.api depends on i18n.module.public.api
for from-text stub generation, as the generated stubs contain APIs that
are not included in the api signature file generated from this module.
However, setting i18n.module.public.api as a dependency of
i18n.module.intra.core.api leads to circular dependency and
requires further bootstrapping to resolve the issue.
This change does not lead to any user-facing changes, as
i18n.module.intra.core.api is currently being built from-source by
default.
Test: m --no-skip-soong-tests
Bug: 276958307
Change-Id: Ib551cdf04da1901ba56abf9d04aa15bd8af72b12
diff --git a/android_icu4j/Android.bp b/android_icu4j/Android.bp
index 43b66e6..88ecd4c 100644
--- a/android_icu4j/Android.bp
+++ b/android_icu4j/Android.bp
@@ -291,6 +291,12 @@
lint: {
warning_checks: ["SuspiciousIndentation"],
},
+
+ // This module's output stubs contain apis defined in "i18n.module.public.api.stubs",
+ // but adding "i18n.module.public.api" as a dependency of this module leads to circular
+ // dependency and requires further bootstrapping. Thus, disable stubs generation from the
+ // api signature files and generate stubs from the source Java files instead.
+ build_from_text_stub: false,
}
// Referenced implicitly from i18n.module.intra.core.api.