From 66f22d7b2177f71d634d7d56d46428b773c5383e Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Thu, 8 Jul 2021 11:12:26 +0200 Subject: [PATCH] fix: Only extract either JSC or Hermes REA .aar --- android/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 67714b5..f47836f 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -225,10 +225,10 @@ dependencies { def reactNativeVersion = json.version as String def (major, minor, patch) = reactNativeVersion.tokenize('.') - def raAARJSC = "${rootDir}/../node_modules/react-native-reanimated/android/react-native-reanimated-${minor}-jsc.aar" - def raAARHermes = "${rootDir}/../node_modules/react-native-reanimated/android/react-native-reanimated-${minor}-hermes.aar" + def jsEngine = FOR_HERMES ? "hermes" : "jsc" + def reaAAR = "${rootDir}/../node_modules/react-native-reanimated/android/react-native-reanimated-${minor}-${jsEngine}.aar" - extractJNI(files(rnAAR, jscAAR, raAARJSC, raAARHermes)) + extractJNI(files(rnAAR, jscAAR, reaAAR)) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.5.0"