Newbie here, :raised_hands::skin-tone-2: I want to...
# android
e
Newbie here, 🙌🏻 I want to ask, What is the difference between R8 and proguard?
not kotlin but kotlin colored 5
c
This is a workspace of the Kotlin programming language. Your general question should be asked somewhere else - you can find some resources in the channel description.
e
Ohh 😞 I thought R8 and proguard is using in android development.. I badly need help, coz I'm having trouble in Proguard when R8 full mode is enabled. Thank you by the way.
f
You could try to find a local GDG (Google Developer Group), that specializes in Android; To help answer your question. https://gdg.community.dev/
But I’ll try to answer you question; Proguard is a product by the company Guardsquare. Main purpose is to shrink (reduce file size), optimize (remove dead code), and obfuscate (harder to decompile) your code. They provide this for free / open source. (The paid version is called DexGuard) R8 by Google replaced this. R8 is a product made by Google, provided for free, and distributed as part of the Android Gradle Plugin. Google switched from using ProGuard, to using R8 since AGP version 3.4.0. R8 should be a drop-in replacement, and should be completely compatible with the ProGuard config files. It serves the same purpose as the original ProGuard did. R8 replaced ProGuard, and should be 100% compatible. I see no reason to use ProGuard instead of R8. To configure R8, it uses ProGuard config-files. If you need more protection, use DexGuard (paid product) Hope this helps.
5
📌 1
👋 1
e
@Frank Bouwens thank you for your response. It helps me a lot.