In my application I enabled progurad by minifyEnabled true and progurad rules I didn't added,I build the signed in apk then it is crashing in the lauching only then I thought that, I have to add the classes which has not to be minfied. then I added progurd rules like -keep public class * extends android.app.Activity, then also it is not working, I don't know why, becuase it depends on other files like views and R files all. So my doubt is When I enabled progurad I have to add all my classes and libraries in progurad rules,or it will minify other classes and made as will not work.So how can I add all the classes without crashing app when it build signed in apk After adding in proguard rules also it is crashing the app Add project specific ProGuard rules here.
> -keep public class * extends android.app.Activity
> -keep public class * extends android.app.Application
> -keep public class * extends android.support.v7.app.AppCompatActivity
> -keep public class * extends android.content.BroadcastReceiver
> -keep public class * extends android.content.ContentProvider
> -keep public class * extends android.preference.Preference
> -keep public class android.os.AsyncTask
> -keep public class * extends android.view.View {
> public <init>(android.content.Context);
> public <init>(android.content.Context, android.util.AttributeSet);
> public <init>(android.content.Context, android.util.AttributeSet, int); }
> -keepclasseswithmembers class * {
> public <init>(android.content.Context, android.util.AttributeSet); }
> -keepclasseswithmembers class * {
> public <init>(android.content.Context, android.util.AttributeSet, int); }
> -keepclassmembers class * extends android.content.Context {
> public void *(android.view.View);
> public void *(android.view.MenuItem); }
> # The official support library.
> -keep class android.support.v4.app.** { *; }
> -keep interface android.support.v4.app.** { *; }
> -keep class android.support.v7.app.** { *; }
> -keep interface android.support.v7.app.** { *; }
> -dontwarn android.support.**
How can I test an app with proguard release build, is there anything to check direclty signed in apk or I have to add any mapping files.How can I test direct release apk or If that apk upload into playstore then it will work based on mapping files