chore: Remove print statements and add TODOs

This commit is contained in:
Blazebrain 2025-02-11 20:42:29 +01:00
parent f64006226f
commit adc9f3ff65
3 changed files with 13 additions and 10 deletions

View file

@ -1,10 +1,7 @@
import 'dart:async';
import 'package:cake_wallet/.secrets.g.dart';
import 'package:cake_wallet/generated/i18n.dart';
import 'package:cake_wallet/src/screens/dashboard/pages/transactions_page.dart';
import 'package:cake_wallet/utils/date_formatter.dart';
import 'package:cake_wallet/view_model/dashboard/action_list_item.dart';
import 'package:cake_wallet/view_model/dashboard/anonpay_transaction_list_item.dart';
import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
import 'package:cake_wallet/view_model/dashboard/date_section_item.dart';
@ -178,6 +175,17 @@ class TransactionsPageRobot {
matching: find.text(item.formattedCryptoAmount),
);
//TODO(David): Check out inconsistencies, from Flutter?
// //* ======Confirm it displays the properly formatted title===========
// final transactionType = dashboardViewModel.getTransactionType(item.transaction);
// final title = item.formattedTitle + item.formattedStatus + transactionType;
// commonTestCases.findWidgetViaDescendant(
// of: find.byKey(ValueKey(keyId)),
// matching: find.text(title),
// );
//* ======Confirm it displays the properly formatted date============
final formattedDate = DateFormat('HH:mm').format(item.transaction.date);
commonTestCases.findWidgetViaDescendant(

View file

@ -1,5 +1,3 @@
import 'package:flutter/foundation.dart';
class FeatureFlag {
static const bool isCakePayEnabled = false;
static const bool isExolixEnabled = true;

View file

@ -1,6 +1,7 @@
import 'dart:math';
import 'package:cake_wallet/utils/feature_flag.dart';
import 'package:cw_core/utils/print_verbose.dart';
import 'package:flutter/foundation.dart';
import 'package:mobx/mobx.dart';
import 'package:cw_core/wallet_base.dart';
@ -49,8 +50,6 @@ abstract class WalletSeedViewModelBase with Store {
int get verificationWordCount {
final shouldVerify = shouldPerformVerification();
print(shouldVerify);
return shouldVerify ? FeatureFlag.verificationWordsCount : 0;
}
@ -71,10 +70,8 @@ abstract class WalletSeedViewModelBase with Store {
bool isCI = bool.fromEnvironment('CI_BUILD', defaultValue: false);
bool isDebug = kDebugMode;
print(isCI);
if (isDebug && !isCI) {
print("Skipping verification in debug mode (and when it's not in CI).");
printV("Skipping verification in debug mode (and when it's not in CI).");
return false;
}