Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
sergdeus committed Apr 6, 2024
1 parent 8d6f9aa commit 23bc2a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 34 deletions.
12 changes: 6 additions & 6 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
28 changes: 0 additions & 28 deletions lib/features/wallet/models/wallet_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<TransactionModel> transactions = [];
Expand Down Expand Up @@ -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();
}
}
Expand Down Expand Up @@ -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<double?> calcPrice({required String priceEquation, required String currency}) async {
final res = await _adsRepository.calcPrice(priceEquation, currency);
if (res.isRight) {
Expand All @@ -361,7 +334,6 @@ class WalletViewModel extends ViewModel with StringMixin {
errorMessage = res.left.message.toString();
if (GetIt.I<AppParameters>().debugPrintIsOn) debugPrint('[calcPrice error] ${res.left.message}');
}
// eventBus.fire(FlashEvent.error(errorMessage));
return null;
}
}
Expand Down

0 comments on commit 23bc2a6

Please sign in to comment.