From 23bc2a61bf298da1c1b0ef8420b39f0d64577262 Mon Sep 17 00:00:00 2001 From: sergdeus Date: Sat, 6 Apr 2024 18:28:37 +0300 Subject: [PATCH] release --- ios/Runner.xcodeproj/project.pbxproj | 12 ++++---- .../wallet/models/wallet_view_model.dart | 28 ------------------- 2 files changed, 6 insertions(+), 34 deletions(-) diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index acc833e1..82a208aa 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -436,7 +436,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 128; + CURRENT_PROJECT_VERSION = 129; DEVELOPMENT_TEAM = G8RXR25D89; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -526,7 +526,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 128; + CURRENT_PROJECT_VERSION = 129; DEVELOPMENT_TEAM = G8RXR25D89; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -615,7 +615,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 128; + CURRENT_PROJECT_VERSION = 129; DEVELOPMENT_TEAM = G8RXR25D89; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -707,7 +707,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 128; + CURRENT_PROJECT_VERSION = 129; DEVELOPMENT_TEAM = G8RXR25D89; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -795,7 +795,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 128; + CURRENT_PROJECT_VERSION = 129; DEVELOPMENT_TEAM = G8RXR25D89; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -882,7 +882,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 128; + CURRENT_PROJECT_VERSION = 129; DEVELOPMENT_TEAM = G8RXR25D89; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; diff --git a/lib/features/wallet/models/wallet_view_model.dart b/lib/features/wallet/models/wallet_view_model.dart index 1a65afea..659c4912 100644 --- a/lib/features/wallet/models/wallet_view_model.dart +++ b/lib/features/wallet/models/wallet_view_model.dart @@ -54,7 +54,6 @@ class WalletViewModel extends ViewModel with StringMixin { String _addressXmr = ''; bool _loadingBalance = false; bool _afterBuildCalled = false; - // bool _loadingPrices = false; Asset _asset = Asset.BTC; late bool isGuestMode; final List transactions = []; @@ -117,9 +116,6 @@ class WalletViewModel extends ViewModel with StringMixin { _tabsRouter = context.tabsRouter; _tabsRouter.addListener(_routerListener); _updateBalance(); - // if (_authService.isAuthenticated) { - // indicatorKey.currentState?.show(); - // } super.onAfterBuild(); } } @@ -325,29 +321,6 @@ class WalletViewModel extends ViewModel with StringMixin { return '${(_xmrPrice! * (double.tryParse(_balanceXmr) ?? 0)).toStringAsFixed(2)} ${_appState.currencyCode}'; } - // Future calcAssetsPrices() async { - // if (!_loadingPrices) { - // _loadingPrices = true; - // for (final asset in Asset.values) { - // String usdToCurrency = ''; - // if (_appState.currencyCode != 'USD') { - // usdToCurrency = '*usd${_appState.currencyCode.toLowerCase()}'; - // } - - // if (asset == Asset.BTC) { - // btcPrice = await calcPrice( - // priceEquation: 'coingecko${asset.key().toLowerCase()}usd$usdToCurrency', - // currency: _appState.currencyCode); - // } else { - // xmrPrice = await calcPrice( - // priceEquation: 'coingecko${asset.key().toLowerCase()}usd$usdToCurrency', - // currency: _appState.currencyCode); - // } - // } - // _loadingPrices = false; - // } - // } - Future calcPrice({required String priceEquation, required String currency}) async { final res = await _adsRepository.calcPrice(priceEquation, currency); if (res.isRight) { @@ -361,7 +334,6 @@ class WalletViewModel extends ViewModel with StringMixin { errorMessage = res.left.message.toString(); if (GetIt.I().debugPrintIsOn) debugPrint('[calcPrice error] ${res.left.message}'); } - // eventBus.fire(FlashEvent.error(errorMessage)); return null; } }