Updated on 2026-08-14
This commit is contained in:
parent
8b75e37e30
commit
a9bca131c3
386 changed files with 1369 additions and 1347 deletions
|
|
@ -48,7 +48,6 @@ dependencies {
|
|||
/** Other libraries */
|
||||
implementation(deps.arrow.core)
|
||||
implementation(deps.kotlin.immutable.collections)
|
||||
implementation(deps.timber)
|
||||
implementation(deps.surveysparrow)
|
||||
|
||||
/** Core modules */
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import com.tangem.domain.apptheme.model.AppThemeMode
|
|||
import com.tangem.feature.tester.impl.R
|
||||
import com.tangem.feature.tester.presentation.actions.TesterActionsContentState.HideAllCurrenciesUM
|
||||
import com.tangem.feature.tester.presentation.actions.TesterActionsContentState.ToggleAppThemeUM
|
||||
import timber.log.Timber
|
||||
import com.tangem.utils.logging.TangemLogger
|
||||
import java.io.File
|
||||
|
||||
@OptIn(ExperimentalFoundationApi::class)
|
||||
|
|
@ -98,7 +98,7 @@ private fun Activity.shareFile(file: File?) {
|
|||
|
||||
ContextCompat.startActivity(this, chooserIntent, null)
|
||||
} catch (ex: Exception) {
|
||||
Timber.e("Failed to share file: $ex")
|
||||
TangemLogger.e("Failed to share file: $ex")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import kotlinx.coroutines.flow.distinctUntilChanged
|
|||
import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
import kotlinx.coroutines.launch
|
||||
import timber.log.Timber
|
||||
import com.tangem.utils.logging.TangemLogger
|
||||
import javax.inject.Inject
|
||||
|
||||
@HiltViewModel
|
||||
|
|
@ -86,7 +86,7 @@ internal class TesterActionsViewModel @Inject constructor(
|
|||
AppThemeMode.FOLLOW_SYSTEM -> AppThemeMode.FORCE_DARK
|
||||
}
|
||||
|
||||
Timber.d(
|
||||
TangemLogger.d(
|
||||
"""
|
||||
Change app theme mode
|
||||
|- Current theme mode: $currentAppThemeMode
|
||||
|
|
@ -95,7 +95,7 @@ internal class TesterActionsViewModel @Inject constructor(
|
|||
)
|
||||
|
||||
changeAppThemeModeUseCase(newAppThemeMode).onLeft { error ->
|
||||
Timber.e(
|
||||
TangemLogger.e(
|
||||
"""
|
||||
Unable to change app theme mode
|
||||
|- Error: $error
|
||||
|
|
@ -108,7 +108,7 @@ internal class TesterActionsViewModel @Inject constructor(
|
|||
getAppThemeModeUseCase()
|
||||
.distinctUntilChanged()
|
||||
.onEach { maybeAppThemeMode ->
|
||||
Timber.d(
|
||||
TangemLogger.d(
|
||||
"""
|
||||
Current app theme mode updated
|
||||
|- Previous app theme mode: ${uiState.toggleAppThemeUM.currentAppTheme}
|
||||
|
|
@ -119,7 +119,7 @@ internal class TesterActionsViewModel @Inject constructor(
|
|||
uiState = uiState.copy(
|
||||
toggleAppThemeUM = uiState.toggleAppThemeUM.copy(
|
||||
currentAppTheme = maybeAppThemeMode.getOrElse { error ->
|
||||
Timber.e(
|
||||
TangemLogger.e(
|
||||
"""
|
||||
Unable to get current app theme mode, using default
|
||||
|- Default theme mode: ${AppThemeMode.DEFAULT}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package com.tangem.feature.tester.presentation.surveysparrow
|
|||
import android.app.Activity
|
||||
import com.surveysparrow.ss_android_sdk.SsSurvey
|
||||
import com.surveysparrow.ss_android_sdk.SurveySparrow
|
||||
import timber.log.Timber
|
||||
import com.tangem.utils.logging.TangemLogger
|
||||
|
||||
/**
|
||||
* Manager for Survey Sparrow SDK.
|
||||
|
|
@ -33,7 +33,7 @@ class SurveySparrowManager(
|
|||
|
||||
SurveySparrow(activity, survey)
|
||||
} catch (e: Exception) {
|
||||
Timber.e(e, "Failed to create SurveySparrow survey")
|
||||
TangemLogger.e("Failed to create SurveySparrow survey", e)
|
||||
null
|
||||
}
|
||||
}
|
||||
|
|
@ -49,7 +49,7 @@ class SurveySparrowManager(
|
|||
val surveySparrow = createSurvey(activity, customVariables)
|
||||
if (surveySparrow != null) {
|
||||
surveySparrow.startSurveyForResult(requestCode)
|
||||
Timber.d("SurveySparrow survey started with requestCode: $requestCode")
|
||||
TangemLogger.d("SurveySparrow survey started with requestCode: $requestCode")
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue