mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 02:24:30 +00:00
Merge branch 'staging' into cryptonote/validation
This commit is contained in:
commit
02f5162b53
3 changed files with 17 additions and 4 deletions
1
.github/workflows/test.yaml
vendored
1
.github/workflows/test.yaml
vendored
|
@ -23,6 +23,7 @@ jobs:
|
|||
run: |
|
||||
cargo install cargo-ndk
|
||||
rustup target add x86_64-unknown-linux-gnu
|
||||
sudo apt update
|
||||
sudo apt install -y unzip automake build-essential file pkg-config git python libtool libtinfo5 cmake openjdk-8-jre-headless libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev llvm
|
||||
sudo apt install -y debhelper libclang-dev cargo rustc opencl-headers libssl-dev ocl-icd-opencl-dev
|
||||
sudo apt install -y libc6-dev-i386
|
||||
|
|
|
@ -60,10 +60,18 @@ void main() async {
|
|||
dirPath: '');
|
||||
late WalletCredentials credentials;
|
||||
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
Directory appDir = (await getApplicationDocumentsDirectory());
|
||||
if (Platform.isIOS) {
|
||||
appDir = (await getLibraryDirectory());
|
||||
}
|
||||
|
||||
monero.onStartup();
|
||||
|
||||
bool hiveAdaptersRegistered = false;
|
||||
|
||||
bool hiveAdaptersRegistered = false;
|
||||
|
||||
group("Mnemonic recovery", () {
|
||||
setUp(() async {
|
||||
await setUpTestHive();
|
||||
|
@ -79,8 +87,7 @@ void main() async {
|
|||
await wallets.put('currentWalletName', name);
|
||||
|
||||
_walletInfoSource = await Hive.openBox<WalletInfo>(WalletInfo.boxName);
|
||||
walletService = monero
|
||||
.createMoneroWalletService(_walletInfoSource as Box<WalletInfo>);
|
||||
walletService = monero.createMoneroWalletService(_walletInfoSource);
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
@ -55,6 +55,12 @@ void main() async {
|
|||
dirPath: '');
|
||||
late WalletCredentials credentials;
|
||||
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
Directory appDir = (await getApplicationDocumentsDirectory());
|
||||
if (Platform.isIOS) {
|
||||
appDir = (await getLibraryDirectory());
|
||||
}
|
||||
|
||||
wownero.onStartup();
|
||||
|
||||
bool hiveAdaptersRegistered = false;
|
||||
|
@ -74,8 +80,7 @@ void main() async {
|
|||
await wallets.put('currentWalletName', name);
|
||||
|
||||
_walletInfoSource = await Hive.openBox<WalletInfo>(WalletInfo.boxName);
|
||||
walletService = wownero
|
||||
.createWowneroWalletService(_walletInfoSource as Box<WalletInfo>);
|
||||
walletService = wownero.createWowneroWalletService(_walletInfoSource);
|
||||
}
|
||||
|
||||
bool hasThrown = false;
|
||||
|
|
Loading…
Reference in a new issue