From b4da93c1de26afc9a0679ea8fbaf338c997db8b6 Mon Sep 17 00:00:00 2001 From: LagradOst <11805592+LagradOst@users.noreply.github.com> Date: Tue, 10 Oct 2023 21:45:36 +0200 Subject: [PATCH] revert jackson --- app/build.gradle.kts | 3 ++- .../com/lagradost/cloudstream3/plugins/PluginManager.kt | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 3b5e8f11..b0798e44 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -177,7 +177,8 @@ dependencies { // implementation("io.karn:khttp-android:0.1.2") //okhttp instead // implementation("org.jsoup:jsoup:1.13.1") - implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.15.2") + // DONT UPDATE, WILL CRASH ANDROID TV ???? + implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.1") implementation("androidx.preference:preference-ktx:1.2.0") diff --git a/app/src/main/java/com/lagradost/cloudstream3/plugins/PluginManager.kt b/app/src/main/java/com/lagradost/cloudstream3/plugins/PluginManager.kt index 5bb96ed1..8e87cc99 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/plugins/PluginManager.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/plugins/PluginManager.kt @@ -477,6 +477,14 @@ object PluginManager { Log.i(TAG, "Loading plugin: $data") return try { + /* in case of android 14 then + try { + File(filePath).setReadOnly() + } catch (t : Throwable) { + Log.e(TAG, "Failed to set dex as readonly") + logError(t) + }*/ + val loader = PathClassLoader(filePath, context.classLoader) var manifest: Plugin.Manifest loader.getResourceAsStream("manifest.json").use { stream ->