Skip to content

Commit f20cb90

Browse files
author
Kai Guo
committed
Fix Android bundle
1 parent f9bdfd6 commit f20cb90

File tree

3 files changed

+331
-12
lines changed

3 files changed

+331
-12
lines changed

Diff for: .circleci/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ jobs:
196196
- save-cache: *cache_save_gradle_build
197197

198198
# Build and test
199+
- run:
200+
name: Bundle
201+
command: npx react-native bundle --platform android --dev false --entry-file example/index.js --bundle-output example/android/app/src/main/assets/index.android.bundle --assets-dest example/android/app/src/main/res/
199202
- run:
200203
name: Build Android apk
201204
command: cd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release --max-workers 2 -x bundleReleaseJsAndAssets

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"@babel/core": "^7.6.2",
4949
"@babel/runtime": "^7.6.2",
5050
"@react-native-community/eslint-config": "^0.0.5",
51-
"@react-native-community/cli-platform-ios": "3.0.0",
51+
"@react-native-community/cli": "4.6.3",
52+
"@react-native-community/cli-platform-ios": "4.6.3",
5253
"@react-native-community/cli-platform-android": "4.6.3",
5354
"babel-jest": "^24.9.0",
5455
"babel-plugin-module-resolver": "3.1.3",

0 commit comments

Comments
 (0)