fourlastor-alexandria / construo

A gradle plugin to cross compile jvm projects
MIT License
16 stars 1 forks source link

Proguard support request #23

Closed alexstyl closed 2 months ago

alexstyl commented 10 months ago

It would be cool to not have to worry about configuring proguard manually while bundling the apps

fourlastor commented 10 months ago

what did you have in mind? could you provide an example of what you'd want?

alexstyl commented 10 months ago

I'd like to provide a file with the proguard rules I have set and have a way to tell construo about it.

ie:

construo {

   // proguard rules
   proguardRules.set("proguard.pro","other-proguard.pro")
}

the expected output would be binary with the code obfuscated

fourlastor commented 2 months ago

This is fixed in 1.3.0 even tho in a slightly different way:

You need to setup a proguard task as per their documentation, then you can pass the name of proguard task as the jarTask property, and you need to manually specify a mainClass as well (as proguard tasks don't expose it)