android-proguard

Configure Proguard-rules with Firebase

青春壹個敷衍的年華 提交于 2019-12-31 06:53:08
问题 I've this project and i use Firebase Realtime Database. It's correct write this proguard rules? -keepattributes Signature -keepclassmembers class activity.** { *; } -keepclassmembers class adapter.** { *; } -keepclassmembers class fragment.** { *; } -keepclassmembers class persistence.** { *; } -keepclassmembers class services.** { *; } The app work perfectly but when i release on PlayStore it seem that the query doesn't work. In my gradle i added release { minifyEnabled true proguardFiles

Android Proguard - ClassNotFoundException

你。 提交于 2019-12-30 09:56:08
问题 I enabled proguard for my android app. I can build the project successfully but it crashes on startup with classNotFoundException. It doesn't even find the launcher activity. Here is my proguard rules file -libraryjars libs -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keepnames class com.mypackage.** { *; } //someone suggested this but doesn't work # We only want obfuscation -keepattributes InnerClasses,Signature # Sdk -keep public

Fabric edits the project.properties

走远了吗. 提交于 2019-12-24 11:24:45
问题 I have integrated Fabric in my app. When I open the project.properties file now, it says - This file is now handled by Fabric . Now I cannot see the following line anywhere in the project.properties file proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt I am using in app billing in my app and for that I need to add -keep class com.android.vending.billing in the proguard-project.txt Now I am confused as - project.properties has no line mentioning the proguard

Android Images are not displayed after release build or if i instant run turn off

懵懂的女人 提交于 2019-12-24 07:16:10
问题 I am getting images id from drawable-hdpi at run time using getIdentifier method using following code mContext.getResources().getIdentifier(mContext.getPackageName() + ":drawable/" + mCur.getString(mCur.getColumnIndex(Constant.COLUMN_IMAGE_DRAWABLE)), null, null) i also tried following ways mContext.getResources().getIdentifier(mCur.getString(mCur.getColumnIndex(Constant.COLUMN_IMAGE_DRAWABLE))+"", "drawable", mContext.getPackageName()); and set image resource using following code imgPosotion

DexGuard and Vector Drawables

∥☆過路亽.° 提交于 2019-12-24 05:44:09
问题 I am using DexGuard to compile my app. My app uses vector drawables. I have all the settings correct, and it works correctly, both in the debug version, and when I use Proguard for the release version. It only crashes in the release version when using DexGuard. So I know it's a DexGuard issue. I am using DexGuard v7.0 and I cannot update due to license restrictions. I have added -keepresourcefiles "res/drawable/**" -keep class android.support.v7.** { *; } to my dexguard file for testing

where is the proguard mappings.txt file generated when using JACK?

拜拜、爱过 提交于 2019-12-24 03:27:53
问题 I have been trying to use the latest JACK and JILL build system to for my android project. I know that JACK process includes the proguard processing. But after that i couldn't locate the mappings.txt file for back-tracking stack-trace of bugs provided on google play developer console. Please help me LOCATE mappings.txt . Another related question is if the shrinkingResources still works while JACK because shrinkingResources requires minifyEnabled true but JACK requires minifyEnabled false .

smack for android fails when using proguard

≯℡__Kan透↙ 提交于 2019-12-23 16:54:55
问题 I am using the smack library (4.1.2) in my Android app to connect to an XMPP server. It runs perfectly well when the code is NOT minified (ie with proguard). But in release mode, with proguard enabled, the app crashes as soon as it connects to the server. I am trying to keep all relevant smack classes unminified as suggested here: What are the recommended ProGuard rules for Smack 4.1? -keep class org.jivesoftware.smack.** { *; } -keep class org.jivesoftware.smackx.** { *; } But for me this

RxJava, Proguard and sun.misc.Unsafe

本小妞迷上赌 提交于 2019-12-23 15:49:20
问题 I have problems with RxJava (1.1.0) when using Proguard . I didn't change RxJava version nor its .pro file, but after updating OkHttp I couldn't compile using Proguard because I had warnings about sun.misc.Unsafe not being present. rxJava.pro -keep class rx.schedulers.Schedulers { public static <methods>; } -keep class rx.schedulers.ImmediateScheduler { public <methods>; } -keep class rx.schedulers.TestScheduler { public <methods>; } -keep class rx.schedulers.Schedulers { public static **

Default theme is not working after enable Proguard file(minifyEnabled true)

邮差的信 提交于 2019-12-23 13:30:15
问题 It's my first time that i'm working with Proguard file. I started a new project so i can learn more about Proguard File. My problem is when i enabled the Proguard something went wrong. Hello world is misplaced from its location as in image below : App running without enable Prodguard : My styles file: <resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color

Proguard rules for Android support library (v4 & v7)

佐手、 提交于 2019-12-23 12:13:44
问题 I use, android support library v4 and v7 in my app. I am using only few widgets from the support library (not all of them). But in final release API, 18K functions are included from support libraries. (screenshot attached) How to reduce them? Following is my proguard config. -optimizationpasses 3 -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content