Skip to content

asjnaang/BuildFaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

BuildFaster (Mac Only, for now)

Build android runnable(apk) faster and run them quickly from terminal.

Step 1: Add following aliases to your .bash_profile or .profile, at the bottom.

alias debugrun="gradlew clean app:installGlobalDebug;launch;date"
alias releaserun="gradlew clean app:installGlobalRelease;launch;date"
alias reinstall="sh <your_home_directory>/install.sh"
alias launch="sh <your_home_directory>/launch.sh"

Names of those aliases can be anything you like. Those are the shortcuts you are going to use from terminal.

Step 2: Keep the above install.sh and launch.sh in your home directory.

Note: Make sure you update the paths of apk or launcher activity with your desired location in those script files.

Usage:

In your terminal, from your android repository, type the following and press 'Enter'.

debugrun: to clean the repository, build debug apk, install in one or many devices connected and launch them after installation completes.

releaserun: to clean the repository, build release apk, install in one or many devices connected and launch them after installation completes.

reinstall: to install existing apk in one or many devices connected, without rebuilding the whole repo.

launch: to launch the app in one or many devices connected

About

Build android runnable(apk) faster and run them quickly on device/emulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages