From 546eb410022ba60c7bf58d673442c6369f54d84c Mon Sep 17 00:00:00 2001 From: Kudo Chien Date: Thu, 23 Jun 2022 21:01:17 +0800 Subject: [PATCH] [android] Support caching prebuilt hermes-engine --- packages/react-native/ReactAndroid/build.gradle.kts | 9 +++++++++ .../src/main/res/devsupport/values-es/strings.xml | 6 ------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/react-native/ReactAndroid/build.gradle.kts b/packages/react-native/ReactAndroid/build.gradle.kts index 4909aeddba5dd2..9fa66f1bb244a9 100644 --- a/packages/react-native/ReactAndroid/build.gradle.kts +++ b/packages/react-native/ReactAndroid/build.gradle.kts @@ -502,6 +502,8 @@ android { ndkVersion = libs.versions.ndkVersion.get() } + resourcePrefix = "reactandroid_" + compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 @@ -768,6 +770,13 @@ dependencies { compileOnly(libs.javax.annotation.api) api(libs.javax.inject) + if (!buildHermesSource) { + debugCompileOnly(files("${prebuiltHermesDir}/hermes-engine-debug.aar")) + releaseCompileOnly(files("${prebuiltHermesDir}/hermes-engine-release.aar")) + } else { + compileOnly(project(":packages:react-native:ReactAndroid:hermes-engine")) + } + // It's up to the consumer to decide if hermes should be included or not. // Therefore hermes-engine is a compileOnly dependency. compileOnly(project(":packages:react-native:ReactAndroid:hermes-engine")) diff --git a/packages/react-native/ReactAndroid/src/main/res/devsupport/values-es/strings.xml b/packages/react-native/ReactAndroid/src/main/res/devsupport/values-es/strings.xml index 8f57bcdea88771..1d7fa7ebc63fc5 100644 --- a/packages/react-native/ReactAndroid/src/main/res/devsupport/values-es/strings.xml +++ b/packages/react-native/ReactAndroid/src/main/res/devsupport/values-es/strings.xml @@ -3,12 +3,6 @@ -<<<<<<< HEAD -||||||| parent of 6b77155168f ([ReactAndroid] Prefix all resources with 'reactandroid_') - Menú de desarrollador nativo de reacción (%1$s) - Se está ejecutando %1$s -======= Menú de desarrollador nativo de reacción (%1$s) Se está ejecutando %1$s ->>>>>>> 6b77155168f ([ReactAndroid] Prefix all resources with 'reactandroid_')