diff --git a/INTERNAL.md b/INTERNAL.md index 24e79772..0e2893b4 100644 --- a/INTERNAL.md +++ b/INTERNAL.md @@ -239,3 +239,22 @@ we lose the ability to quickly build just the aapt binary. So the Windows proced 1. `source build/envsetup.sh` 2. `lunch sdk-eng` 3. `make OUT_DIR=out-x64 LOCAL_MULTILIB=64 USE_NINJA=false aapt` + +# Gradle Tips n Tricks + + ./gradlew build shadowJar proguard -x test + +This skips the testing suite (which currently takes 2-4 minutes). Use this when making quick builds and save the testing +suite before pushing to GitHub. + + ./gradlew build shadowJar proguard -Dtest.debug + +This enables debugging on the test suite. This starts the debugger on port 5005 which you can connect with IntelliJ. + + ./gradlew :brut.apktool:apktool-lib:test ---tests "*BuildAndDecodeTest" + +This runs the library project of Apktool, selecting a specific test to run. Comes in handy when writing a new test and +only wanting to run that one. The asterisk is used to the full path to the test can be ignored. You can additionally +match this with the debugging parameter to debug a specific test. This command can be found below. + + ./gradlew :brut.apktool:apktool-lib:test --tests "*BuildAndDecodeTest" -Dtest.debug