Skip to content

Instantly share code, notes, and snippets.

@phellipealexandre
Last active February 26, 2020 02:45
Show Gist options
  • Save phellipealexandre/59073e34a7ba615d8c760d59bac50519 to your computer and use it in GitHub Desktop.
Save phellipealexandre/59073e34a7ba615d8c760d59bac50519 to your computer and use it in GitHub Desktop.
lint:
./gradlew lintCheckErrors --info
run-unit-tests:
./gradlew test
run-instrumented-tests: clear-app-data disable-animations
./gradlew connectedAndroidTest
run-all-tests: run-unit-tests build-install-app run-instrumented-tests
assemble-debug-app:
./gradlew assembleDebug
install-debug-app:
./gradlew installDebug
build-and-install-debug-app: assemble-debug-app install-debug-app
uninstall-app:
adb uninstall [your.app.package]
clear-app-data:
adb shell pm clear [your.app.package]
clear-project:
./gradlew clean cleanBuildCache
list-devices:
adb devices
disable-animations:
adb shell settings put global window_animation_scale 0
adb shell settings put global transition_animation_scale 0
adb shell settings put global animator_duration_scale 0
enable-animations:
adb shell settings put global window_animation_scale 1
adb shell settings put global transition_animation_scale 1
adb shell settings put global animator_duration_scale 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment