open-obfuscator / dProtect

:electron: dProtect is a Proguard-based obfuscator for Java and Kotlin
https://obfuscator.re/dprotect
GNU General Public License v2.0
317 stars 46 forks source link

Is there any example Android project / known compatible Gradle version? #16

Open SirionRazzer opened 1 year ago

SirionRazzer commented 1 year ago

I tried to use dProtect in Android project with Gradle versions 7. and 8. , but I couldn't make it work. Is there any example Android project that uses Gradle 7.* / which version of Gradle should work?

So far I found out Proguard is not compatible with AGP 8 (Android Studio already comes with AGP 8 by default) (https://github.com/open-obfuscator/dProtect/issues/1 , https://github.com/Guardsquare/proguard/issues/280)

listvin commented 11 months ago

Came here from the issue you mentioned. Following may help you, or may not =) Proguard itself works for me with AGP 7.4.2 (it's com.android.application in root build.gradle) and Gradle version 7.6.3 (it's in /gradle/wrapper/gradle-wrapper.properties) Versions of AGP and Gradle are somewhat coupled, you have to move them carefully together. These are the last supported version to my understanding.