make analyzer less red (#1628)
Some checks failed
Cache Dependencies / test (push) Has been cancelled

* remove cw_*.dart files from analyzer

* Run gen_framework.sh on iOS
This commit is contained in:
cyan 2024-08-24 03:42:50 +02:00 committed by GitHub
parent 4c2d061363
commit 8524e238b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 1 deletions

View file

@ -10,7 +10,18 @@ analyzer:
lib/generated/*.dart,
cw_monero/ios/External/**,
cw_shared_external/**,
shared_external/**]
shared_external/**,
lib/bitcoin/cw_bitcoin.dart,
lib/bitcoin_cash/cw_bitcoin_cash.dart,
lib/ethereum/cw_ethereum.dart,
lib/haven/cw_haven.dart,
lib/monero/cw_monero.dart,
lib/nano/cw_nano.dart,
lib/polygon/cw_polygon.dart,
lib/solana/cw_solana.dart,
lib/tron/cw_tron.dart,
lib/wownero/cw_wownero.dart,
]
language:
strict-casts: true
strict-raw-types: true

View file

@ -1,3 +1,5 @@
import 'dart:io';
import 'package:dio/dio.dart';
import 'package:archive/archive_io.dart';
@ -47,4 +49,12 @@ Future<void> main() async {
outputStream.writeBytes(archive);
}
}
if (Platform.isMacOS) {
print("Generating ios framework");
final result = Process.runSync("bash", [
"-c",
"cd scripts/ios && ./gen_framework.sh && cd ../.."
]);
print((result.stdout+result.stderr).toString().trim());
}
}