I made the mistake of upgrading eclipse today and now can't get my a new Android project to get going.
I get the message Proguard.cfg (the file can't be found).
Where is this thing I can't seem to find it? Is it possible to get rid of it I don't need Obfuscation in this project...
Thanks
Android apps, the default ProGuard configuration file supplied by Xamarin. Android will be sufficient to remove all (and only) unused code. To view the default ProGuard configuration, open the file at obj\Release\proguard\proguard_xamarin. cfg.
Android Studio adds the proguard-rules.pro file at the root of the module, so you can also easily add custom ProGuard rules specific to the current module. You can also add ProGuard files to the getDefaultProguardFile directive for all release builds or as part of the productFlavor settings in the build.
Android Gradle Plugin provides us two different ProGuard rules config files which are located under build/intermediates/proguard-files .
lately the base proguard config is here in the sdk dir - so you only have to put this into your project.properties:
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt
if you want to make project-specific modifications, create a proguard-project.txt and change the line to:
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
If you really don't need Proguard to obfuscate your release builds, you can remove the following line from the default.properties file in your project root folder:
proguard.config=proguard.cfg
If you want a proguard.cfg template, you can create a new Android project from scratch with Eclipse's project wizard, then copy proguard.cfg from the new project over to the previous one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With