make analyzer less red (#1628)

* remove cw_*.dart files from analyzer * Run gen_framework.sh on iOS

cyan committed Aug 24, 2024 at 03:42 UTC 8524e238b0b726ed5b71ebc38ae3b8d0477b2f66
2 files changed +22 -1
analysis_options.yaml
+12 -1
@@ -10,7 +10,18 @@ analyzer:
10 lib/generated/*.dart,
11 cw_monero/ios/External/**,
12 cw_shared_external/**,
13 - shared_external/**]
13 + shared_external/**,
14 + lib/bitcoin/cw_bitcoin.dart,
15 + lib/bitcoin_cash/cw_bitcoin_cash.dart,
16 + lib/ethereum/cw_ethereum.dart,
17 + lib/haven/cw_haven.dart,
18 + lib/monero/cw_monero.dart,
19 + lib/nano/cw_nano.dart,
20 + lib/polygon/cw_polygon.dart,
21 + lib/solana/cw_solana.dart,
22 + lib/tron/cw_tron.dart,
23 + lib/wownero/cw_wownero.dart,
24 + ]
25 language:
26 strict-casts: true
27 strict-raw-types: true
tool/download_moneroc_prebuilds.dart
+10
@@ -1,3 +1,5 @@
1 +import 'dart:io';
2 +
3 import 'package:dio/dio.dart';
4 import 'package:archive/archive_io.dart';
5
@@ -47,4 +49,12 @@ Future<void> main() async {
49 outputStream.writeBytes(archive);
50 }
51 }
52 + if (Platform.isMacOS) {
53 + print("Generating ios framework");
54 + final result = Process.runSync("bash", [
55 + "-c",
56 + "cd scripts/ios && ./gen_framework.sh && cd ../.."
57 + ]);
58 + print((result.stdout+result.stderr).toString().trim());
59 + }
60 }
\ No newline at end of file