revert jackson

This commit is contained in:
LagradOst 2023-10-10 21:45:36 +02:00
parent dd45ac9e8a
commit b4da93c1de
2 changed files with 10 additions and 1 deletions

View file

@ -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")

View file

@ -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 ->