Skip to content

Commit 476e1de

Browse files
committed
remove assets + add script build release apk
1 parent 15b2204 commit 476e1de

4 files changed

Lines changed: 3 additions & 1 deletion

File tree

-16.8 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"lint:fix": "eslint ./ --fix",
1818
"clean:ios": "rm -rf ./ios/build/",
1919
"clean:android": "rm -rf ./android/build/ ./android/app/build/",
20-
"clean": "npm run clean:ios && npm run clean:android"
20+
"clean": "npm run clean:ios && npm run clean:android",
21+
"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/",
22+
"build:android": "npm run bundle && rm -rf android/app/src/main/res/drawable-* && cd android && ./gradlew assembleRelease"
2123
},
2224
"dependencies": {
2325
"axios": "^0.18.0",

0 commit comments

Comments
 (0)