From 8807aef1b9f8022481a22ad7c1473000b658e8c5 Mon Sep 17 00:00:00 2001 From: arvifox Date: Mon, 11 Sep 2023 12:40:18 +0300 Subject: [PATCH] release sora v.3.3.0.3 101 --- app/build.gradle | 2 +- build.gradle | 6 +++--- .../data/BlockExplorerManager.kt | 11 +++++++++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index df77ca1dd..70671b21b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -144,7 +144,7 @@ play { serviceAccountCredentials = file(System.env.CI_PLAY_KEY ?: "../key/fake.json") track = "internal" releaseStatus = ReleaseStatus.DRAFT - releaseName = "3.3.0.2 - SORA Card" + releaseName = "3.3.0.3 - SORA Card" } dependencies { diff --git a/build.gradle b/build.gradle index 02f110430..66b52ea0b 100644 --- a/build.gradle +++ b/build.gradle @@ -55,10 +55,10 @@ buildscript { ext { // soralution 107 3.4.0.1 2023.09.08 - // sora dae 100 3.3.0.1 2023.09.08 + // sora dae 101 3.3.0.3 2023.09.11 // appVersionCode = Integer.valueOf(System.env.BUILD_NUMBER ?: 96) - appVersionCode = Integer.valueOf(System.env.CI_BUILD_ID ?: 100) - appVersionName = '3.3.0.2' + appVersionCode = Integer.valueOf(System.env.CI_BUILD_ID ?: 101) + appVersionName = '3.3.0.3' compileVersion = 33 minVersion = 24 diff --git a/feature_blockexplorer_api/src/main/java/jp/co/soramitsu/feature_blockexplorer_api/data/BlockExplorerManager.kt b/feature_blockexplorer_api/src/main/java/jp/co/soramitsu/feature_blockexplorer_api/data/BlockExplorerManager.kt index 103f1ab8a..5d1723c43 100644 --- a/feature_blockexplorer_api/src/main/java/jp/co/soramitsu/feature_blockexplorer_api/data/BlockExplorerManager.kt +++ b/feature_blockexplorer_api/src/main/java/jp/co/soramitsu/feature_blockexplorer_api/data/BlockExplorerManager.kt @@ -40,6 +40,7 @@ import javax.inject.Singleton import jp.co.soramitsu.common.config.BuildConfigWrapper import jp.co.soramitsu.common.domain.AppStateProvider import jp.co.soramitsu.common.domain.fiatChange +import jp.co.soramitsu.common.logger.FirebaseWrapper import jp.co.soramitsu.core_db.AppDatabase import jp.co.soramitsu.core_db.model.FiatTokenPriceLocal import jp.co.soramitsu.core_db.model.ReferralLocal @@ -72,7 +73,7 @@ class BlockExplorerManager @Inject constructor( assetsInfo = it } - private suspend fun getAssetsInfoInternal(tokenIds: List): List> { + private suspend fun getAssetsInfoInternal(tokenIds: List): List> = runCatching { val selected = soraConfigManager.getSelectedCurrency() val tokens = db.assetDao().getFiatTokenPriceLocal(selected.code) val yesterdayHour = yesterday() @@ -87,7 +88,10 @@ class BlockExplorerManager @Inject constructor( resultList.add(assetInfo.tokenId to BigInteger(assetInfo.liquidity)) } db.assetDao().insertFiatPrice(fiats) - return resultList + resultList + }.getOrElse { + FirebaseWrapper.recordException(it) + emptyList() } suspend fun updatePoolsSbApy() { @@ -113,6 +117,9 @@ class BlockExplorerManager @Inject constructor( db.referralsDao().insertReferrals(it) } } + .onFailure { + FirebaseWrapper.recordException(it) + } } suspend fun getXorPerEurRatio(): Double? = runCatching {