From 16aed0ea1c9d0fe3f7057ae28527bb6f27172d34 Mon Sep 17 00:00:00 2001 From: Steffen Kleinle Date: Mon, 11 Nov 2024 09:26:22 +0100 Subject: [PATCH] Speed up local development android builds --- native/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/run b/native/run index 912740166f..a93ab41d51 100755 --- a/native/run +++ b/native/run @@ -21,7 +21,7 @@ program .option('--production', 'whether a production (release) build should be made') .action((buildConfigName, options) => { const { production } = options - const productionFlag = production ? '--mode=release' : '' + const buildFlag = production ? '--mode=release' : '--active-arch-only' const jsonBuildConfig = execSync( `yarn workspace --silent build-configs --silent manage to-json ${buildConfigName} android`, @@ -34,7 +34,7 @@ program .toString() .replaceAll('\n', ' ') execSync( - `yarn cross-env ${buildConfig} yarn react-native run-android --no-packager --appId ${applicationId} ${productionFlag}`, + `yarn cross-env ${buildConfig} yarn react-native run-android --no-packager --appId ${applicationId} ${buildFlag}`, { stdio: 'inherit' }, ) })