Skip to content

Commit 962d505

Browse files
committed
fix: 壳工程跳过 js 打包
1 parent 545d495 commit 962d505

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ react {
2121
// The list of variants to that are debuggable. For those we're going to
2222
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
2323
// If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
24-
// debuggableVariants = ["liteDebug", "prodDebug"]
24+
debuggableVariants = ["debug", "release"]
2525

2626
/* Bundling */
2727
// A list containing the node command and its flags. Default is just 'node'.

android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
rootProject.name = 'taroDemo'
22
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
33
include ':app'
4-
includeBuild('../node_modules/@react-native/gradle-plugin')
4+
includeBuild(file('../node_modules/@react-native/gradle-plugin').toPath().toRealPath().toAbsolutePath().toString())
55

66
apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle")
77
useExpoModules()

ios/taroDemo.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
);
296296
runOnlyForDeploymentPostprocessing = 0;
297297
shellPath = /bin/sh;
298-
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";
298+
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";
299299
};
300300
00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = {
301301
isa = PBXShellScriptBuildPhase;

0 commit comments

Comments
 (0)