[Android] Add a flag and update kt version to get more info on the JobCancellationException crash
Nicolas Pomepuy
git at videolan.org
Tue Oct 6 10:58:46 CEST 2020
vlc-android | branch: 3.3.x | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Sep 28 15:19:28 2020 +0200| [8c0f218008f9a60ceffe7f4e97b80a2b73eb6a86] | committer: Nicolas Pomepuy
Add a flag and update kt version to get more info on the JobCancellationException crash
(cherry picked from commit 568788e6c8a501496c7f8b36558cc697b6536a46)
> https://code.videolan.org/videolan/vlc-android/commit/8c0f218008f9a60ceffe7f4e97b80a2b73eb6a86
---
.../app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt | 3 +++
build.gradle | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/application/app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt b/application/app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt
index 70c942072..3e8ccab2c 100644
--- a/application/app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt
+++ b/application/app/src/main/java/org/videolan/mobile/app/AppSetupDelegate.kt
@@ -25,6 +25,8 @@ import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.util.Log
+import kotlinx.coroutines.DEBUG_PROPERTY_NAME
+import kotlinx.coroutines.DEBUG_PROPERTY_VALUE_ON
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import org.videolan.libvlc.Dialog
@@ -69,6 +71,7 @@ class AppSetupDelegate : AppDelegate,
Log.i("AppSetupDelegate", "Registering factories")
FactoryManager.registerFactory(IMediaFactory.factoryId, MediaFactory())
FactoryManager.registerFactory(ILibVLCFactory.factoryId, LibVLCFactory())
+ System.setProperty(DEBUG_PROPERTY_NAME, DEBUG_PROPERTY_VALUE_ON)
if (BuildConfig.DEBUG) {
Settings.getInstance(this)
diff --git a/build.gradle b/build.gradle
index d2cabc8c9..c089f18c5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.android_plugin_version = '4.0.1'
- ext.kotlin_version = '1.3.72'
+ ext.kotlin_version = '1.4.10'
ext.kotlinx_version = '1.3.6'
repositories {
flatDir dirs: "gradle/plugins"
More information about the Android
mailing list