Tell flutter_libmonero how to get access to the application dir

This commit is contained in:
julian 2024-05-23 10:41:42 -06:00
parent 459e882ab6
commit 0af6574e81
2 changed files with 7 additions and 2 deletions

@ -1 +1 @@
Subproject commit 2c684cedba6c3d9353c7ea748cadb5a246008027
Subproject commit a3ccff7f244b58bc63e0cf882ca4e1bb5aed1a73

View file

@ -14,6 +14,7 @@ import 'dart:math';
import 'package:coinlib_flutter/coinlib_flutter.dart';
import 'package:cw_core/node.dart';
import 'package:cw_core/pathForWallet.dart';
import 'package:cw_core/unspent_coins_info.dart';
import 'package:cw_core/wallet_info.dart';
import 'package:cw_core/wallet_type.dart';
@ -91,7 +92,11 @@ void main(List<String> args) async {
StackFileSystem.setDesktopOverrideDir(args.last);
}
// TODO set external libs file paths (bad external lib design workaround)
// Tell flutter_libmonero how to get access to the application dir
FS.setApplicationRootDirectoryFunction(
StackFileSystem.applicationRootDirectory,
);
// TODO set any other external libs file paths (bad external lib design workaround)
final loadCoinlibFuture = loadCoinlib();