android - How to use custom proguard.jar in Gradle build? -
i trying run proguard on app includes unity 3d. proguard fails trying process unity-classes.jar, , workaround build proguard myself patch applied (see this link bug report).
so, have own custom proguard.jar now, how can android plugin use it? eclipse matter of replacing proguard.jar in android sdk directory, doesn't work anymore android studio/gradle. in fact, can delete proguard files tools/proguard/lib/, , still runs!
how can android studio/gradle use custom built proguard.jar?
i solved placing custom proguard.jar in directory named "proguard" in root folder (not project root folder) , setup gradle file this:
buildscript { repositories { flatdir { dirs 'proguard' } mavencentral() } dependencies { classpath 'proguard.io:proguard:5.0' classpath 'com.android.tools.build:gradle:0.12.+' } }
Comments
Post a Comment