How to use default ProGuard configurations with Gradle Experimental plugin?

67 views
Skip to first unread message

Pol

unread,
Jun 12, 2016, 12:50:03 AM6/12/16
to android-ndk
Hi,

What's the equivalent of "proguardFiles getDefaultProguardFile('proguard-android.txt')" in the DSL of the Gradle Experimental plugin. The docs don't mention it and I couldn't figure it from trial and error.

android.buildTypes {
    release {
        minifyEnabled = true
        proguardFiles.add(file("proguard-rules.txt"))  <---- How to add "proguard-android.txt" here?
        ndk.with {
            CFlags.add("-Werror")
            cppFlags.add("-Werror")
        }
    }
}

I'm also assuming "proguard-android.txt" is not included by default contrary to the non-experimental Gradle. Is this correct?

- Pol
Reply all
Reply to author
Forward
0 new messages