kopia lustrzana https://github.com/vitorpamplona/amethyst
Removes hardcoded amber packages as default
rodzic
5559b69bdb
commit
ef0d77f8eb
|
@ -97,7 +97,7 @@ class Result(
|
||||||
|
|
||||||
class ExternalSignerLauncher(
|
class ExternalSignerLauncher(
|
||||||
private val npub: String,
|
private val npub: String,
|
||||||
val signerPackageName: String = "com.greenart7c3.nostrsigner",
|
val signerPackageName: String,
|
||||||
) {
|
) {
|
||||||
private val contentCache = LruCache<String, (String) -> Unit>(20)
|
private val contentCache = LruCache<String, (String) -> Unit>(20)
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,7 @@ package com.vitorpamplona.quartz.signers
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import com.goterl.lazysodium.BuildConfig
|
import com.goterl.lazysodium.BuildConfig
|
||||||
import com.vitorpamplona.quartz.encoders.HexKey
|
import com.vitorpamplona.quartz.encoders.HexKey
|
||||||
import com.vitorpamplona.quartz.encoders.hexToByteArray
|
|
||||||
import com.vitorpamplona.quartz.encoders.toHexKey
|
import com.vitorpamplona.quartz.encoders.toHexKey
|
||||||
import com.vitorpamplona.quartz.encoders.toNpub
|
|
||||||
import com.vitorpamplona.quartz.events.Event
|
import com.vitorpamplona.quartz.events.Event
|
||||||
import com.vitorpamplona.quartz.events.EventFactory
|
import com.vitorpamplona.quartz.events.EventFactory
|
||||||
import com.vitorpamplona.quartz.events.LnZapPrivateEvent
|
import com.vitorpamplona.quartz.events.LnZapPrivateEvent
|
||||||
|
@ -33,7 +31,7 @@ import com.vitorpamplona.quartz.events.LnZapRequestEvent
|
||||||
|
|
||||||
class NostrSignerExternal(
|
class NostrSignerExternal(
|
||||||
pubKey: HexKey,
|
pubKey: HexKey,
|
||||||
val launcher: ExternalSignerLauncher = ExternalSignerLauncher(pubKey.hexToByteArray().toNpub()),
|
val launcher: ExternalSignerLauncher,
|
||||||
) : NostrSigner(pubKey) {
|
) : NostrSigner(pubKey) {
|
||||||
override fun <T : Event> sign(
|
override fun <T : Event> sign(
|
||||||
createdAt: Long,
|
createdAt: Long,
|
||||||
|
|
Ładowanie…
Reference in New Issue