Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

piaskowyk
Copy link
Member

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.

@piaskowyk piaskowyk marked this pull request as ready for review September 26, 2022 08:17
@piaskowyk piaskowyk changed the title Restore using prebuilt binaries [Rea2] Restore using prebuilt binaries Sep 26, 2022
Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

Comment on lines -177 to -191
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()
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also these changes: #3475

Copy link
Member

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) {
Copy link
Member

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?

android/build.gradle Show resolved Hide resolved
android/build.gradle Show resolved Hide resolved
android/build.gradle Show resolved Hide resolved
android/build.gradle Show resolved Hide resolved
@piaskowyk piaskowyk changed the base branch from Reanimated2 to main October 5, 2022 14:09
@piaskowyk piaskowyk changed the base branch from main to Reanimated2 October 5, 2022 14:10
@piaskowyk piaskowyk closed this Oct 5, 2022
@piaskowyk piaskowyk deleted the @piaskowyk/restore-binaries branch October 5, 2022 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants