proguard - Identifying errors in Release build of Android application -
i've started studying build flavors of android application , proguard. i'm doing creating release build of application. this, following changes i've made in buildtypes of build.gradle file.
buildtypes { debug { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt') } release { minifyenabled true zipalignenabled true proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' signingconfig signingconfigs.chitchatreleaseconfig } }
i've created proguard-rules.pro file release build referring following link mentioned @ various places.
https://www.guardsquare.com/en/proguard/manual/examples
however, i'm still confused types of files in project apart general files should include in proguard-rules.pro. because due release build, @ points in app, keep getting filenotfoundexception , i'm not able debug it.
so how decide files in project should include in proguard-rules.pro , how debug filenotfoundexception in app in release build?
proguard comes problems works great minifying apk size. suggest if using third party libraries in app use proguard-rules in proguard-rules file.
to error signed apk use fabric crashlytic. easy integrate(10 minute max) , show complete stacktrace of exception on fabric console .
Comments
Post a Comment