TP-75788 | Alfred Version Bump

This commit is contained in:
yashmantri
2024-08-09 23:17:48 +05:30
parent 107dd48aac
commit 264cbb90a3
6 changed files with 16 additions and 11 deletions

View File

@@ -144,7 +144,7 @@ android {
defaultConfig {
applicationId "com.avapp"
minSdkVersion rootProject.ext.minSdkVersion
minSdkVersion 23
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode VERSION_CODE
versionName VERSION_NAME
@@ -317,7 +317,9 @@ dependencies {
implementation "com.github.anrwatchdog:anrwatchdog:1.4.0"
implementation 'com.google.android.gms:play-services-location:21.3.0'
implementation 'com.navi.android:alfred:1.1.1'
implementation 'com.navi.android:alfred:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation(platform("com.google.firebase:firebase-bom:32.2.3"))
implementation("com.google.firebase:firebase-config-ktx")
implementation("com.google.firebase:firebase-analytics-ktx")

View File

@@ -48,6 +48,7 @@
android:allowBackup="false"
android:largeHeap="true"
android:requestLegacyExternalStorage="true"
android:extractNativeLibs="true"
android:theme="@style/AppTheme">
<meta-data
android:name="com.supersami.foregroundservice.notification_channel_name"

View File

@@ -121,12 +121,11 @@ public class MainActivity extends ReactActivity implements AlfredFirebaseHelper
public void startAlfredRecording() {
if (AlfredManager.INSTANCE.isAlfredRecordingEnabled() && !hasAlfredRecordingStarted) {
try {
AlfredManager.INSTANCE.startRecording(
AlfredManager.INSTANCE.onActivityResumed(
BuildConfig.APP_NAME,
BuildConfig.APP_NAME,
this,
this.getWindow().getDecorView().getRootView(),
BuildConfig.APP_NAME,
BuildConfig.APP_NAME,
this
this.getApplicationContext()
);
hasAlfredRecordingStarted = true;
} catch (Exception e) {

View File

@@ -93,7 +93,8 @@ public class MainApplication extends Application implements ReactApplication {
AlfredConfig alfredConfig = new AlfredConfig(BuildConfig.APP_NAME, String.valueOf(BuildConfig.VERSION_CODE),
BuildConfig.VERSION_NAME, BuildConfig.BUILD_FLAVOR, BuildConfig.API_KEY);
AlfredManager.INSTANCE.init(alfredConfig, this);
alfredConfig.enablePixelCopy(false);
AlfredManager.INSTANCE.init(alfredConfig, this, 27, "Critical Journey is active");
setupAlfredANRWatchDog(alfredConfig);
setupAlfredCrashReporting(alfredConfig);
@@ -153,7 +154,7 @@ public class MainApplication extends Application implements ReactApplication {
anrEventProperties.put(APP_IN_FOREGROUND, MainActivity.isAppInForeground().toString());
if (isAlfredEnabledFromFirebase && AlfredManager.INSTANCE.isAlfredRecordingEnabled()
&& alfredConfig.getAnrEnableStatus()) {
&& alfredConfig.getAnrEnableStatus() && MainActivity.isAppInForeground()) {
anrEventProperties.put(STACK_TRACE, error.getCause().getStackTrace()[0].toString());
AlfredManager.INSTANCE.handleAnrEvent(anrEventProperties);
}
@@ -177,7 +178,7 @@ public class MainApplication extends Application implements ReactApplication {
crashEventProperties.put(APP_IN_FOREGROUND, MainActivity.isAppInForeground().toString());
if (isAlfredEnabledFromFirebase && AlfredManager.INSTANCE.isAlfredRecordingEnabled()
&& alfredConfig.getCrashEnableStatus()) {
&& alfredConfig.getCrashEnableStatus() && MainActivity.isAppInForeground()) {
StackTraceElement stackTraceElement = exception.getStackTrace()[0];
if (stackTraceElement != null) {
crashEventProperties.put(STACK_TRACE, stackTraceElement.toString());

View File

@@ -4,7 +4,7 @@ buildscript {
ext {
kotlinVersion = '1.6.21'
buildToolsVersion = "31.0.0"
minSdkVersion = 21
minSdkVersion = 23
compileSdkVersion = 33
targetSdkVersion = 33
googlePlayServicesAuthVersion = "19.2.0"