this Bloq entry explains all the necessary steps. Especially if you want to customize your build script.
If you are looking for the actual build of the script, just take a look at your Android SDK / android-X / templates platforms. There should be a file named android_rules.xml.
I configured my build script to clean, build, sign and distribute apk on the connected device. If you want, I can provide you with my script. Just contact me!
source
share