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 ae9570217..5272e9456 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">