Wish New option for CustomBuildActions

Informatix

Expert
Licensed User
Longtime User
Have you tried to do it manually (to test it)? It will be difficult to use proguard with the generated code, unless you can disable its obfuscation features.
The Proguard obfuscation feature is a feature among others. You can disable it (and it is not enabled by default).
I never tried to run Proguard on the B4A class files because I cannot do anything with the result (Proguard cannot create a DEX or APK file; it "only" optimizes/obfuscates/shrinks your class files).
 

MarcoRome

Expert
Licensed User
Longtime User
Very very good...
One question, i have:

1 - Before the compiler cleans the objects folder
2 - Before R.java file is generated.
3 - Before the package is signed
4 - Before the APK is installed.
5 - After the APK is installed.
6 - After the Java compilation step

So, example if i have my package name: com.xxxx.test

i have in this path ....\Objects\bin\classes\com\xxxx\test ---> main.class
Now if i want utilize proguard can i write so:
B4X:
#CustomBuildAction: 6, java -jar proguard.jar,  -keep public class com.xxxx.text.main

But Proguard dont wont also -injar and -outjar

Any idea ???
 

Informatix

Expert
Licensed User
Longtime User
Very very good...
One question, i have:

1 - Before the compiler cleans the objects folder
2 - Before R.java file is generated.
3 - Before the package is signed
4 - Before the APK is installed.
5 - After the APK is installed.
6 - After the Java compilation step

So, example if i have my package name: com.xxxx.test

i have in this path ....\Objects\bin\classes\com\xxxx\test ---> main.class
Now if i want utilize proguard can i write so:
B4X:
#CustomBuildAction: 6, java -jar proguard.jar,  -keep public class com.xxxx.text.main

But Proguard dont wont also -injar and -outjar

Any idea ???
You have to provide a configuration file (*.pro) to proguard. Search in this forum. I posted an example.
 
Top