From 962d505fb937bc53354397a7c56688189858930b Mon Sep 17 00:00:00 2001 From: tony chen Date: Fri, 26 Jan 2024 15:22:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A3=B3=E5=B7=A5=E7=A8=8B=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=20js=20=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/build.gradle | 2 +- android/settings.gradle | 2 +- ios/taroDemo.xcodeproj/project.pbxproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index dc8fa57..9c812fe 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -21,7 +21,7 @@ react { // The list of variants to that are debuggable. For those we're going to // skip the bundling of the JS bundle and the assets. By default is just 'debug'. // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants. - // debuggableVariants = ["liteDebug", "prodDebug"] + debuggableVariants = ["debug", "release"] /* Bundling */ // A list containing the node command and its flags. Default is just 'node'. diff --git a/android/settings.gradle b/android/settings.gradle index d115572..cd1f6a6 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1,7 +1,7 @@ rootProject.name = 'taroDemo' apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) include ':app' -includeBuild('../node_modules/@react-native/gradle-plugin') +includeBuild(file('../node_modules/@react-native/gradle-plugin').toPath().toRealPath().toAbsolutePath().toString()) apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle") useExpoModules() \ No newline at end of file diff --git a/ios/taroDemo.xcodeproj/project.pbxproj b/ios/taroDemo.xcodeproj/project.pbxproj index f9382b9..b1bfbb5 100644 --- a/ios/taroDemo.xcodeproj/project.pbxproj +++ b/ios/taroDemo.xcodeproj/project.pbxproj @@ -295,7 +295,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; + shellScript = "set -e\n\nexport SKIP_BUNDLING=1\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; }; 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase;