diff --git a/app/build.gradle b/app/build.gradle index 0ec48d16..3cbabe5e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { defaultConfig { minSdkVersion rootProject.minSdkVersion targetSdkVersion rootProject.targetSdkVersion - versionCode 39 - versionName "1.0" + versionCode 40 + versionName "1.0.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index b1f1b7a7..ad45b37e 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,6 +1,5 @@ # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified -# in /home/tuska/Android/Sdk/tools/proguard/proguard-android.txt # You can edit the include path and order by changing the proguardFiles # directive in build.gradle. # @@ -15,6 +14,120 @@ #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} + +#dont generate complex names +-dontusemixedcaseclassnames + +#dont skip non public classes +-dontskipnonpubliclibraryclasses + +#dont verify during compilation as after java6 they are already verified,to reduce process time remove it +-dontpreverify + +#Describe more info during processing,for eg,if exception occur,full stack trace will be printed. +-verbose + +#optimization criteria set +-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* + +#all files removed by default,if they are not mentioned in keep,to avoid that using this tag +-dontshrink + +#dont optimize the code +-dontoptimize + +-keepattributes EnclosingMethod + +#to avoid obfuscation of code +#-dontobfuscate + +#upgrade version of class files +#-target 1.6 +#-ignorewarnings + +#For crashlytics +-keepattributes *Annotation* +-keepattributes SourceFile,LineNumberTable +-keep public class * extends java.lang.Exception +-keepattributes Signature +-keepattributes Exceptions + +-ignorewarnings + +-keep class * { + public private *; +} + +#Keep classes that are referenced on the AndroidManifest +-keep public class * extends android.app.Activity +-keep public class * extends androidx.appcompat.app.AppCompatActivity +-keep public class * extends android.app.Application +-keep public class * extends android.app.Service +-keep public class * extends android.content.BroadcastReceiver +-keep public class * extends android.content.ContentProvider +-keep public class com.android.vending.licensing.ILicensingService +-keep public class * extends android.app.Application + +-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* { + long producerIndex; + long consumerIndex; +} +-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { + rx.internal.util.atomic.LinkedQueueNode producerNode; +} +-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef { + rx.internal.util.atomic.LinkedQueueNode consumerNode; +} + + +#avoid changing name of methods on layout onclick +-keepclassmembers class * { + public void onClickButton(android.view.View); +} + +#avoid native methods(if any) +-keepclasseswithmembernames class * { + native ; +} + +#To maintain custom components names that are used on layouts XML +-keep public class custom.components.package.and.name.** + +#To maintain custom components names that are used on layouts XML +-keep public class * extends android.view.View { + public (android.content.Context); + public (android.content.Context, android.util.AttributeSet); + public (android.content.Context, android.util.AttributeSet, int); + public void set*(...); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet, int); +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +#To keep parcelable classes (to serialize - deserialize objects to sent through Intents) +-keep class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator *; +} + +#keep R file +-keepclassmembers class **.R$* { + public static ; +} + +-keepattributes InnerClasses +-dontoptimize +-dontwarn InnerClasses + -keep class com.google.oauth-client.** { *; } -keep class com.google.http-client.** { *; } -ignorewarnings \ No newline at end of file