From 6feadd5e34cb3bd8f6c673ff4df8437e33007327 Mon Sep 17 00:00:00 2001 From: greenart7c3 Date: Mon, 23 Mar 2026 13:32:05 -0300 Subject: [PATCH] Update dependencies and migrate to Nip01Crypto - Upgrade several library versions in `libs.versions.toml`, including activityCompose (1.13.0), coreKtx (1.18.0), quartz (1.06.0), compose_ui (1.10.5), kotlin (2.3.20), and kmpTorResource (409.5.0). - Update `AccountExportService.kt` to use `Nip01Crypto.pubKeyCreate` instead of the deprecated `Nip01.pubKeyCreate` following the Quartz library update. --- .../nostrsigner/service/AccountExportService.kt | 4 ++-- gradle/libs.versions.toml | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/greenart7c3/nostrsigner/service/AccountExportService.kt b/app/src/main/java/com/greenart7c3/nostrsigner/service/AccountExportService.kt index 77bb62a2..2218e181 100644 --- a/app/src/main/java/com/greenart7c3/nostrsigner/service/AccountExportService.kt +++ b/app/src/main/java/com/greenart7c3/nostrsigner/service/AccountExportService.kt @@ -14,7 +14,7 @@ import com.greenart7c3.nostrsigner.models.AccountExportData import com.vitorpamplona.quartz.nip01Core.core.hexToByteArray import com.vitorpamplona.quartz.nip01Core.core.toHexKey import com.vitorpamplona.quartz.nip01Core.crypto.KeyPair -import com.vitorpamplona.quartz.nip01Core.crypto.Nip01 +import com.vitorpamplona.quartz.nip01Core.crypto.Nip01Crypto import com.vitorpamplona.quartz.nip01Core.signers.NostrSignerInternal import com.vitorpamplona.quartz.nip19Bech32.toNpub import com.vitorpamplona.quartz.nip49PrivKeyEnc.Nip49 @@ -53,7 +53,7 @@ object AccountExportService { val accountData = AccountExportData.fromJson(line) val privKey = Nip49().decrypt(accountData.nsec, password) - val hexKey = Nip01.pubKeyCreate(Hex.decode(privKey)) + val hexKey = Nip01Crypto.pubKeyCreate(Hex.decode(privKey)) val account = Account( hexKey = hexKey.toHexKey(), npub = hexKey.toNpub(), diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 23d974d2..0aea4d6e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,24 +1,24 @@ [versions] -activityCompose = "1.12.4" +activityCompose = "1.13.0" appcompat = "1.7.1" biometricKtx = "1.2.0-alpha05" core = "3.5.4" -coreKtx = "1.17.0" -datastorePreferences = "1.2.0" +coreKtx = "1.18.0" +datastorePreferences = "1.2.1" espressoCore = "3.7.0" junit = "4.13.2" junitVersion = "1.3.0" lifecycle_version = "2.10.0" material3 = "1.4.0" nav_version = "2.9.7" -quartz = "1.05.1" -compose_ui = "1.10.4" +quartz = "1.06.0" +compose_ui = "1.10.5" richtextUi = "a02a03a3e9" roomKtx = "2.8.4" securityCryptoKtx = "1.1.0" zxingAndroidEmbedded = "4.3.0" okhttp = "5.3.2" -kotlin = "2.3.10" +kotlin = "2.3.20" workRuntimeKtx = "2.11.1" agp = "9.1.0" ktlint = "14.1.0" @@ -28,11 +28,11 @@ storage = "2.2.0" jna = "5.18.1" materialIconsExtended = "1.7.8" collections = "0.4.0" -pagingCommon = "3.4.1" +pagingCommon = "3.4.2" mockk = "1.14.9" coroutinesTest = "1.10.2" kmpTor = "2.6.0" -kmpTorResource = "408.19.0" +kmpTorResource = "409.5.0" [libraries] datastore-preferences = { module = "androidx.datastore:datastore-preferences", version.ref = "datastorePreferences" }