mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
feat: use better embedded Tor (#2453)
* feat: use better embedded Tor * update docs [skip ci] * fix: update torch properly add minimum os version for iOS * fix: use of invalid thread api on iOS * fix: disable use of lzma and zstd system libraries * fix: update torch_dart to work on linux
This commit is contained in:
@@ -47,6 +47,7 @@ import 'package:cw_core/unspent_coins_info.dart';
|
||||
import 'package:cw_core/utils/print_verbose.dart';
|
||||
import 'package:cw_core/utils/proxy_logger/memory_proxy_logger.dart';
|
||||
import 'package:cw_core/utils/proxy_wrapper.dart';
|
||||
import 'package:cw_core/utils/tor/abstract.dart';
|
||||
import 'package:cw_core/wallet_info.dart';
|
||||
import 'package:cw_core/wallet_type.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
@@ -85,6 +86,11 @@ Future<void> runAppWithZone({Key? topLevelKey}) async {
|
||||
return true;
|
||||
};
|
||||
await FlutterDaemon().unmarkBackgroundSync();
|
||||
try {
|
||||
CakeTor.instance = await CakeTorInstance.getInstance();
|
||||
} catch (e) {
|
||||
printV("Failed to initialize tor: $e");
|
||||
}
|
||||
await initializeAppAtRoot();
|
||||
|
||||
if (kDebugMode) {
|
||||
|
||||
Reference in New Issue
Block a user