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

View file

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

View file

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