-
Notifications
You must be signed in to change notification settings - Fork 929
Remove dependency on existence of isNewArchitectureEnabled()
#1695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dependency on existence of isNewArchitectureEnabled()
#1695
Conversation
@cortinico could you advise here please? |
Another option would be to directly read |
This is the preferred approach (and is actually the most robust one). The CLI is currently assuming the |
Ok I'll implement that! It then will also not be a breaking change. |
Thanks @cortinico @erksch ! |
Think this should also fix #1697 💪 |
9bc2af0
to
0b29193
Compare
0b29193
to
74485f0
Compare
isNewArchitectureEnabled
flag to applyNativeModulesAppBuildGradle
args isNewArchitectureEnabled()
@adamTrz not exactly a fix :D people should still configure their |
Yeah, but at least it shouldn't crash the build :) |
Published v9.0.1 with this. Please check the upgrade guide for the |
I found that
applyNativeModulesAppBuildGradle
innative_modules.gradle
makes assumptions about theisNewArchitectureEnabled
function being defined somehow, which in a normal setup is defined in theapp/build.gradle
of RN boilerplate. Although we may know the setup in whichnative_modules.gradle
will be included there should be no such assumptions in the gradle script.We use a
build.gradle.kts
instead ofbuild.gradle
which as far as I know does not allow for the magic exposure of theisNewArchitectureEnabled
function to thenative_modules.gradle
script.Replacing the function with a direct for "newArchEnabled".
Fixes #1697