From df4eee997f1e9cc7dce82383c3c75a6f60e9475f Mon Sep 17 00:00:00 2001 From: xete <285087597+BoltyBolterson@users.noreply.github.com> Date: Sun, 9 Aug 2026 10:23:58 -0700 Subject: [PATCH] Allow zxing and sol4k on the dependency allow-list Adds com.google.zxing:core for barcode generation and org.sol4k:sol4k for Solana RPC and transaction signing. sol4k publishes its runtime pieces as sibling artifacts, so org.sol4k:tweetnacl and org.sol4k:utilities are allowed alongside it. All pure Java/Kotlin, no NDK/JNI. --- gradle/libs.versions.toml | 4 ++++ .../main/kotlin/com/thelightphone/plugin/LightSdkPlugin.kt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b9e78e7e..5c64d04c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -12,6 +12,8 @@ work = "2.10.0" media3 = "1.10.1" kotlinxDatetime = "0.8.0" bouncycastle = "1.85" +sol4k = "0.7.0" +zxing = "3.5.4" [libraries] unifiedpush-connector = { module = "org.unifiedpush.android:connector", version.ref = "connector" } @@ -47,6 +49,8 @@ light-keyboard = { module = "com.github.lightphone:light-keyboard", version = "v # for local dev # light-keyboard = { module = "com.thelightphone.lp3keyboard:ui", version = "0.0.17-dirty"} bouncycastle-provider = { module = "org.bouncycastle:bcprov-jdk18on", version.ref = "bouncycastle" } +sol4k = { module = "org.sol4k:sol4k", version.ref = "sol4k" } +zxing-core = { module = "com.google.zxing:core", version.ref = "zxing" } androidx-camera-core = { module = "androidx.camera:camera-core", version.ref = "camerax" } androidx-camera-camera2 = { module = "androidx.camera:camera-camera2", version.ref = "camerax" } androidx-camera-lifecycle = { module = "androidx.camera:camera-lifecycle", version.ref = "camerax" } diff --git a/plugin/src/main/kotlin/com/thelightphone/plugin/LightSdkPlugin.kt b/plugin/src/main/kotlin/com/thelightphone/plugin/LightSdkPlugin.kt index f52acfbb..9b22f340 100644 --- a/plugin/src/main/kotlin/com/thelightphone/plugin/LightSdkPlugin.kt +++ b/plugin/src/main/kotlin/com/thelightphone/plugin/LightSdkPlugin.kt @@ -38,6 +38,10 @@ class LightSdkPlugin : Plugin { "androidx.media3", "io.github.david-allison:anki-android-backend", "org.bouncycastle:bcprov-jdk18on", + "com.google.zxing:core", + "org.sol4k:sol4k", + "org.sol4k:tweetnacl", + "org.sol4k:utilities", ) val ALLOWED_PLUGINS = setOf(