-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Rea2] Restore using prebuilt binaries #3608
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏻
def JS_RUNTIME = { | ||
// Returns the js runtime explicitly requested in the environment variable | ||
if (System.getenv("JS_RUNTIME")) { | ||
return System.getenv("JS_RUNTIME") | ||
} | ||
|
||
// Detect js runtime from project setup | ||
def defaultRuntimeType = "jsc"; | ||
def v8Project = rootProject.getSubprojects().find { project -> project.name == "react-native-v8" } | ||
if (v8Project != null) { | ||
return "v8" | ||
} | ||
def appProject = findProject(":app") ? project(":app") : null | ||
return appProject?.ext?.react?.enableHermes ? "hermes" : defaultRuntimeType | ||
}.call() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Havent tested the behaviour, but code wise it looks fine.
One note: do we want to remove support for v8?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also these changes: #3475
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And these: #3566
@@ -737,7 +868,7 @@ afterEvaluate { | |||
|
|||
if (CLIENT_SIDE_BUILD) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are CLIENT_SIDE_BUILD
and BUILD_FROM_SOURCE
somehow related? If yes, can we use only BUILD_FROM_SOURCE
?
Description
We used the Gradle script from the main branch (Reanimated 3) for Reanimated 2. However, Reanimated3's Gradle script doesn't use prebuilt binaries from the Reanimated package. I restored the Gradle code from the 2.9.1 version.