Merge branch 'staging' into cryptonote/validation

This commit is contained in:
sneurlax 2022-11-10 16:24:35 -06:00 committed by GitHub
commit 02f5162b53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 4 deletions

View file

@ -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

View file

@ -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 {

View file

@ -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;