Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 8244345

Browse files
committed
scripts
1 parent 467b6a3 commit 8244345

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
"ios": "npx react-native run-ios",
1414
"ios-link": "cd ios && pod install && cd .. && npm run ios",
1515
"android": "npx react-native run-android",
16-
"bundle": "cd android && ./gradlew bundleRelease",
16+
"jsbundle": "rm -rf android/app/src/main/assets/index.android.bundle && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res",
17+
"appbundle": "cd android && ./gradlew clean && ./gradlew bundleRelease",
18+
"build-apks": "bundletool build-apks --bundle=android/app/build/outputs/bundle/release/app-release.aab --output=build/release.apks",
19+
"install-apks": "bundletool install-apks --apks=build/release.apks",
20+
"install-appbundle": "npm run jsbundle && npm run appbundle && npm run build-apks",
1721
"release-android": "cd android && ./gradlew assembleRelease",
1822
"install-android": "adb install android/app/build/outputs/apk/release/app-release.apk",
1923
"clean-native": "rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && rm -rf .git/index.lock package-lock.json yarn.lock node_modules/ ios/build android/build/ android/app/build && npm i && cd ios && pod cache clean -all && pod install && cd .. && npm start -- --reset-cache",

0 commit comments

Comments
 (0)