Updated on 2026-08-14
This commit is contained in:
parent
d1c8701b8a
commit
19fa5e2b60
3 changed files with 9 additions and 13 deletions
|
|
@ -77,8 +77,8 @@ dependencies {
|
|||
|
||||
|
||||
implementation 'com.tangem:blockchain:1.157.0'
|
||||
implementation 'com.tangem:core:1.101.0'
|
||||
implementation 'com.tangem:sdk:1.101.0'
|
||||
implementation 'com.tangem:core:1.108.0'
|
||||
implementation 'com.tangem:sdk:1.108.0'
|
||||
|
||||
// WebView
|
||||
implementation "androidx.browser:browser:1.3.0"
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ import android.content.pm.ActivityInfo
|
|||
import android.nfc.NfcAdapter
|
||||
import android.nfc.Tag
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import com.tangem.CardFilter
|
||||
import com.tangem.Config
|
||||
import com.tangem.Log
|
||||
import com.tangem.TangemSdk
|
||||
import com.tangem.commands.common.card.CardType
|
||||
import com.tangem.tangem_sdk_new.extensions.init
|
||||
|
|
@ -46,7 +46,7 @@ private fun initCoroutineExceptionHandler(): CoroutineExceptionHandler {
|
|||
val sw = StringWriter()
|
||||
throwable.printStackTrace(PrintWriter(sw))
|
||||
val exceptionAsString: String = sw.toString()
|
||||
Log.e("TangemSdk", exceptionAsString)
|
||||
Log.e("Coroutine", exceptionAsString)
|
||||
throw throwable
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import android.net.Uri
|
|||
import android.os.Build
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.content.FileProvider
|
||||
import com.tangem.LogMessage
|
||||
import com.tangem.LoggerInterface
|
||||
import com.tangem.Log
|
||||
import com.tangem.TangemSdkLogger
|
||||
import com.tangem.blockchain.common.Blockchain
|
||||
import timber.log.Timber
|
||||
import java.io.File
|
||||
|
|
@ -72,15 +72,11 @@ class FeedbackManager(
|
|||
}
|
||||
}
|
||||
|
||||
class TangemLogCollector : LoggerInterface {
|
||||
class TangemLogCollector : TangemSdkLogger {
|
||||
private val logs = mutableListOf<String>()
|
||||
|
||||
override fun e(logTag: String, message: String) {}
|
||||
override fun i(logTag: String, message: String) {}
|
||||
override fun v(logTag: String, message: String) {}
|
||||
|
||||
override fun write(message: LogMessage) {
|
||||
logs.add(message.message)
|
||||
override fun log(message: () -> String, level: Log.Level) {
|
||||
logs.add(message())
|
||||
}
|
||||
|
||||
fun getLogs(): List<String> = logs.toList()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue