diff --git a/app/build.gradle b/app/build.gradle index 8fd37ca..6955080 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,7 +12,7 @@ buildscript { } plugins { - id "io.sentry.android.gradle" version "4.10.0" + id "io.sentry.android.gradle" version "4.14.1" id 'com.android.application' id 'kotlin-android' id 'com.ydq.android.gradle.native-aar.import' @@ -38,8 +38,8 @@ android { applicationId "com.example.vu.android" minSdkVersion 21 targetSdkVersion 29 - versionCode System.getenv('VERSION_CODE')?.toInteger() ?: 48 - versionName System.getenv('VERSION_NAME') ?: "2.11.3" + versionCode System.getenv('VERSION_CODE')?.toInteger() ?: 241226 + versionName System.getenv('VERSION_NAME') ?: "24.12.26" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" externalNativeBuild { diff --git a/app/src/main/java/com/example/vu/android/MyApplication.java b/app/src/main/java/com/example/vu/android/MyApplication.java index 8b63189..544ccbd 100644 --- a/app/src/main/java/com/example/vu/android/MyApplication.java +++ b/app/src/main/java/com/example/vu/android/MyApplication.java @@ -75,7 +75,7 @@ public void onCreate() { // Currently under experimental options: options.getExperimental().getSessionReplay().setSessionSampleRate(1.0); - options.getExperimental().getSessionReplay().setErrorSampleRate(1.0); + options.getExperimental().getSessionReplay().setOnErrorSampleRate(1.0); options.setBeforeSend((event, hint) -> {