fix: use printV and ignore http import in CI (#2749)
cyan committed
Dec 17, 2025 at 18:15 UTC
cbc1e392c2acd678401e994c3ffd9f454d36a83b
1 file changed
+9
-8
tool/fiat_api_check.dart
+9
-8
@@ -1,8 +1,9 @@
1
import 'dart:async';
2
import 'dart:convert';
3
import 'dart:io';
4
-import 'package:http/http.dart' as http;
4
+import 'package:http/http.dart' as http; // very_insecure_http_do_not_use
5
import 'package:cake_wallet/.secrets.g.dart' as secrets;
6
+import './print_verbose_dummy.dart';
7
8
// 1. Configuration
9
const _fiatApiClearNetAuthority = 'fiat-api.cakewallet.com';
@@ -75,7 +76,7 @@ void main() {
76
// --- B. Run App in a Zone to Capture Prints ---
77
runZoned(
78
() async {
78
- print('--- Starting Verified Price Check ---');
79
+ printV('--- Starting Verified Price Check ---');
80
81
final Map<String, List<String>> workingPairs = {};
82
final Map<String, List<String>> failedPairs = {};
@@ -129,7 +130,7 @@ void main() {
130
}
131
132
// Print immediate status (Captured by Zone)
132
- print('$logPrefix $logMessage');
133
+ printV('$logPrefix $logMessage');
134
135
// Aggregate
136
if (isSuccess) {
@@ -147,25 +148,25 @@ void main() {
148
}
149
150
// --- FINAL SUMMARY ---
150
- print('\n\n=== SUMMARY ===\n');
151
+ printV('\n\n=== SUMMARY ===\n');
152
153
// Print Successful
154
workingPairs.forEach((crypto, fiats) {
155
if (fiats.isNotEmpty) {
155
- print('✅ ${crypto.toUpperCase()}: ${fiats.join(", ")}');
156
+ printV('✅ ${crypto.toUpperCase()}: ${fiats.join(", ")}');
157
}
158
});
159
159
- print('\n--------------------------------------------------\n');
160
+ printV('\n--------------------------------------------------\n');
161
162
// Print Failed
163
failedPairs.forEach((crypto, fiats) {
164
if (fiats.isNotEmpty) {
164
- print('❌ ${crypto.toUpperCase()}: ${fiats.join(", ")}');
165
+ printV('❌ ${crypto.toUpperCase()}: ${fiats.join(", ")}');
166
}
167
});
168
168
- print('\n=== DONE ===');
169
+ printV('\n=== DONE ===');
170
},
171
172
// --- C. The Interceptor ---