mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-01 14:47:56 +01:00
update internal docs with gradle tips
This commit is contained in:
parent
59df68911d
commit
0e6eaf9e67
19
INTERNAL.md
19
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`
|
1. `source build/envsetup.sh`
|
||||||
2. `lunch sdk-eng`
|
2. `lunch sdk-eng`
|
||||||
3. `make OUT_DIR=out-x64 LOCAL_MULTILIB=64 USE_NINJA=false aapt`
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user