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

Commit 43e23f6

Browse files
committed
Build scripts & White screen in appbundle fix
1 parent 8244345 commit 43e23f6

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

android/app/build.gradle

+14-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ android {
2727
compileSdkVersion rootProject.ext.compileSdkVersion
2828
buildToolsVersion rootProject.ext.buildToolsVersion
2929

30+
packagingOptions{
31+
exclude '**/libjscexecutor.so'
32+
}
33+
34+
3035
compileOptions {
3136
sourceCompatibility JavaVersion.VERSION_1_8
3237
targetCompatibility JavaVersion.VERSION_1_8
@@ -36,8 +41,8 @@ android {
3641
applicationId "com.onemdev.rnloop"
3742
minSdkVersion rootProject.ext.minSdkVersion
3843
targetSdkVersion rootProject.ext.targetSdkVersion
39-
versionCode 1
40-
versionName "1.0"
44+
versionCode 2
45+
versionName "1.1.0"
4146
multiDexEnabled true
4247
}
4348
signingConfigs {
@@ -100,6 +105,13 @@ dependencies {
100105
} else {
101106
implementation jscFlavor
102107
}
108+
109+
110+
configurations.all {
111+
resolutionStrategy {
112+
force "com.facebook.soloader:soloader:0.8.0"
113+
}
114+
}
103115
}
104116

105117
// Run this once to be able to run the application with BUCK

package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rnloop",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"private": true,
55
"engines": {
66
"node": "12.13.1",
@@ -13,11 +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-
"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",
1716
"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",
17+
"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",
18+
"build-apks": "rm -rf build/release.apks && bundletool build-apks --bundle=android/app/build/outputs/bundle/release/app-release.aab --output=build/release.apks",
19+
"install-apks": "adb uninstall com.onemdev.rnloop && bundletool install-apks --apks=build/release.apks && adb shell am start -n com.onemdev.rnloop/com.onemdev.rnloop.MainActivity",
20+
"install-appbundle": "npm run appbundle && npm run build-apks && npm run install-apks",
2121
"release-android": "cd android && ./gradlew assembleRelease",
2222
"install-android": "adb install android/app/build/outputs/apk/release/app-release.apk",
2323
"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",
@@ -26,8 +26,7 @@
2626
"eslint:fix": "eslint ./app --fix",
2727
"lint:staged": "lint-staged",
2828
"prettify": "prettier --config .prettierrc --write \"**/*.js\"",
29-
"tmp-fix": "babel-node ./temp/fix.js",
30-
29+
3130
},
3231
"lint-staged": {
3332
"*.js": [

0 commit comments

Comments
 (0)