bitcoin-kit-android
bitcoin-kit-android copied to clipboard
Conflicting kit.listeners
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?