From cbc1e392c2acd678401e994c3ffd9f454d36a83b Mon Sep 17 00:00:00 2001 From: cyan Date: Wed, 17 Dec 2025 18:15:33 +0100 Subject: [PATCH] fix: use printV and ignore http import in CI (#2749) --- tool/fiat_api_check.dart | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tool/fiat_api_check.dart b/tool/fiat_api_check.dart index e6f53636a..5f3fe4907 100644 --- a/tool/fiat_api_check.dart +++ b/tool/fiat_api_check.dart @@ -1,8 +1,9 @@ import 'dart:async'; import 'dart:convert'; import 'dart:io'; -import 'package:http/http.dart' as http; +import 'package:http/http.dart' as http; // very_insecure_http_do_not_use import 'package:cake_wallet/.secrets.g.dart' as secrets; +import './print_verbose_dummy.dart'; // 1. Configuration const _fiatApiClearNetAuthority = 'fiat-api.cakewallet.com'; @@ -75,7 +76,7 @@ void main() { // --- B. Run App in a Zone to Capture Prints --- runZoned( () async { - print('--- Starting Verified Price Check ---'); + printV('--- Starting Verified Price Check ---'); final Map> workingPairs = {}; final Map> failedPairs = {}; @@ -129,7 +130,7 @@ void main() { } // Print immediate status (Captured by Zone) - print('$logPrefix $logMessage'); + printV('$logPrefix $logMessage'); // Aggregate if (isSuccess) { @@ -147,25 +148,25 @@ void main() { } // --- FINAL SUMMARY --- - print('\n\n=== SUMMARY ===\n'); + printV('\n\n=== SUMMARY ===\n'); // Print Successful workingPairs.forEach((crypto, fiats) { if (fiats.isNotEmpty) { - print('✅ ${crypto.toUpperCase()}: ${fiats.join(", ")}'); + printV('✅ ${crypto.toUpperCase()}: ${fiats.join(", ")}'); } }); - print('\n--------------------------------------------------\n'); + printV('\n--------------------------------------------------\n'); // Print Failed failedPairs.forEach((crypto, fiats) { if (fiats.isNotEmpty) { - print('❌ ${crypto.toUpperCase()}: ${fiats.join(", ")}'); + printV('❌ ${crypto.toUpperCase()}: ${fiats.join(", ")}'); } }); - print('\n=== DONE ==='); + printV('\n=== DONE ==='); }, // --- C. The Interceptor ---