Recreated ios project (with Swift). Started working on iOS migration. Added iOS specific plagin for get decrypted content of encrypted files (legacy support).

This commit is contained in:
M
2020-09-21 18:41:44 +03:00
parent e4ebfc94b2
commit 649d6dfb59
38 changed files with 226 additions and 370 deletions
-21
View File
@@ -1,21 +0,0 @@
import 'dart:convert';
import 'package:http/http.dart';
const blockchainInfoBaseURI = 'https://blockchain.info';
const multiAddressURI = '$blockchainInfoBaseURI/multiaddr';
Future<List<String>> fetchAllAddresses({String xpub}) async {
final uri = '$multiAddressURI?active=$xpub';
final response = await get(uri);
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
print(responseJSON);
return (responseJSON['addresses'] as List<dynamic>).map((dynamic row) {
if (row is Map<String, Object>) {
return row['address'] as String;
}
return '';
}).toList();
}
View File