diff --git a/.github/workflows/generate_build.yml b/.github/workflows/generate_build.yml
index 636cddc9a6..2f9687254d 100644
--- a/.github/workflows/generate_build.yml
+++ b/.github/workflows/generate_build.yml
@@ -101,10 +101,10 @@ jobs:
run: echo ${{ secrets.RELEASE_STORE_FILE }} | base64 -d >> app/navi-release-key.jks
- name: Build - APK - ${{ inputs.environment }}-${{ inputs.type }}
if: inputs.output == 'APK'
- run: ./gradlew package${{ inputs.environment }}${{ inputs.type }}UniversalApk -PRELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }} -PRELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }} -PRELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }} -PBASE_URL=${{ secrets.BASE_URL }} -PALFRED_API_KEY=${{ secrets.ALFRED_API_KEY }} -PAPPSFLYER_KEY=${{ secrets.APPSFLYER_KEY }} -PHYPERVERGE_APP_ID=${{ secrets.HYPERVERGE_APP_ID }} -PHYPERVERGE_APP_KEY=${{ secrets.HYPERVERGE_APP_KEY }} -PMOENGAGE_KEY=${{ secrets.MOENGAGE_KEY }} -PMQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} -PMQTT_USERNAME=${{ secrets.MQTT_USERNAME }} -PPULSE_BASE_URL=${{ secrets.PULSE_BASE_URL }} -PSSL_PINNING_KEY=${{ secrets.SSL_PINNING_KEY }} -PXIAOMI_PUSH_APP_ID=${{ secrets.XIAOMI_PUSH_APP_ID }} -PXIAOMI_PUSH_APP_KEY=${{ secrets.XIAOMI_PUSH_APP_KEY }} -PYOUTUBE_KEY=${{ secrets.YOUTUBE_KEY }} -PFACEBOOK_APP_ID=${{ secrets.FACEBOOK_APP_ID }} -PTRUECALLER_KEY=${{ secrets.TRUECALLER_KEY }} -PGI_RAZORPAY_KEY=${{ secrets.GI_RAZORPAY_KEY }} -PGOOGLE_MAPS_KEY=${{ secrets.GOOGLE_MAPS_KEY }} -PCODEPUSH_DEPLOYMENT_KEY=${{ secrets.CODEPUSH_DEPLOYMENT_KEY }} -PNAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT=${{ secrets.NAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT }}
+ run: ./gradlew package${{ inputs.environment }}${{ inputs.type }}UniversalApk -PRELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }} -PRELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }} -PRELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }} -PBASE_URL=${{ secrets.BASE_URL }} -PALFRED_API_KEY=${{ secrets.ALFRED_API_KEY }} -PAPPSFLYER_KEY=${{ secrets.APPSFLYER_KEY }} -PHYPERVERGE_APP_ID=${{ secrets.HYPERVERGE_APP_ID }} -PHYPERVERGE_APP_KEY=${{ secrets.HYPERVERGE_APP_KEY }} -PMQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} -PMQTT_USERNAME=${{ secrets.MQTT_USERNAME }} -PPULSE_BASE_URL=${{ secrets.PULSE_BASE_URL }} -PSSL_PINNING_KEY=${{ secrets.SSL_PINNING_KEY }} -PYOUTUBE_KEY=${{ secrets.YOUTUBE_KEY }} -PFACEBOOK_APP_ID=${{ secrets.FACEBOOK_APP_ID }} -PTRUECALLER_KEY=${{ secrets.TRUECALLER_KEY }} -PGI_RAZORPAY_KEY=${{ secrets.GI_RAZORPAY_KEY }} -PGOOGLE_MAPS_KEY=${{ secrets.GOOGLE_MAPS_KEY }} -PCODEPUSH_DEPLOYMENT_KEY=${{ secrets.CODEPUSH_DEPLOYMENT_KEY }} -PNAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT=${{ secrets.NAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT }}
- name: Build - AAB - ${{ inputs.environment }}-${{ inputs.type }}
if: inputs.output == 'AAB'
- run: ./gradlew :app:bundle${{ inputs.environment }}${{ inputs.type }} -PRELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }} -PRELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }} -PRELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }} -PBASE_URL=${{ secrets.BASE_URL }} -PALFRED_API_KEY=${{ secrets.ALFRED_API_KEY }} -PAPPSFLYER_KEY=${{ secrets.APPSFLYER_KEY }} -PHYPERVERGE_APP_ID=${{ secrets.HYPERVERGE_APP_ID }} -PHYPERVERGE_APP_KEY=${{ secrets.HYPERVERGE_APP_KEY }} -PMOENGAGE_KEY=${{ secrets.MOENGAGE_KEY }} -PMQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} -PMQTT_USERNAME=${{ secrets.MQTT_USERNAME }} -PPULSE_BASE_URL=${{ secrets.PULSE_BASE_URL }} -PSSL_PINNING_KEY=${{ secrets.SSL_PINNING_KEY }} -PXIAOMI_PUSH_APP_ID=${{ secrets.XIAOMI_PUSH_APP_ID }} -PXIAOMI_PUSH_APP_KEY=${{ secrets.XIAOMI_PUSH_APP_KEY }} -PYOUTUBE_KEY=${{ secrets.YOUTUBE_KEY }} -PFACEBOOK_APP_ID=${{ secrets.FACEBOOK_APP_ID }} -PTRUECALLER_KEY=${{ secrets.TRUECALLER_KEY }} -PGI_RAZORPAY_KEY=${{ secrets.GI_RAZORPAY_KEY }} -PGOOGLE_MAPS_KEY=${{ secrets.GOOGLE_MAPS_KEY }} -PCODEPUSH_DEPLOYMENT_KEY=${{ secrets.CODEPUSH_DEPLOYMENT_KEY }} -PNAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT=${{ secrets.NAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT }}
+ run: ./gradlew :app:bundle${{ inputs.environment }}${{ inputs.type }} -PRELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }} -PRELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }} -PRELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }} -PBASE_URL=${{ secrets.BASE_URL }} -PALFRED_API_KEY=${{ secrets.ALFRED_API_KEY }} -PAPPSFLYER_KEY=${{ secrets.APPSFLYER_KEY }} -PHYPERVERGE_APP_ID=${{ secrets.HYPERVERGE_APP_ID }} -PHYPERVERGE_APP_KEY=${{ secrets.HYPERVERGE_APP_KEY }} -PMQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} -PMQTT_USERNAME=${{ secrets.MQTT_USERNAME }} -PPULSE_BASE_URL=${{ secrets.PULSE_BASE_URL }} -PSSL_PINNING_KEY=${{ secrets.SSL_PINNING_KEY }} -PYOUTUBE_KEY=${{ secrets.YOUTUBE_KEY }} -PFACEBOOK_APP_ID=${{ secrets.FACEBOOK_APP_ID }} -PTRUECALLER_KEY=${{ secrets.TRUECALLER_KEY }} -PGI_RAZORPAY_KEY=${{ secrets.GI_RAZORPAY_KEY }} -PGOOGLE_MAPS_KEY=${{ secrets.GOOGLE_MAPS_KEY }} -PCODEPUSH_DEPLOYMENT_KEY=${{ secrets.CODEPUSH_DEPLOYMENT_KEY }} -PNAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT=${{ secrets.NAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT }}
- name: Upload - ${{ inputs.output }} - ${{ inputs.environment }}-${{ inputs.type }}
uses: actions/upload-artifact@v4
with:
diff --git a/.github/workflows/macrobenchmark.yml b/.github/workflows/macrobenchmark.yml
index 22a9e8523f..ed94d6dbf1 100644
--- a/.github/workflows/macrobenchmark.yml
+++ b/.github/workflows/macrobenchmark.yml
@@ -43,7 +43,7 @@ jobs:
- name: Export Release Store File
run: echo ${{ secrets.RELEASE_STORE_FILE }} | base64 -d >> app/navi-release-key.jks
- name: Build - APK - app
- run: ./gradlew packageQaReleaseUniversalApk -PRELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }} -PRELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }} -PRELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }} -PBASE_URL=${{ secrets.BASE_URL }} -PALFRED_API_KEY=${{ secrets.ALFRED_API_KEY }} -PAPPSFLYER_KEY=${{ secrets.APPSFLYER_KEY }} -PHYPERVERGE_APP_ID=${{ secrets.HYPERVERGE_APP_ID }} -PHYPERVERGE_APP_KEY=${{ secrets.HYPERVERGE_APP_KEY }} -PMOENGAGE_KEY=${{ secrets.MOENGAGE_KEY }} -PMQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} -PMQTT_USERNAME=${{ secrets.MQTT_USERNAME }} -PPULSE_BASE_URL=${{ secrets.PULSE_BASE_URL }} -PSSL_PINNING_KEY=${{ secrets.SSL_PINNING_KEY }} -PXIAOMI_PUSH_APP_ID=${{ secrets.XIAOMI_PUSH_APP_ID }} -PXIAOMI_PUSH_APP_KEY=${{ secrets.XIAOMI_PUSH_APP_KEY }} -PYOUTUBE_KEY=${{ secrets.YOUTUBE_KEY }} -PFACEBOOK_APP_ID=${{ secrets.FACEBOOK_APP_ID }} -PTRUECALLER_KEY=${{ secrets.TRUECALLER_KEY }} -PGI_RAZORPAY_KEY=${{ secrets.GI_RAZORPAY_KEY }} -PGOOGLE_MAPS_KEY=${{ secrets.GOOGLE_MAPS_KEY }} -PCODEPUSH_DEPLOYMENT_KEY=${{ secrets.CODEPUSH_DEPLOYMENT_KEY }} -PNAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT=${{ secrets.NAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT }}
+ run: ./gradlew packageQaReleaseUniversalApk -PRELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }} -PRELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }} -PRELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }} -PBASE_URL=${{ secrets.BASE_URL }} -PALFRED_API_KEY=${{ secrets.ALFRED_API_KEY }} -PAPPSFLYER_KEY=${{ secrets.APPSFLYER_KEY }} -PHYPERVERGE_APP_ID=${{ secrets.HYPERVERGE_APP_ID }} -PHYPERVERGE_APP_KEY=${{ secrets.HYPERVERGE_APP_KEY }} -PMQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} -PMQTT_USERNAME=${{ secrets.MQTT_USERNAME }} -PPULSE_BASE_URL=${{ secrets.PULSE_BASE_URL }} -PSSL_PINNING_KEY=${{ secrets.SSL_PINNING_KEY }} -PYOUTUBE_KEY=${{ secrets.YOUTUBE_KEY }} -PFACEBOOK_APP_ID=${{ secrets.FACEBOOK_APP_ID }} -PTRUECALLER_KEY=${{ secrets.TRUECALLER_KEY }} -PGI_RAZORPAY_KEY=${{ secrets.GI_RAZORPAY_KEY }} -PGOOGLE_MAPS_KEY=${{ secrets.GOOGLE_MAPS_KEY }} -PCODEPUSH_DEPLOYMENT_KEY=${{ secrets.CODEPUSH_DEPLOYMENT_KEY }} -PNAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT=${{ secrets.NAVIPAY_FIRESTORE_CUSTOMER_DATA_SALT }}
- name: Build - APK - benchmark
run: ./gradlew benchmark:assembleQaBenchmark
- name: Authenticate Cloud SDK
diff --git a/Dockerfile b/Dockerfile
index 7f77d1a729..8df8ec2ad4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -30,13 +30,10 @@ RUN --mount=type=secret,id=RELEASE_STORE_PASSWORD \
--mount=type=secret,id=APPSFLYER_KEY \
--mount=type=secret,id=HYPERVERGE_APP_ID \
--mount=type=secret,id=HYPERVERGE_APP_KEY \
- --mount=type=secret,id=MOENGAGE_KEY \
--mount=type=secret,id=MQTT_PASSWORD \
--mount=type=secret,id=MQTT_USERNAME \
--mount=type=secret,id=PULSE_BASE_URL \
--mount=type=secret,id=SSL_PINNING_KEY \
- --mount=type=secret,id=XIAOMI_PUSH_APP_ID \
- --mount=type=secret,id=XIAOMI_PUSH_APP_KEY \
--mount=type=secret,id=YOUTUBE_KEY \
--mount=type=secret,id=FACEBOOK_APP_ID \
--mount=type=secret,id=TRUECALLER_KEY \
@@ -53,13 +50,10 @@ RUN --mount=type=secret,id=RELEASE_STORE_PASSWORD \
-PAPPSFLYER_KEY=$(cat /run/secrets/APPSFLYER_KEY) \
-PHYPERVERGE_APP_ID=$(cat /run/secrets/HYPERVERGE_APP_ID) \
-PHYPERVERGE_APP_KEY=$(cat /run/secrets/HYPERVERGE_APP_KEY) \
- -PMOENGAGE_KEY=$(cat /run/secrets/MOENGAGE_KEY) \
-PMQTT_PASSWORD=$(cat /run/secrets/MQTT_PASSWORD) \
-PMQTT_USERNAME=$(cat /run/secrets/MQTT_USERNAME) \
-PPULSE_BASE_URL=$(cat /run/secrets/PULSE_BASE_URL) \
-PSSL_PINNING_KEY=$(cat /run/secrets/SSL_PINNING_KEY) \
- -PXIAOMI_PUSH_APP_ID=$(cat /run/secrets/XIAOMI_PUSH_APP_ID) \
- -PXIAOMI_PUSH_APP_KEY=$(cat /run/secrets/XIAOMI_PUSH_APP_KEY) \
-PYOUTUBE_KEY=$(cat /run/secrets/YOUTUBE_KEY) \
-PFACEBOOK_APP_ID=$(cat /run/secrets/FACEBOOK_APP_ID) \
-PTRUECALLER_KEY=$(cat /run/secrets/TRUECALLER_KEY) \
diff --git a/android/app/build.gradle b/android/app/build.gradle
index e211e6b933..00fcd8e0bb 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -145,11 +145,6 @@ android {
excludes += "DebugProbesKt.bin"
}
}
- repositories {
- flatDir {
- dirs 'libs'
- }
- }
sourceSets {
release {
java.srcDirs = ['src/main/java', 'src/release/java']
@@ -172,12 +167,9 @@ android {
buildConfigField 'String', 'HYPERVERGE_APP_ID', formatString('2c007b')
buildConfigField 'String', 'HYPERVERGE_APP_KEY', formatString('c9b1e034f7c8961a3f5b')
buildConfigField 'String', 'PULSE_BASE_URL', formatString('https://dev-janus.np.navi-tech.in/')
- buildConfigField 'String', 'MOENGAGE_KEY', formatString('2PDJ4M6TDY7ADQ5N5LU48H9Y')
buildConfigField 'String', 'MQTT_PASSWORD', formatString('testUser@123')
buildConfigField 'String', 'MQTT_USERNAME', formatString('henry')
buildConfigField 'String', 'SSL_PINNING_KEY', formatString('sha256/nUU7NjGrGo/mxijjsX+MHerUbpIHBidF8LAYOEPFWA8=')
- buildConfigField 'String', 'XIAOMI_PUSH_APP_ID', formatString('2882303761521925585')
- buildConfigField 'String', 'XIAOMI_PUSH_APP_KEY', formatString('5692192517585')
manifestPlaceholders = [
FACEBOOK_APP_ID: "238258890564574",
TRUECALLER_KEY : "yicxl1xh6jidagslpi0h9d-uklfeinnx4a6mb6rdgyi"
@@ -191,13 +183,10 @@ android {
&& project.hasProperty('APPSFLYER_KEY')
&& project.hasProperty('HYPERVERGE_APP_ID')
&& project.hasProperty('HYPERVERGE_APP_KEY')
- && project.hasProperty('MOENGAGE_KEY')
&& project.hasProperty('MQTT_PASSWORD')
&& project.hasProperty('MQTT_USERNAME')
&& project.hasProperty('PULSE_BASE_URL')
&& project.hasProperty('SSL_PINNING_KEY')
- && project.hasProperty('XIAOMI_PUSH_APP_ID')
- && project.hasProperty('XIAOMI_PUSH_APP_KEY')
&& project.hasProperty('FACEBOOK_APP_ID')
&& project.hasProperty('TRUECALLER_KEY')
&& project.hasProperty('CODEPUSH_DEPLOYMENT_KEY')
@@ -206,13 +195,10 @@ android {
buildConfigField 'String', 'APPSFLYER_KEY', formatString("$APPSFLYER_KEY")
buildConfigField 'String', 'HYPERVERGE_APP_ID', formatString("$HYPERVERGE_APP_ID")
buildConfigField 'String', 'HYPERVERGE_APP_KEY', formatString("$HYPERVERGE_APP_KEY")
- buildConfigField 'String', 'MOENGAGE_KEY', formatString("$MOENGAGE_KEY")
buildConfigField 'String', 'MQTT_PASSWORD', formatString("$MQTT_PASSWORD")
buildConfigField 'String', 'MQTT_USERNAME', formatString("$MQTT_USERNAME")
buildConfigField 'String', 'PULSE_BASE_URL', formatString("$PULSE_BASE_URL")
buildConfigField 'String', 'SSL_PINNING_KEY', formatString("$SSL_PINNING_KEY")
- buildConfigField 'String', 'XIAOMI_PUSH_APP_ID', formatString("$XIAOMI_PUSH_APP_ID")
- buildConfigField 'String', 'XIAOMI_PUSH_APP_KEY', formatString("$XIAOMI_PUSH_APP_KEY")
manifestPlaceholders = [
FACEBOOK_APP_ID: "$FACEBOOK_APP_ID",
TRUECALLER_KEY : "$TRUECALLER_KEY"
@@ -282,7 +268,6 @@ dependencies {
implementation project(":navi-pay")
implementation project(":navi-payment")
implementation project(":navi-rr")
- implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
implementation libs.accompanist.systemuicontroller
implementation libs.android.gms.playServicesAds
implementation libs.android.gms.playServicesAuth
diff --git a/android/app/libs/MiPush_SDK_Client_5_1_8-G_3rd.aar b/android/app/libs/MiPush_SDK_Client_5_1_8-G_3rd.aar
deleted file mode 100644
index 91326908e6..0000000000
Binary files a/android/app/libs/MiPush_SDK_Client_5_1_8-G_3rd.aar and /dev/null differ
diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro
index 08ce93de27..0f18bc0362 100644
--- a/android/app/proguard-rules.pro
+++ b/android/app/proguard-rules.pro
@@ -202,52 +202,8 @@
-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
-
#for selfie : hyperverge
-dontwarn co.hyperverge.**
-keepclassmembers class * implements javax.net.ssl.SSLSocketFactory {
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 2351aaf6cf..76f070ad58 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -318,19 +318,6 @@
-
-
-
-
-
-
-
-
-
-
-
()V
PLcom/google/type/a$b;->(Lcom/google/type/a$a;)V
PLcom/google/type/a$b;->t(D)Lcom/google/type/a$b;
PLcom/google/type/a$b;->v(D)Lcom/google/type/a$b;
-Lcom/moengage/core/internal/global/c;
-SPLcom/moengage/core/internal/global/c;->()V
-SPLcom/moengage/core/internal/global/c;->()V
-SPLcom/moengage/core/internal/global/c;->a()Z
-Lcom/moengage/core/internal/logger/a;
-SPLcom/moengage/core/internal/logger/a;->()V
-SPLcom/moengage/core/internal/logger/a;->a(Lcom/moengage/core/internal/logger/c;)V
-SPLcom/moengage/core/internal/logger/a;->b(ILjava/lang/Throwable;Lkotlin/jvm/functions/Function0;)V
-Lcom/moengage/core/internal/logger/b;
-SPLcom/moengage/core/internal/logger/b;->()V
-SPLcom/moengage/core/internal/logger/b;->b(I)Z
-Lcom/moengage/core/internal/logger/c;
-Lcom/moengage/core/internal/logger/e;
-SPLcom/moengage/core/internal/logger/e;->()V
-SPLcom/moengage/core/internal/logger/e;->a()Lcom/moengage/core/internal/logger/a;
-Lcom/moengage/core/internal/logger/e$a;
-SPLcom/moengage/core/internal/logger/e$a;->()V
-SPLcom/moengage/core/internal/logger/e$a;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
-SPLcom/moengage/core/internal/logger/e$a;->a(ILjava/lang/Throwable;Lkotlin/jvm/functions/Function0;)V
-SPLcom/moengage/core/internal/logger/e$a;->d(Lcom/moengage/core/internal/logger/e$a;ILjava/lang/Throwable;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)V
-Lcom/moengage/core/internal/utils/l;
-SPLcom/moengage/core/internal/utils/l;->()V
-SPLcom/moengage/core/internal/utils/l;->h()Ljava/lang/String;
-Lcom/moengage/push/amp/plus/b;
-SPLcom/moengage/push/amp/plus/b;->()V
-SPLcom/moengage/push/amp/plus/b;->()V
-SPLcom/moengage/push/amp/plus/b;->d(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/xiaomi/channel/commonutils/android/a;)V
-SPLcom/moengage/push/amp/plus/b;->g()Z
-Lcom/moengage/push/amp/plus/b$f;
-SPLcom/moengage/push/amp/plus/b$f;->()V
-SPLcom/moengage/push/amp/plus/b$f;->()V
-Lcom/moengage/push/amp/plus/b$i;
-SPLcom/moengage/push/amp/plus/b$i;->()V
-SPLcom/moengage/push/amp/plus/b$i;->()V
Lcom/navi/adverse/data/network/model/AdverseConfig;
SPLcom/navi/adverse/data/network/model/AdverseConfig;->()V
SPLcom/navi/adverse/data/network/model/AdverseConfig;->(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)V
@@ -52506,7 +52472,6 @@ SPLcom/navi/analytics/firebase/a$c;->()V
SPLcom/navi/analytics/firebase/a$c;->()V
SPLcom/navi/analytics/firebase/a$c;->a()Lcom/navi/analytics/firebase/a;
Lcom/navi/analytics/model/AnalyticsConfiguration;
-SPLcom/navi/analytics/model/AnalyticsConfiguration;->(Ljava/lang/String;Ljava/lang/String;Lcom/navi/analytics/model/MoengageData;Lcom/navi/analytics/model/AppInfo;Ljava/lang/String;ZZLcom/navi/analytics/model/PulseConfig;)V
SPLcom/navi/analytics/model/AnalyticsConfiguration;->getAlfredKey()Ljava/lang/String;
SPLcom/navi/analytics/model/AnalyticsConfiguration;->getAppInfo()Lcom/navi/analytics/model/AppInfo;
SPLcom/navi/analytics/model/AnalyticsConfiguration;->getAppsFlyerKey()Ljava/lang/String;
@@ -52520,8 +52485,6 @@ SPLcom/navi/analytics/model/AppInfo;->getAppName()Ljava/lang/String;
SPLcom/navi/analytics/model/AppInfo;->getAppVersionCode()Ljava/lang/String;
SPLcom/navi/analytics/model/AppInfo;->getAppVersionName()Ljava/lang/String;
Lcom/navi/analytics/model/EventData;
-Lcom/navi/analytics/model/MoengageData;
-SPLcom/navi/analytics/model/MoengageData;->(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;)V
Lcom/navi/analytics/model/PulseConfig;
SPLcom/navi/analytics/model/PulseConfig;->(Ljava/lang/String;II)V
SPLcom/navi/analytics/model/PulseConfig;->getEventBatchSize()I
@@ -66472,12 +66435,6 @@ SPLcom/truecaller/android/sdk/oAuth/g;->e(Landroid/content/Context;Ljava/lang/St
SPLcom/truecaller/android/sdk/oAuth/g;->f([B)Ljava/lang/String;
SPLcom/truecaller/android/sdk/oAuth/g;->g(Ljava/security/MessageDigest;[B)Ljava/lang/String;
SPLcom/truecaller/android/sdk/oAuth/g;->h(Ljava/lang/String;[B)Ljava/lang/String;
-Lcom/xiaomi/channel/commonutils/android/MIPushProvider;
-SPLcom/xiaomi/channel/commonutils/android/MIPushProvider;->()V
-SPLcom/xiaomi/channel/commonutils/android/MIPushProvider;->onCreate()Z
-Lcom/xiaomi/channel/commonutils/android/a;
-SPLcom/xiaomi/channel/commonutils/android/a;->()V
-SPLcom/xiaomi/channel/commonutils/android/a;->(Ljava/lang/String;I)V
Ldagger/a;
Ldagger/hilt/a;
HSPLdagger/hilt/a;->a(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
diff --git a/android/app/src/main/java/com/moengage/push/amp/plus/MiPushHelper.kt b/android/app/src/main/java/com/moengage/push/amp/plus/MiPushHelper.kt
deleted file mode 100644
index 15ce1ce0ba..0000000000
--- a/android/app/src/main/java/com/moengage/push/amp/plus/MiPushHelper.kt
+++ /dev/null
@@ -1,213 +0,0 @@
-/*
- *
- * * Copyright © 2014-2024 by Navi Technologies Limited
- * * All rights reserved. Strictly confidential
- *
- */
-
-package com.moengage.push.amp.plus
-
-import android.app.ActivityManager
-import android.content.Context
-import android.os.Process
-import com.moengage.core.LogLevel
-import com.moengage.core.internal.MANUFACTURER_XIAOMI
-import com.moengage.core.internal.global.GlobalResources
-import com.moengage.core.internal.logger.Logger
-import com.moengage.core.internal.utils.MoEUtils
-import com.moengage.core.internal.utils.jsonToBundle
-import com.moengage.mi.MoEMiPushHelper
-import com.moengage.pushbase.MoEPushHelper
-import com.xiaomi.channel.commonutils.android.Region
-import com.xiaomi.mipush.sdk.ErrorCode
-import com.xiaomi.mipush.sdk.MiPushClient
-import com.xiaomi.mipush.sdk.MiPushCommandMessage
-import com.xiaomi.mipush.sdk.MiPushMessage
-import org.json.JSONObject
-
-/**
- * Helper class to integrate Push-Amp-Plus module of the MoEngage SDK.
- *
- * @author Umang Chamaria
- * @since 1.0.0
- */
-object MiPushHelper {
-
- private const val tag = "MiPushHelper"
-
- /**
- * Helper method to pass notification click callback to the MoEngage SDK.
- *
- * @param context instance of [Context]
- * @param message instance of [MiPushMessage]
- * @since 1.0.0
- */
- fun onNotificationClicked(context: Context, message: MiPushMessage) {
- try {
- Logger.print { "$tag onNotificationClicked() : Notification clicked: $message" }
- val messageContent = message.content
- if (messageContent.isNullOrBlank()) return
- val pushPayload = jsonToBundle(JSONObject(messageContent)) ?: return
- MoEMiPushHelper.getInstance().onNotificationClicked(context, pushPayload)
- } catch (e: Throwable) {
- Logger.print(LogLevel.ERROR, e) { "$tag onNotificationClicked() : " }
- }
- }
-
- /**
- * Helper method to pass the notification payload to the MoEngage SDK.
- *
- * @param context instance of [Context]
- * @param message instance of [MiPushMessage]
- * @since 1.0.0
- */
- fun passPushPayload(context: Context, message: MiPushMessage) {
- try {
- Logger.print { "$tag passPushPayload() : $message" }
- val messageContent = message.content
- if (messageContent.isNullOrBlank()) return
- val pushPayload = jsonToBundle(JSONObject(messageContent))
- MoEMiPushHelper.getInstance().passPushPayload(context, pushPayload)
- } catch (e: Exception) {
- Logger.print(LogLevel.ERROR, e) { "$tag passPushPayload() : " }
- }
- }
-
- /**
- * Helper method to pass the Push token to the MoEngage SDK.
- *
- * @param context instance of [Context]
- * @param message instance of [MiPushCommandMessage]
- * @since 1.0.0
- */
- fun passPushToken(context: Context, message: MiPushCommandMessage) {
- try {
- Logger.print { "$tag passPushToken() : Message: $message" }
- val command = message.command
- if (MiPushClient.COMMAND_REGISTER != command) {
- Logger.print { "$tag passPushToken() : Received command is not register command." }
- return
- }
- if (message.resultCode != ErrorCode.SUCCESS.toLong()) {
- Logger.print { "$tag passPushToken() : Registration failed." }
- return
- }
- val arguments = message.commandArguments ?: return
- val pushToken = if (arguments.size > 0) arguments[0] else null
- if (pushToken.isNullOrEmpty()) {
- Logger.print { "$tag passPushToken() : Token is null or empty." }
- return
- }
- val region = MiPushClient.getAppRegion(context)
- Logger.print { "$tag passPushToken() : App Region $region" }
- setDataRegion(context, region)
- MoEMiPushHelper.getInstance().passPushToken(context, pushToken)
- } catch (e: Throwable) {
- Logger.print(LogLevel.ERROR, e) { "$tag passPushToken() : " }
- }
- }
-
- /**
- * Helper API to check if the payload is from MoEngage platform or not.
- *
- * @param message instance of [MiPushMessage]
- * @since 1.0.0
- */
- fun isFromMoEngagePlatform(message: MiPushMessage): Boolean {
- try {
- val messageContent = message.content
- if (messageContent.isNullOrBlank()) return false
- val payload = jsonToBundle(JSONObject(messageContent))
- return MoEPushHelper.getInstance().isFromMoEngagePlatform(payload)
- } catch (e: Throwable) {
- Logger.print(LogLevel.ERROR, e) { "$tag isFromMoEngagePlatform() : " }
- }
- return false
- }
-
- /**
- * Initialise Mi SDK
- *
- * @param context instance of [Context]
- * @param appId App-Id from the Mi Dashboard.
- * @param appKey App-Key from the Mi Dashboard.
- * @param region The region in which the Mi data should reside. Set the region using [Region].
- * @since 1.0.0
- */
- fun initialiseMiPush(context: Context, appKey: String, appId: String, region: Region) {
- if (MANUFACTURER_XIAOMI != MoEUtils.deviceManufacturer()) {
- Logger.print(LogLevel.WARN) {
- "$tag initialiseMiPush() : Not a Xiaomi device, rejecting Mi token."
- }
- return
- }
- if (!MoEMiPushHelper.getInstance().hasMiUi()) {
- Logger.print {
- "$tag initialiseMiPush() : Device Does not have Mi Ui will not register for mi push"
- }
- return
- }
- initialise(context, appId, appKey, region)
- }
-
- /**
- * Set the region in which the Mi data reside.
- *
- * @param context: instance of [Context]
- * @param region: The region in which the Mi data reside. Set the region using [Region].
- * @since 1.0.1
- */
- private fun setDataRegion(context: Context, region: String) {
- try {
- MoEMiPushHelper.getInstance().setDataRegion(context, region.lowercase())
- } catch (e: Throwable) {
- Logger.print(LogLevel.ERROR, e) { "$tag setDataRegion() : " }
- }
- }
-
- private fun isMainProcess(context: Context): Boolean {
- val am =
- context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager ?: return false
- val processInfos = am.runningAppProcesses
- val mainProcessName = context.packageName
- val myPid = Process.myPid()
- for (info in processInfos) {
- if (info.pid == myPid && mainProcessName == info.processName) {
- return true
- }
- }
- return false
- }
-
- private fun initialise(context: Context, appId: String, appKey: String, region: Region) {
- try {
- Logger.print { "$tag initialiseMiPush() : Will initialise Mi Push if required." }
- Logger.print { "$tag initialiseMiPush(): AppId: $appId AppKey: $appKey" }
- if (!isMainProcess(context)) {
- Logger.print {
- "$tag initialiseMiPush() : Will not initialise, not the main process"
- }
- return
- }
- Logger.print { "$tag initialiseMiPush() : Will register for Mi Push" }
- GlobalResources.executor.execute {
- MiPushClient.setRegion(region)
- MiPushClient.registerPush(context.applicationContext, appId, appKey)
- }
- } catch (e: Throwable) {
- Logger.print(LogLevel.ERROR, e) { "$tag initialiseMiPush() : " }
- }
- }
-
- fun isMiDevice(): Boolean {
- if (MANUFACTURER_XIAOMI != MoEUtils.deviceManufacturer()) {
- Logger.print(LogLevel.WARN) { "$tag isMiDevice() : Not a Xiaomi device" }
- return false
- }
- if (!MoEMiPushHelper.getInstance().hasMiUi()) {
- Logger.print { "$tag isMiDevice() : Device Does not have Mi Ui" }
- return false
- }
- return true
- }
-}
diff --git a/android/app/src/main/java/com/moengage/push/amp/plus/MiPushReceiver.kt b/android/app/src/main/java/com/moengage/push/amp/plus/MiPushReceiver.kt
deleted file mode 100644
index 321e28a037..0000000000
--- a/android/app/src/main/java/com/moengage/push/amp/plus/MiPushReceiver.kt
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- *
- * * Copyright © 2014-2024 by Navi Technologies Limited
- * * All rights reserved. Strictly confidential
- *
- */
-
-package com.moengage.push.amp.plus
-
-import android.content.Context
-import android.content.Intent
-import android.content.Intent.FLAG_ACTIVITY_NEW_TASK
-import com.google.firebase.crashlytics.FirebaseCrashlytics
-import com.google.gson.Gson
-import com.moengage.core.internal.logger.Logger
-import com.moengage.core.internal.utils.jsonToBundle
-import com.moengage.pushbase.MoEPushHelper
-import com.navi.analytics.utils.NaviTrackEvent
-import com.navi.common.firebaseremoteconfig.FirebaseRemoteConfigHelper
-import com.navi.common.utils.getSessionId
-import com.naviapp.home.compose.activity.HomePageActivity
-import com.naviapp.utils.Constants
-import com.xiaomi.mipush.sdk.MiPushCommandMessage
-import com.xiaomi.mipush.sdk.MiPushMessage
-import com.xiaomi.mipush.sdk.PushMessageReceiver
-import org.json.JSONObject
-
-/**
- * Callback receiver for Mi SDK
- *
- * @author Umang Chamaria
- * @since 1.0.0
- */
-class MiPushReceiver : PushMessageReceiver() {
-
- companion object {
- const val MI_PUSH_DELIVERED = "XM_DELIVERED"
- const val MI_PUSH_CLICKED = "XM_CLICKED"
- }
-
- private val tag = "MiPushReceiver"
-
- override fun onReceivePassThroughMessage(context: Context?, message: MiPushMessage?) {
- Logger.print { "$tag onReceivePassThroughMessage() : $message" }
- if (message == null || context == null) return
- if (MiPushHelper.isFromMoEngagePlatform(message)) {
- MiPushHelper.passPushPayload(context, message)
- }
- }
-
- override fun onNotificationMessageClicked(context: Context?, message: MiPushMessage?) {
- try {
- Logger.print { "$tag onNotificationMessageClicked() : $message" }
- if (message == null || context == null) return
- MiPushHelper.onNotificationClicked(context, message)
- val pushPayloadContent = message.content
- val isXmPushEnabled =
- FirebaseRemoteConfigHelper.getBoolean(FirebaseRemoteConfigHelper.XM_PUSH_ENABLED)
- if (isXmPushEnabled && !isNotificationFromMoEngage(pushPayloadContent)) {
- handleNaviNotification(pushPayloadContent, context)
- }
- } catch (e: Exception) {
- FirebaseCrashlytics.getInstance().recordException(e)
- }
- }
-
- override fun onNotificationMessageArrived(context: Context?, message: MiPushMessage?) {
- try {
- Logger.print { "$tag onNotificationMessageArrived() : $message" }
- if (message == null || context == null) return
- val pushPayloadContent = message.content
- val isXmPushEnabled =
- FirebaseRemoteConfigHelper.getBoolean(FirebaseRemoteConfigHelper.XM_PUSH_ENABLED)
- if (isXmPushEnabled && !isNotificationFromMoEngage(pushPayloadContent)) {
- val map = Gson().fromJson