TP-80791 | Pulse SDK Integration
This commit is contained in:
@@ -321,9 +321,7 @@ dependencies {
|
||||
implementation(platform("com.google.firebase:firebase-bom:32.2.3"))
|
||||
implementation("com.google.firebase:firebase-config-ktx")
|
||||
implementation("com.google.firebase:firebase-analytics-ktx")
|
||||
implementation 'com.navi.android:pulse:1.6.0'
|
||||
// debugImplementation 'com.github.chuckerteam.chucker:library:4.0.0'
|
||||
// implementation 'com.github.chuckerteam.chucker:library-no-op:4.0.0'
|
||||
implementation 'com.navi.android:pulse:1.6.0-SNAPSHOT'
|
||||
|
||||
//noinspection GradleDynamicVersion
|
||||
implementation "com.facebook.react:react-native:+" // From node_modules
|
||||
|
||||
@@ -31,6 +31,8 @@ import com.github.anrwatchdog.ANRWatchDog;
|
||||
import com.microsoft.codepush.react.CodePush;
|
||||
import com.navi.alfred.AlfredConfig;
|
||||
import com.navi.alfred.AlfredManager;
|
||||
import com.navi.pulse.PulseManager;
|
||||
import com.navi.pulse.PulseSDKConfig;
|
||||
|
||||
import android.database.CursorWindow;
|
||||
|
||||
@@ -106,7 +108,7 @@ public class MainApplication extends Application implements ReactApplication {
|
||||
.setEventBatchSize(1)
|
||||
.setEventInterval(2000)
|
||||
.build();
|
||||
PulseManager.INSTANCE.init(pulseConfig, this, null);
|
||||
PulseManager.INSTANCE.init(pulseConfig, this, null, false);
|
||||
|
||||
setupAlfredANRWatchDog(alfredConfig);
|
||||
setupAlfredCrashReporting(alfredConfig);
|
||||
@@ -158,7 +160,7 @@ public class MainApplication extends Application implements ReactApplication {
|
||||
private void setupAlfredANRWatchDog(AlfredConfig alfredConfig) {
|
||||
Map<String, String> test = new HashMap<>();
|
||||
test.put(SCREEN_NAME, BuildConfig.APP_NAME);
|
||||
// PulseManager.INSTANCE.trackEvent("COSMOS_TEST", test);
|
||||
PulseManager.INSTANCE.trackEvent("COSMOS_TEST", test);
|
||||
new ANRWatchDog().setIgnoreDebugger(true).setReportMainThreadOnly().setANRListener(error -> {
|
||||
if (error.getCause().getStackTrace().length == 0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user