From b6a9ce58dbd1718ad168ef5993fccaf65201f34b Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Wed, 24 Apr 2024 21:37:22 +0200 Subject: [PATCH] monero.dart clean --- .fvmrc | 3 +++ .gitignore | 3 +++ .vscode/settings.json | 1 + android/app/build.gradle | 7 ++++++- android/app/src/main/AndroidManifest.xml | 3 ++- .../arm64-v8a/libmonero_libwallet2_api_c.so | 1 + .../armeabi-v7a/libmonero_libwallet2_api_c.so | 1 + .../x86_64/libmonero_libwallet2_api_c.so | 1 + lib/wallets/crypto_currency/coins/monero.dart | 3 ++- .../crypto_currency/coins/wownero.dart | 2 +- lib/wallets/wallet/impl/wownero_wallet.dart | 6 ++++-- macos/Flutter/GeneratedPluginRegistrant.swift | 6 ------ macos/Podfile.lock | 4 ++-- macos/Runner.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- pubspec.lock | 20 ++++++++++--------- pubspec.yaml | 2 +- scripts/macos/build_all.sh | 6 +++--- 18 files changed, 44 insertions(+), 29 deletions(-) create mode 100644 .fvmrc create mode 120000 android/app/src/main/jniLibs/arm64-v8a/libmonero_libwallet2_api_c.so create mode 120000 android/app/src/main/jniLibs/armeabi-v7a/libmonero_libwallet2_api_c.so create mode 120000 android/app/src/main/jniLibs/x86_64/libmonero_libwallet2_api_c.so diff --git a/.fvmrc b/.fvmrc new file mode 100644 index 000000000..5fb0c142c --- /dev/null +++ b/.fvmrc @@ -0,0 +1,3 @@ +{ + "flutter": "3.16.0" +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index ec9131840..144745e55 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,6 @@ libtor_ffi.dll flutter_libsparkmobile.dll secp256k1.dll /libisar.so + +# FVM Version Cache +.fvm/ \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index eba0d6cd7..a86b03d61 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { "dart.lineLength": 80, + "dart.flutterSdkPath": ".fvm/versions/3.16.0" } \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle index ec8747bff..cd56f57ff 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -45,7 +45,12 @@ android { lintOptions { disable 'InvalidPackage' } - + packagingOptions { + pickFirst 'lib/x86/libc++_shared.so' + pickFirst 'lib/x86_64/libc++_shared.so' + pickFirst 'lib/armeabi-v7a/libc++_shared.so' + pickFirst 'lib/arm64-v8a/libc++_shared.so' + } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.cypherstack.stackwallet" diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 3f1a56aa8..786db2728 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -23,7 +23,8 @@ android:requestLegacyExternalStorage="true" android:icon="@mipmap/ic_launcher" android:allowBackup="false" - android:fullBackupContent="false"> + android:fullBackupContent="false" + android:extractNativeLibs="true">