Category "proguard"

What does 'minifyEnabled=true' do when all configuration options are disabled?

I have a complicated build setup for an android app which basically consists of a normal android app fused together with a Xamarin/Mono project in order to incl

How to keep class' members untouched if it contains a field with an annotation in proguard

How do I configure proguard/R8 to keep all the fields and methods of a class if the class contains an annotated field? I have a class public class MyDocument {

Is "@Keep support annotation" rule in proguard-android-optimize.txt still applicable when using AndroidX?

It is common to apply proguard-android-optimize.txt as proguard file. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project.

META-INF/version duplicate error when using Proguard

Gradle : 4.10.1 Gradle Android Plugin version : 3.3.2 Proguard : 6.0.3 JDK - 1.9 Android Studio 3.3.2 When I try to build apk release version along with Progua

Progruard and R8 being deprecated - Android Studio 3.6

I'm getting deprecated warnings in regards to Proguard as well as R8 after upgrading my Android Studio to 3.6. Does that mean we shouldn't use obfuscation in ou

Why I get "Expected field or method name at error"

Expected field or method name at ... -keepclassmembers class * { *** @null(android.view.View); }

Gradle : DSL element 'useProguard' is obsolete and will be removed soon

Since the 3.5 update of Android Studio, I have this warning when building my app : DSL element 'useProguard' is obsolete and will be removed soon. Use 'an

Retrofit2 not working when enabling Proguard

I have an application which uses retrofit to fetch logo form an API. When i don't obfuscate and shrink my code, everything works fine. But when i enable it, th

After upgrading gradle to 4.0.0, retrofit do not receive response anymore

After upgrading from gradle 3.6.3 to 4.0.0, retrofit only able to send request but not able to receive response. From the logging I can only see: I/okhttp.OkHtt

Data class metadata is removed with proguard / R8 for Kotlin 1.6.0

I have a package with some data classes and I'm trying to access the constructor at runtime using Kotlin reflection clazz.primaryConstructor, Everything is work

ProGuard - unexpectedly contains class

While I'm trying to obfuscate simple DataLoader.class file in ProGuard I get this error: Reading program directory [C:\Users\uzytkownik\Documents\NetBeansProje

Android app using Proguard & R8 differences [closed]

In my android app i am using Google R8(experimental release for now) and Proguard 6.0.3 ... According to your experience, what do you think ?

Android ProGuard: Most Aggressive Optimizations

Android's official proguard documentation shows two primary optimizations: set minifyEnabled to true use proguard-android-optimize.txt instead of proguard-and

My Request JSON keys (Data class propertis) are getting changed to "a", "b" autometically when I install my app from playstore

Issue Details: I recently developed and uploaded my Android app to the play store. When I install my app through Android-Studio (simply by running the project)

Gradle ignores testProguardFile when running Android instrumentation

I'm trying to run instrumentation tests on a release build type. My setup is as follows: Android Studio - 3.4.1 Android Gradle Plugin - 3.4.1 Gragle - 5.4.1 R8

Gradle ignores testProguardFile when running Android instrumentation

I'm trying to run instrumentation tests on a release build type. My setup is as follows: Android Studio - 3.4.1 Android Gradle Plugin - 3.4.1 Gragle - 5.4.1 R8

Gradle ignores testProguardFile when running Android instrumentation

I'm trying to run instrumentation tests on a release build type. My setup is as follows: Android Studio - 3.4.1 Android Gradle Plugin - 3.4.1 Gragle - 5.4.1 R8

Gradle ignores testProguardFile when running Android instrumentation

I'm trying to run instrumentation tests on a release build type. My setup is as follows: Android Studio - 3.4.1 Android Gradle Plugin - 3.4.1 Gragle - 5.4.1 R8