mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 10:34:32 +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: |
|
run: |
|
||||||
cargo install cargo-ndk
|
cargo install cargo-ndk
|
||||||
rustup target add x86_64-unknown-linux-gnu
|
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 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 debhelper libclang-dev cargo rustc opencl-headers libssl-dev ocl-icd-opencl-dev
|
||||||
sudo apt install -y libc6-dev-i386
|
sudo apt install -y libc6-dev-i386
|
||||||
|
|
|
@ -60,10 +60,18 @@ void main() async {
|
||||||
dirPath: '');
|
dirPath: '');
|
||||||
late WalletCredentials credentials;
|
late WalletCredentials credentials;
|
||||||
|
|
||||||
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
Directory appDir = (await getApplicationDocumentsDirectory());
|
||||||
|
if (Platform.isIOS) {
|
||||||
|
appDir = (await getLibraryDirectory());
|
||||||
|
}
|
||||||
|
|
||||||
monero.onStartup();
|
monero.onStartup();
|
||||||
|
|
||||||
bool hiveAdaptersRegistered = false;
|
bool hiveAdaptersRegistered = false;
|
||||||
|
|
||||||
|
bool hiveAdaptersRegistered = false;
|
||||||
|
|
||||||
group("Mnemonic recovery", () {
|
group("Mnemonic recovery", () {
|
||||||
setUp(() async {
|
setUp(() async {
|
||||||
await setUpTestHive();
|
await setUpTestHive();
|
||||||
|
@ -79,8 +87,7 @@ void main() async {
|
||||||
await wallets.put('currentWalletName', name);
|
await wallets.put('currentWalletName', name);
|
||||||
|
|
||||||
_walletInfoSource = await Hive.openBox<WalletInfo>(WalletInfo.boxName);
|
_walletInfoSource = await Hive.openBox<WalletInfo>(WalletInfo.boxName);
|
||||||
walletService = monero
|
walletService = monero.createMoneroWalletService(_walletInfoSource);
|
||||||
.createMoneroWalletService(_walletInfoSource as Box<WalletInfo>);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -55,6 +55,12 @@ void main() async {
|
||||||
dirPath: '');
|
dirPath: '');
|
||||||
late WalletCredentials credentials;
|
late WalletCredentials credentials;
|
||||||
|
|
||||||
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
Directory appDir = (await getApplicationDocumentsDirectory());
|
||||||
|
if (Platform.isIOS) {
|
||||||
|
appDir = (await getLibraryDirectory());
|
||||||
|
}
|
||||||
|
|
||||||
wownero.onStartup();
|
wownero.onStartup();
|
||||||
|
|
||||||
bool hiveAdaptersRegistered = false;
|
bool hiveAdaptersRegistered = false;
|
||||||
|
@ -74,8 +80,7 @@ void main() async {
|
||||||
await wallets.put('currentWalletName', name);
|
await wallets.put('currentWalletName', name);
|
||||||
|
|
||||||
_walletInfoSource = await Hive.openBox<WalletInfo>(WalletInfo.boxName);
|
_walletInfoSource = await Hive.openBox<WalletInfo>(WalletInfo.boxName);
|
||||||
walletService = wownero
|
walletService = wownero.createWowneroWalletService(_walletInfoSource);
|
||||||
.createWowneroWalletService(_walletInfoSource as Box<WalletInfo>);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasThrown = false;
|
bool hasThrown = false;
|
||||||
|
|
Loading…
Reference in a new issue