We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a70310 commit b4f7becCopy full SHA for b4f7bec
1 file changed
android/build.gradle
@@ -180,7 +180,14 @@ dependencies {
180
//noinspection GradleDynamicVersion
181
extractJNI("com.facebook.fbjni:fbjni:+")
182
183
- def rnAAR = fileTree("${nodeModules}/react-native/android").matching({ it.include "**/**/*.aar" }).singleFile
+ 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
191
def jscAAR = fileTree("${nodeModules}/jsc-android/dist/org/webkit/android-jsc").matching({ it.include "**/**/*.aar" }).singleFile
192
193
0 commit comments