From 2d03f3ce1e2ec320596837b2c3e23056f7b2eeb5 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 2 Jan 2022 11:25:23 -0500 Subject: [PATCH] Add QuickJS dependency to eventually replace Duktape --- app/build.gradle.kts | 2 ++ app/proguard-rules.pro | 1 + 2 files changed, 3 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 774d96c5d..c7d59c166 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -189,6 +189,8 @@ dependencies { implementation("org.jetbrains.kotlinx:kotlinx-serialization-protobuf:$kotlinSerializationVersion") // JavaScript engine + implementation("app.cash.quickjs:quickjs-android:0.9.2") + // TODO: remove Duktape once all extensions are using QuickJS implementation("com.squareup.duktape:duktape-android:1.4.0") // HTML parser diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index f711963c2..62c68321a 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -12,6 +12,7 @@ -keep,allowoptimization class com.google.gson.** { public protected *; } -keep,allowoptimization class com.github.salomonbrys.kotson.** { public protected *; } -keep,allowoptimization class com.squareup.duktape.** { public protected *; } +-keep,allowoptimization class app.cash.quickjs.** { public protected *; } -keep,allowoptimization class uy.kohesive.injekt.** { public protected *; } ##---------------Begin: proguard configuration for RxJava 1.x ----------