NTP-71625 | Added session Id (#1193)
This commit is contained in:
committed by
GitHub
parent
4ae052b2f1
commit
0636bb5b56
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
@@ -1 +1 @@
|
||||
266
|
||||
267
|
||||
|
||||
@@ -1 +1 @@
|
||||
2.19.7
|
||||
2.19.8
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user