Skip to content

Commit

Permalink
mobile: update script
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Jan 25, 2023
1 parent ae43aa8 commit 4ab949b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/mobile/scripts/debug-dynamic-module.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
tc() { set ${*,,} ; echo ${*^} ; }
adb reverse tcp:8081 tcp:8081 || true
rm -rf $(PWD)/native/android/app/build/outputs/bundle || true
cd native/android && ./gradlew bundleDebug
cd native/android && ./gradlew bundle$2
cd ../../
java -jar $HOME/bundletool/bundletool-all-1.13.2.jar build-apks --overwrite --local-testing --bundle $(PWD)/native/android/app/build/outputs/bundle/debug/app-debug.aab --output $(PWD)/native/android/app/build/outputs/bundle/debug/apkset.apks
java -jar $HOME/bundletool/bundletool-all-1.13.2.jar install-apks --apks $(PWD)/native/android/app/build/outputs/bundle/debug/apkset.apks
java -jar $HOME/bundletool/bundletool-all-1.13.2.jar build-apks --overwrite --local-testing --bundle $(PWD)/native/android/app/build/outputs/bundle/$1/app-$1.aab --output $(PWD)/native/android/app/build/outputs/bundle/$0/apkset.apks
java -jar $HOME/bundletool/bundletool-all-1.13.2.jar install-apks --apks $(PWD)/native/android/app/build/outputs/bundle/$0/apkset.apks
adb shell monkey -p com.streetwriters.notesnook 1

0 comments on commit 4ab949b

Please sign in to comment.