Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce new BuildConfig to determine if the new architecture is ful…
…ly enabled into an Android app (#49283) Summary: Pull Request resolved: #49283 In this diff I'm introducing a new BuildConfig called UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE to determine if the new architecture is fully enabled into an Android app at build time, fully enabled means: - no interop - all view managers migrated to new API - all native modules migrated to new API - legacy architecture can be stripped This BuildConfig is different from ReactNativeFeatureFlags.enableBridgelessArchitecture() because the latter is controlled at runtime, BuildConfig.UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE is used at the build system level and it can be accessed from proguard to optimize code that's unused when the app is fully running in the new architecture. Additionally we will use the BuildConfig to assert that some classes and methods are not loaded or executed. changelog: [Android][Changed] Introduces BuildConfig.UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE to determine if the new architecture is fully enabled into an Android app Reviewed By: cortinico Differential Revision: D69206248 fbshipit-source-id: f60a059be8333d3051eb7d2efac79939a479f6f8
- Loading branch information