NTP-71625 | Added session Id (#1193)

This commit is contained in:
Aishwarya Srivastava
2025-06-11 18:58:56 +05:30
committed by GitHub
parent 4ae052b2f1
commit 0636bb5b56
6 changed files with 13 additions and 7 deletions

View File

@@ -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"

View File

@@ -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);
}

View File

@@ -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()) {

View File

@@ -1 +1 @@
266
267

View File

@@ -1 +1 @@
2.19.7
2.19.8

View File

@@ -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",