diff --git a/android/app/build.gradle b/android/app/build.gradle index c5a8e226..c0a1e43c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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 diff --git a/android/app/src/main/java/com/avapp/MainApplication.java b/android/app/src/main/java/com/avapp/MainApplication.java index b63fb889..b30857a8 100644 --- a/android/app/src/main/java/com/avapp/MainApplication.java +++ b/android/app/src/main/java/com/avapp/MainApplication.java @@ -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 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;