bitcoin-kit-android icon indicating copy to clipboard operation
bitcoin-kit-android copied to clipboard

Conflicting kit.listeners

Open TBCode523 opened this issue 2 years ago • 0 comments

I'm trying to implement multiple crypto-currencies in my app. When I attempt to implement both Bitcoin Core & DashKit listener interfaces and their onTransactionUpdate functions class MainViewModel:ViewModel(), BitcoinKit.Listener, DashKit.Listener

override fun onTransactionsUpdate( inserted: List<TransactionInfo>, updated: List<TransactionInfo> ) { super.onTransactionsUpdate(inserted, updated) }

override fun onTransactionsUpdate( inserted: List<DashTransactionInfo>, updated: List<DashTransactionInfo> ) { TODO("Not yet implemented") }

I get a compiler error: Platform declaration clash: The following declarations have the same JVM signature (onTransactionsUpdate(Ljava/util/List;Ljava/util/List;)V):

When I tried to annotate one of the functions I get another error saying: '@JvmName' annotation is not applicable to this declaration.

What's the solution/workaround?

TBCode523 avatar Jan 16 '23 00:01 TBCode523