I have fully built app that is already used by people on Google Play. Currently on my to-do list is enabling pro-guard and enable code minification and obfuscation.
I tried enabling it, but I it seems to me that minification does something that breaks my code which I am struggling to understand.
I am able to launch app's login screen and it works just fine and logs me in, however, as soon as the profile page is loaded, this error appears and I can't do anything anymore.
The error is:
javax.xml.stream.FactoryFinder
Here is my build.gradle
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
my proguard-rules.pro is default except I added one extra line, so it looks like this:
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keepattributes LineNumberTable,SourceFile
please help me out here.