Closed JHarzenetter closed 2 months ago
Yes, minify changes class names. You need to add a configuration to avoid this. Or just disable renaming of classes if possible. But I am not using minify myself, so I cannot give you any further help at the moment. But a PR that adds a minify configuration is weclome.
@schwabe I tried it myself and got it working in a very simple way. Just add the following in the proguard-rules.pro file in the Project which is using the AIDL.
-keep interface de.blinkt.openvpn.api.IOpenVPNAPIService { *; }
-keep interface de.blinkt.openvpn.api.IOpenVPNStatusCallback { *; }
-keep class de.blinkt.openvpn.api.APIVpnProfile { *; }
Thanks I added these rules to the example project.
To make issues more manageable, I would appreciate it if you fill out the following details as applicable:
General information
Description of the issue
I get some problems after i added the aidl API and trying to relase it with minification enabled. Additional i tried this example app and narrowed it down to the following problem
Whats missing after App start:
I'm pretty sure that it's the minifyEnabled-Flag thats causing it. Maybe you can help me out. And no disableing the minification is not an option because it causes the app to be 5x the size