Skip to content

Commit 3200959

Browse files
committed
revert: use the default hermes compiler and runtime version
1 parent 2349524 commit 3200959

4 files changed

Lines changed: 4 additions & 27 deletions

File tree

android/app/build.gradle

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ apply plugin: "org.jetbrains.kotlin.android"
33
apply plugin: "com.facebook.react"
44
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
55

6-
import org.gradle.internal.os.OperatingSystem
7-
86
/**
97
* This is the configuration block to customize your React Native Android app.
108
* By default you don't need to apply any configuration, just uncomment the lines you need.
@@ -49,20 +47,6 @@ import org.gradle.internal.os.OperatingSystem
4947
//
5048
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5149
// hermesFlags = ["-O", "-output-source-map"]
52-
53-
def hermescDir = file("${rootDir}/../node_modules/react-native/node_modules/hermes-compiler/hermesc")
54-
def os = OperatingSystem.current()
55-
56-
if (os.isMacOsX()) {
57-
hermesCommand = "${hermescDir}/osx-bin/hermesc"
58-
} else if (os.isLinux()) {
59-
hermesCommand = "${hermescDir}/linux64-bin/hermesc"
60-
} else if (os.isWindows()) {
61-
hermesCommand = "${hermescDir}/win64-bin/hermesc.exe"
62-
} else {
63-
throw new GradleException("Unsupported OS for Hermes compiler: " + OperatingSystem.current())
64-
}
65-
6650
/* Autolinking */
6751
autolinkLibrariesWithApp()
6852
}
@@ -160,7 +144,6 @@ dependencies {
160144

161145
configurations.all {
162146
resolutionStrategy {
163-
force "com.facebook.hermes:hermes-android:${rootProject.ext.hermesVersion}"
164147
force "androidx.annotation:annotation:1.1.0"
165148
force(
166149
"com.google.android.gms:play-services-base:18.6.0",

android/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
buildscript {
22
ext {
3-
hermesVersion = new groovy.json.JsonSlurper()
4-
.parse(file("../package.json"))
5-
.overrides["hermes-compiler"]
6-
73
buildToolsVersion = "36.0.0"
84
minSdkVersion = 29
95
compileSdkVersion = 36

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,12 @@
6060
"react": "19.2.3",
6161
"react-dom": "19.2.3",
6262
"react-native": "0.84.1",
63-
"hermes-compiler": "250829098.0.14",
6463
"unset-value": "2.0.1",
6564
"semver": "7.7.4"
6665
},
6766
"resolutions": {
6867
"react": "19.2.3",
6968
"react-dom": "19.2.3",
70-
"react-native": "0.84.1",
71-
"hermes-compiler": "250829098.0.14"
69+
"react-native": "0.84.1"
7270
}
7371
}

0 commit comments

Comments
 (0)