Skip to content

Instantly share code, notes, and snippets.

@philographer
Created April 10, 2017 14:16
Show Gist options
  • Save philographer/e3b3627f38652f5343131b082a430e2a to your computer and use it in GitHub Desktop.
Save philographer/e3b3627f38652f5343131b082a430e2a to your computer and use it in GitHub Desktop.
Android Release And Run Shell Script

Android Release And Run Shell Script

#!/bin/bash
# For Inbody Release Build and Run on your mobile phone.

# path
cd ./android

# gradle build for release and signing apk
./gradlew assembleRelease -Pandroid.injected.signing.store.file=./../$KEY_FILE_PATH.jks -Pandroid.injected.signing.store.password=$KEY_PASSWORD -Pandroid.injected.signing.key.alias=$APP_ALIAS_NAME -Pandroid.injected.signing.key.password=$KEY_PASSWORD

# install app on your phone
adb install ./app/build/outputs/apk/app-release.apk

# run app on your phone
adb shell am start -a android.intent.action.MAIN -n $APP_IDENTIFIER/$APP_IDENTIFIER.MainActivity
@philographer
Copy link
Author

verbose options for gradle
gradle -info .....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment