From 37efdf543c5e952c5c9b3d58b09500b59f3e1b1f Mon Sep 17 00:00:00 2001 From: abhiram Date: Sun, 4 Aug 2024 02:11:07 +0530 Subject: [PATCH] fix app crash on startup --- app/build.gradle | 13 +++++++------ .../vishnu/quotes/controller/AppController.java | 3 +-- build.gradle | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 4dcaef3..2feab51 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,11 +23,12 @@ android { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } + signingConfig signingConfigs.debug + } } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } lintOptions { checkReleaseBuilds false @@ -73,12 +74,12 @@ dependencies { implementation "androidx.room:room-runtime:$room_version" annotationProcessor "androidx.room:room-compiler:$room_version" - implementation "ch.acra:acra-core:5.8.4" + implementation "ch.acra:acra-core:5.11.3" implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0")) - compileOnly "com.google.auto.service:auto-service-annotations:1.0.1" - annotationProcessor "com.google.auto.service:auto-service:1.0.1" + compileOnly "com.google.auto.service:auto-service-annotations:1.1.1" + annotationProcessor "com.google.auto.service:auto-service:1.1.1" implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.legacy:legacy-support-v4:1.0.0' diff --git a/app/src/main/java/phone/vishnu/quotes/controller/AppController.java b/app/src/main/java/phone/vishnu/quotes/controller/AppController.java index 0693d38..282919c 100644 --- a/app/src/main/java/phone/vishnu/quotes/controller/AppController.java +++ b/app/src/main/java/phone/vishnu/quotes/controller/AppController.java @@ -48,10 +48,9 @@ public void onCreate() { @Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); - ACRA.init( this, - new CoreConfigurationBuilder(this) + new CoreConfigurationBuilder() .withBuildConfigClass(BuildConfig.class) .withReportFormat(StringFormat.JSON)); } diff --git a/build.gradle b/build.gradle index 78780bf..ecd92f5 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ buildscript { - ext.kotlinVersion = '1.7.20' + ext.kotlinVersion = '1.9.0' repositories { google()