Skip to content

Commit b4f7bec

Browse files
author
Oscar Franco
committed
Fix build.gradle for RN 69
1 parent 2a70310 commit b4f7bec

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

android/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,14 @@ dependencies {
180180
//noinspection GradleDynamicVersion
181181
extractJNI("com.facebook.fbjni:fbjni:+")
182182

183-
def rnAAR = fileTree("${nodeModules}/react-native/android").matching({ it.include "**/**/*.aar" }).singleFile
183+
def buildType = "debug"
184+
tasks.all({ task ->
185+
if (task.name == "buildCMakeRelease") {
186+
buildType = "release"
187+
}
188+
})
189+
def rnAarMatcher = "**/react-native/**/*${buildType}.aar"
190+
def rnAAR = fileTree("$reactNative/android").matching({ it.include rnAarMatcher }).singleFile
184191
def jscAAR = fileTree("${nodeModules}/jsc-android/dist/org/webkit/android-jsc").matching({ it.include "**/**/*.aar" }).singleFile
185192

186193

0 commit comments

Comments
 (0)