Feature/code obfuscation (#620)
* testing * started * basic started * testing commented code reverted * testing purpose * prguard rules for mo-engage * minor changes * minor changes
This commit is contained in:
committed by
GitHub Enterprise
parent
14440e030a
commit
e517a1d1cc
@@ -12,7 +12,7 @@ apply plugin: 'com.google.firebase.crashlytics'
|
||||
|
||||
def BASE_URL = baseUrl()
|
||||
def RAZORPAY_KEY = razorpayKey()
|
||||
def VERSION_NAME = "v0.0.1-review"
|
||||
def VERSION_NAME = "1.0.11-proguard"
|
||||
def MOENGAGE_KEY = moengageKey()
|
||||
|
||||
android {
|
||||
@@ -56,8 +56,8 @@ android {
|
||||
versionNameSuffix "-debug"
|
||||
}
|
||||
release {
|
||||
// minifyEnabled true
|
||||
// shrinkResources true
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
@@ -210,8 +210,6 @@ dependencies {
|
||||
implementation 'com.android.support:design:29.0.2'
|
||||
implementation 'com.jakewharton.timber:timber:4.7.1'
|
||||
implementation 'android.arch.work:work-runtime-ktx:1.0.1'
|
||||
implementation 'com.camerakit:camerakit:1.0.0-beta3.11'
|
||||
implementation 'com.camerakit:jpegkit:0.1.0'
|
||||
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.71'
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.2'
|
||||
implementation "com.google.android.gms:play-services-location:17.0.0"
|
||||
@@ -249,12 +247,7 @@ dependencies {
|
||||
implementation project(":digio-esign-v2.6")
|
||||
|
||||
// Add the Firebase SDK for Crashlytics.
|
||||
implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta03'
|
||||
|
||||
//Crashlytics
|
||||
implementation 'com.google.firebase:firebase-analytics:17.3.0'
|
||||
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
|
||||
|
||||
implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta04'
|
||||
|
||||
// for moengage sdk
|
||||
implementation 'com.moengage:moe-android-sdk:10.0.03'
|
||||
@@ -299,5 +292,4 @@ dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-reflect:1.3.71"
|
||||
}
|
||||
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
apply plugin: 'com.google.firebase.crashlytics'
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
216
app/proguard-rules.pro
vendored
216
app/proguard-rules.pro
vendored
@@ -11,11 +11,221 @@
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
-ignorewarnings
|
||||
|
||||
# Uncomment this to preserve the line panNumber information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
#remove logs
|
||||
-assumenosideeffects class android.util.Log { *; }
|
||||
|
||||
-assumenosideeffects class java.io.PrintStream {
|
||||
public void println(%);
|
||||
public void println(**);
|
||||
}
|
||||
|
||||
-keep class **.models.** { *; }
|
||||
|
||||
# If you keep the line panNumber information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
#Gson specific classes
|
||||
-keep class sun.misc.Unsafe { *; }
|
||||
-keep class com.google.gson.stream.** { *; }
|
||||
-keep class com.google.gson.FieldNamingStrategy { *; }
|
||||
-keep class com.google.gson.Gson.** { *; }
|
||||
|
||||
#play services
|
||||
-keep class * extends java.util.ListResourceBundle {
|
||||
protected Object[][] getContents();
|
||||
}
|
||||
|
||||
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
|
||||
public static final *** NULL;
|
||||
}
|
||||
|
||||
-keepnames @com.google.android.gms.common.annotation.KeepName class *
|
||||
-keepclassmembernames class * {
|
||||
@com.google.android.gms.common.annotation.KeepName *;
|
||||
}
|
||||
|
||||
-keepnames class * implements android.os.Parcelable {
|
||||
public static final ** CREATOR;
|
||||
}
|
||||
-keepclassmembers class * implements android.os.Parcelable {
|
||||
public static final android.os.Parcelable$Creator *;
|
||||
}
|
||||
|
||||
#enums
|
||||
-keepclassmembers class * extends java.lang.Enum {
|
||||
<fields>;
|
||||
public static **[] values();
|
||||
public static ** valueOf(java.lang.String);
|
||||
}
|
||||
|
||||
#### Start Retrofit and OKHTTP
|
||||
|
||||
# Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
|
||||
# EnclosingMethod is required to use InnerClasses.
|
||||
-keepattributes Signature, InnerClasses, EnclosingMethod
|
||||
|
||||
# Retrofit does reflection on method and parameter annotations.
|
||||
-keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations
|
||||
|
||||
# Retain service method parameters when optimizing.
|
||||
-keepclassmembers,allowshrinking,allowobfuscation interface * {
|
||||
@retrofit2.http.* <methods>;
|
||||
}
|
||||
|
||||
# Ignore annotation used for build tooling.
|
||||
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
|
||||
|
||||
# Ignore JSR 305 annotations for embedding nullability information.
|
||||
-dontwarn javax.annotation.**
|
||||
|
||||
# Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
|
||||
-dontwarn kotlin.Unit
|
||||
|
||||
# Top-level functions that can only be used by Kotlin.
|
||||
-dontwarn retrofit2.KotlinExtensions
|
||||
-dontwarn retrofit2.KotlinExtensions$*
|
||||
|
||||
# With R8 full mode, it sees no subtypes of Retrofit interfaces since they are created with a Proxy
|
||||
# and replaces all potential values with null. Explicitly keeping the interfaces prevents this.
|
||||
-if interface * { @retrofit2.http.* <methods>; }
|
||||
-keep,allowobfuscation interface <1>
|
||||
|
||||
# JSR 305 annotations are for embedding nullability information.
|
||||
-dontwarn javax.annotation.**
|
||||
|
||||
# A resource is loaded with a relative path so the package of this class must be preserved.
|
||||
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
|
||||
|
||||
# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
|
||||
-dontwarn org.codehaus.mojo.animal_sniffer.*
|
||||
|
||||
# OkHttp platform used only on JVM and when Conscrypt dependency is available.
|
||||
-dontwarn okhttp3.internal.platform.ConscryptPlatform
|
||||
|
||||
-keep class okhttp3.** { *; }
|
||||
-keep interface okhttp3.** { *; }
|
||||
-dontwarn okhttp3.**
|
||||
|
||||
#### END Retrofit and OKHTTP
|
||||
|
||||
-dontwarn org.jetbrains.annotations.**
|
||||
|
||||
|
||||
# for Glide
|
||||
-keep public class * implements com.bumptech.glide.module.GlideModule
|
||||
-keep public class * extends com.bumptech.glide.module.AppGlideModule
|
||||
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
|
||||
**[] $VALUES;
|
||||
public *;
|
||||
}
|
||||
|
||||
#third party camera
|
||||
-keep class com.otaliastudios.cameraview.** { *; }
|
||||
|
||||
#stetho
|
||||
-keep class com.facebook.stetho.** { *; }
|
||||
|
||||
#lottie
|
||||
-dontwarn com.airbnb.lottie.**
|
||||
-keep class com.airbnb.lottie.** {*;}
|
||||
|
||||
#joda time
|
||||
-dontwarn org.joda.convert.FromString
|
||||
-dontwarn org.joda.convert.ToString
|
||||
-keep class org.joda.** { *; }
|
||||
|
||||
#Razor Pay STD intg
|
||||
-keepclassmembers class * {
|
||||
@android.webkit.JavascriptInterface <methods>;
|
||||
}
|
||||
|
||||
-keepattributes JavascriptInterface
|
||||
-keepattributes *Annotation*
|
||||
|
||||
-dontwarn com.razorpay.**
|
||||
-keep class com.razorpay.** {*;}
|
||||
|
||||
-optimizations !method/inlining/*
|
||||
|
||||
-keepclasseswithmembers class * {
|
||||
public void onPayment*(...);
|
||||
}
|
||||
# end of razor pay
|
||||
|
||||
#appsflyer
|
||||
-keep class com.appsflyer.** { *; }
|
||||
-dontwarn com.android.installreferrer
|
||||
|
||||
#digio
|
||||
-keep class com.naviapp.getloan.activities.GetLoanActivity {
|
||||
public void onDigioKyc*(...); #digio aadhaar verification
|
||||
public void onSigning*(...); #digio e-nach
|
||||
}
|
||||
|
||||
#pdfviewer
|
||||
-keep class com.shockwave.**
|
||||
|
||||
#Firebase Crashlytcis
|
||||
-keep public class * extends java.lang.Exception
|
||||
-keep class com.crashlytics.** { *; }
|
||||
-dontwarn com.crashlytics.**
|
||||
|
||||
-keepclassmembers class com.naviapp.tutorial.view.TutorialViewPager {
|
||||
public static ** Companion;
|
||||
}
|
||||
|
||||
|
||||
-dontwarn com.google.android.gms.location.**
|
||||
-keep class com.google.android.gms.location.** { *; }
|
||||
|
||||
-keep class com.moe.pushlibrary.activities.** { *; }
|
||||
-keep class com.moe.pushlibrary.MoEHelper
|
||||
-keep class com.moengage.locationlibrary.GeofenceIntentService
|
||||
-keep class com.moe.pushlibrary.InstallReceiver
|
||||
-keep class com.moe.pushlibrary.providers.MoEProvider
|
||||
-keep class com.moe.pushlibrary.models.** { *;}
|
||||
-keep class com.moengage.core.GeoTask
|
||||
-keep class com.moengage.location.GeoManager
|
||||
-keep class com.moengage.inapp.InAppManager
|
||||
-keep class com.moengage.push.PushManager
|
||||
-keep class com.moengage.inapp.InAppController
|
||||
-keep class com.moe.pushlibrary.AppUpdateReceiver
|
||||
-keep class com.moengage.core.MoEAlarmReceiver
|
||||
-keep class com.moengage.core.MoEngage
|
||||
|
||||
# Push
|
||||
-keep class com.moengage.pushbase.activities.PushTracker
|
||||
-keep class com.moengage.pushbase.activities.SnoozeTracker
|
||||
-keep class com.moengage.pushbase.push.MoEPushWorker
|
||||
-keep class com.moe.pushlibrary.MoEWorker
|
||||
|
||||
# Real Time Triggers
|
||||
-keep class com.moengage.addon.trigger.DTHandlerImpl
|
||||
-keep class com.moengage.core.MoEDTManager
|
||||
-keep class com.moengage.core.MoEDTManager.DTHandler
|
||||
|
||||
# Push Amplification
|
||||
-keep class com.moengage.addon.messaging.MessagingHandlerImpl
|
||||
-keep class com.moengage.push.MoEMessagingManager
|
||||
-keep class com.moengage.addon.messaging.MoEMessageSyncJob
|
||||
-keep class com.moengage.addon.messaging.MoEMessageSyncReceiver
|
||||
-keep class com.moengage.addon.messaging.MoEMessageSyncIntentService
|
||||
|
||||
-dontwarn com.moengage.location.GeoManager
|
||||
-dontwarn com.moengage.core.GeoTask
|
||||
-dontwarn com.moengage.receiver.*
|
||||
-dontwarn com.moengage.worker.*
|
||||
-dontwarn com.moengage.inapp.ViewEngine
|
||||
|
||||
-keep class com.delight.** { *; }
|
||||
|
||||
# only when using FCM
|
||||
-keep class com.moengage.firebase.MoEngaeFireBaseMessagingService
|
||||
-keep class com.moengage.firebase.MoEngageFireBaseInstanceIdService
|
||||
-keep class com.moengage.firebase.PushHandlerImpl
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
|
||||
package com.naviapp.analytics
|
||||
|
||||
import androidx.annotation.Keep
|
||||
|
||||
@Keep
|
||||
class NaviAnalytics private constructor() {
|
||||
|
||||
val naviAnalytics: NaviAnalytics by lazy { Holder.INSTANCE }
|
||||
|
||||
@@ -6,8 +6,10 @@
|
||||
|
||||
package com.naviapp.firebasedb
|
||||
|
||||
import androidx.annotation.Keep
|
||||
import androidx.annotation.StringDef
|
||||
|
||||
@Keep
|
||||
object FirebaseStatusType {
|
||||
|
||||
const val SUCCESS = "SUCCESS"
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
|
||||
package com.naviapp.network
|
||||
|
||||
import androidx.annotation.Keep
|
||||
|
||||
@Keep
|
||||
object ApiConstants {
|
||||
|
||||
const val API_CONNECT_TIMEOUT_VALUE = 15L
|
||||
|
||||
@@ -6,8 +6,10 @@
|
||||
|
||||
package com.naviapp.network
|
||||
|
||||
import androidx.annotation.Keep
|
||||
import androidx.annotation.StringDef
|
||||
|
||||
@Keep
|
||||
object ApiErrorTagType {
|
||||
const val FETCH_ENACH_STATUS_ERROR = "FETCH_ENACH_STATUS_ERROR"
|
||||
const val FETCH_MANDATE_DATA_ERROR = "FETCH_MANDATE_DATA_ERROR"
|
||||
|
||||
BIN
keystore/key.jks
Normal file
BIN
keystore/key.jks
Normal file
Binary file not shown.
Reference in New Issue
Block a user