mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
Cw 679 add ledger litecoin support (#1565)
* Add Litecoin Hardware Wallet Creation * Add Litecoin Hardware Wallet Creation * Fix Bitcoin not sending on Ledger * Fixes to sending LTC using Ledger * CW-679 Fix merge conflicts * CW-679 Fix merge conflicts * CW-679 Minor fixes * CW-679 Add derivation Path of change address * ledger flutter plus refactoring * ledger flutter plus refactoring * ledger flutter plus refactoring * Ups :| * Ups :| I forgot USB * Handle BT Off * Fix Issue with A14 and USB * Small Ledger Quality of life improvements * Small Ledger Quality of life improvements * Small Ledger Quality of life improvements * Small Ledger Quality of life improvements * Small Ledger Quality of life improvements * Small Ledger Quality of life improvements * Small Ledger Quality of life improvements * Pls work * Pls work * Pls work * Pls work * Fix overpopulation * Fix ble device detection and support for Stax and Flex * clean up pubspec * clean up * MWeb merge fix * MWeb merge fix * Fix Merge conflicts * Fix Requested changes
This commit is contained in:
parent
e04185a7c1
commit
68926c0a33
45 changed files with 842 additions and 405 deletions
|
@ -1,4 +1,5 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'package:cake_wallet/anonpay/anonpay_invoice_info.dart';
|
||||
import 'package:cake_wallet/app_scroll_behavior.dart';
|
||||
import 'package:cake_wallet/buy/order.dart';
|
||||
|
@ -43,6 +44,7 @@ import 'package:hive/hive.dart';
|
|||
import 'package:cw_core/root_dir.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:cw_core/window_size.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
final navigatorKey = GlobalKey<NavigatorState>();
|
||||
final rootKey = GlobalKey<RootState>();
|
||||
|
@ -68,8 +70,18 @@ Future<void> runAppWithZone({Key? topLevelKey}) async {
|
|||
};
|
||||
await initializeAppAtRoot();
|
||||
|
||||
runApp(App(key: topLevelKey));
|
||||
if (kDebugMode) {
|
||||
final appDocDir = await getAppDir();
|
||||
|
||||
final ledgerFile = File('${appDocDir.path}/ledger_log.txt');
|
||||
if (!ledgerFile.existsSync()) ledgerFile.createSync();
|
||||
Logger.root.onRecord.listen((event) async {
|
||||
final content = ledgerFile.readAsStringSync();
|
||||
ledgerFile.writeAsStringSync("$content\n${event.message}");
|
||||
});
|
||||
}
|
||||
|
||||
runApp(App(key: topLevelKey));
|
||||
isAppRunning = true;
|
||||
}, (error, stackTrace) async {
|
||||
if (!isAppRunning) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue