Skip to content

Commit 15da6f9

Browse files
committed
Fix Hermes project does not use the dependency specified from MAVEN_REPO
1 parent 50b7d92 commit 15da6f9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

android/hermes/build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ repositories {
88
includeGroup "com.facebook.react"
99
}
1010
}
11-
12-
maven {
13-
url(project.findProperty("MAVEN_REPO") ?: "$rootDir/../node_modules/hermesvm/android")
14-
}
1511
}
1612

1713
import com.android.build.OutputFile
@@ -211,9 +207,9 @@ dependencies {
211207
implementation "com.facebook.react:react-native:+" // From node_modules
212208

213209
if (enableHermes) {
214-
def hermesPath = "../../node_modules/hermesvm/android/";
215-
debugImplementation files(hermesPath + "hermes-debug.aar")
216-
releaseImplementation files(hermesPath + "hermes-release.aar")
210+
def hermesPath = project.findProperty("MAVEN_REPO") ?: "../../node_modules/hermesvm/android";
211+
debugImplementation files(hermesPath + "/hermes-debug.aar")
212+
releaseImplementation files(hermesPath + "/hermes-release.aar")
217213
} else {
218214
implementation jscFlavor
219215
}

0 commit comments

Comments
 (0)