From bdd37a415a41c23f6cdcd8aded48cd2dc4389cb7 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Wed, 23 Aug 2023 23:30:17 +0200 Subject: [PATCH] build without `neon` libs --- android/app/build.gradle | 7 +++++++ android/app/src/main/AndroidManifest.xml | 24 +++++++++++++++++------- lib/model/app/dependencies.dart | 5 +++-- 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 9d9ca5a1c..f34fb9948 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -63,6 +63,13 @@ android { disable 'InvalidPackage' } + packagingOptions { + // The Amazon Developer console mistakenly considers the app to not be 64-bit compatible + // if there are some libs in `lib/armeabi-v7a` unmatched by libs in `lib/arm64-v8a`, + // so we exclude the extra `neon` libs bundled by `FFmpegKit`. + exclude 'lib/armeabi-v7a/*_neon.so' + } + sourceSets { main.java.srcDirs += 'src/main/kotlin' } diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index d5193fd09..06247d156 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -32,20 +32,16 @@ - - - + - + - - @@ -53,11 +49,25 @@ android:name="com.android.launcher.permission.INSTALL_SHORTCUT" android:maxSdkVersion="25" /> + + diff --git a/lib/model/app/dependencies.dart b/lib/model/app/dependencies.dart index 57600cf97..90ec993aa 100644 --- a/lib/model/app/dependencies.dart +++ b/lib/model/app/dependencies.dart @@ -69,8 +69,9 @@ class Dependencies { ), Dependency( name: 'Dynamic Color', - license: bsd3, - sourceUrl: 'https://github.com/material-foundation/material-dynamic-color-flutter', + license: apache2, + licenseUrl: 'https://github.com/material-foundation/flutter-packages/blob/main/packages/dynamic_color/LICENSE', + sourceUrl: 'https://github.com/material-foundation/flutter-packages/tree/main/packages/dynamic_color', ), Dependency( name: 'Floating',