diff --git a/android/app/build.gradle b/android/app/build.gradle index 06f95816..5237903d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -113,8 +113,8 @@ def jscFlavor = 'org.webkit:android-jsc:+' def enableHermes = project.ext.react.get("enableHermes", false); -def VERSION_CODE = 266 -def VERSION_NAME = "2.19.7" +def VERSION_CODE = 267 +def VERSION_NAME = "2.19.8" android { namespace "com.avapp" diff --git a/android/app/src/main/java/com/avapp/DeviceUtilsModule.java b/android/app/src/main/java/com/avapp/DeviceUtilsModule.java index ee3135e4..e6d806e5 100644 --- a/android/app/src/main/java/com/avapp/DeviceUtilsModule.java +++ b/android/app/src/main/java/com/avapp/DeviceUtilsModule.java @@ -3,6 +3,7 @@ package com.avapp; import static android.app.Activity.RESULT_CANCELED; import static com.avapp.MainApplication.isAlfredEnabledFromFirebase; +import static com.avapp.MainApplication.agentId; import android.app.Activity; import android.content.Context; @@ -208,6 +209,7 @@ public class DeviceUtilsModule extends ReactContextBaseJavaModule { if (isAlfredEnabledFromFirebase) { AlfredManager.INSTANCE.getConfig$navi_alfred_release().setUserId(userId); } + agentId = (userId != null) ? userId : ""; PulseManager.INSTANCE.setUserId(userId); } diff --git a/android/app/src/main/java/com/avapp/MainApplication.java b/android/app/src/main/java/com/avapp/MainApplication.java index 5dc90354..d8267a99 100644 --- a/android/app/src/main/java/com/avapp/MainApplication.java +++ b/android/app/src/main/java/com/avapp/MainApplication.java @@ -55,6 +55,8 @@ public class MainApplication extends Application implements ReactApplication, Ap public static boolean isAlfredEnabledFromFirebase = false; public static int appForegroundCounter = 0; + public static String agentId = ""; + private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override public boolean getUseDeveloperSupport() { @@ -190,7 +192,8 @@ public class MainApplication extends Application implements ReactApplication, Ap anrEventProperties.put("isNae", "true"); anrEventProperties.put("errorTitle", "Something went wrong"); anrEventProperties.put("vertical", "COLLECTIONS_FIELD"); - + anrEventProperties.put("sessionId", agentId); + if (isAlfredEnabledFromFirebase && AlfredManager.INSTANCE.isAlfredRecordingEnabled() && alfredConfig.getAnrEnableStatus() && isAppInForeground()) { anrEventProperties.put(STACK_TRACE, "ANR_OCCURRED"); @@ -221,6 +224,7 @@ public class MainApplication extends Application implements ReactApplication, Ap crashEventProperties.put("isNae", "true"); crashEventProperties.put("errorTitle", "Something went wrong"); crashEventProperties.put("vertical", "COLLECTIONS_FIELD"); + crashEventProperties.put("sessionId", agentId); if (isAlfredEnabledFromFirebase && AlfredManager.INSTANCE.isAlfredRecordingEnabled() && alfredConfig.getCrashEnableStatus() && isAppInForeground()) { diff --git a/buildFlavor/field/buildNumber.txt b/buildFlavor/field/buildNumber.txt index c1d1ffbb..81e5b7ce 100644 --- a/buildFlavor/field/buildNumber.txt +++ b/buildFlavor/field/buildNumber.txt @@ -1 +1 @@ -266 +267 diff --git a/buildFlavor/field/buildVersion.txt b/buildFlavor/field/buildVersion.txt index 7b054ef0..3983e5a6 100644 --- a/buildFlavor/field/buildVersion.txt +++ b/buildFlavor/field/buildVersion.txt @@ -1 +1 @@ -2.19.7 +2.19.8 diff --git a/package.json b/package.json index 2c88b889..954139fc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "AV_APP", - "version": "2.19.7", - "buildNumber": "266", + "version": "2.19.8", + "buildNumber": "267", "private": true, "scripts": { "android:dev": "yarn move:dev && react-native run-android",