diff options
author | Igor Cota <igor@foundationdevices.com> | 2021-12-12 08:17:12 +0100 |
---|---|---|
committer | Igor Cota <igor@foundationdevices.com> | 2021-12-13 19:27:46 +0100 |
commit | 27f353d8efca19bc2f7dc79b09d4737c9401a768 (patch) | |
tree | b7546544926f14d73c139cbdf1355fc87077b9c6 /src/qt | |
parent | 6fc5c772d47cca01968c451f070f997c9f7641e0 (diff) |
build, android: Fix Android GUI not loading on Qt 5.15
Qt 5.14 introduced certain breaking changes to the way it parses
AndroidManifest.xml metadata
https://lists.qt-project.org/pipermail/interest/2020-January/034372.html
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/android/.gitignore | 4 | ||||
-rw-r--r-- | src/qt/android/AndroidManifest.xml | 3 | ||||
-rw-r--r-- | src/qt/android/res/values/libs.xml | 17 |
3 files changed, 20 insertions, 4 deletions
diff --git a/src/qt/android/.gitignore b/src/qt/android/.gitignore index 74cf42f934..c090a2e98e 100644 --- a/src/qt/android/.gitignore +++ b/src/qt/android/.gitignore @@ -1,9 +1,7 @@ /.gradle /build -/gradle/wrapper +/gradle /gradlew* /libs -/res/layout -/res/values* /src/org/kde /src/org/qtproject diff --git a/src/qt/android/AndroidManifest.xml b/src/qt/android/AndroidManifest.xml index abb88fe89d..41615294e0 100644 --- a/src/qt/android/AndroidManifest.xml +++ b/src/qt/android/AndroidManifest.xml @@ -32,7 +32,8 @@ <meta-data android:name="android.app.background_running" android:value="true"/> <meta-data android:name="android.app.auto_screen_scale_factor" android:value="true"/> <meta-data android:name="android.app.extract_android_style" android:value="default"/> - </activity> + <meta-data android:name="android.app.load_local_libs_resource_id" android:resource="@array/load_local_libs"/> + </activity> </application> </manifest> diff --git a/src/qt/android/res/values/libs.xml b/src/qt/android/res/values/libs.xml new file mode 100644 index 0000000000..0f20df4eb0 --- /dev/null +++ b/src/qt/android/res/values/libs.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <array name="load_local_libs"> + <item> + arm64-v8a;libbitcoin-qt_arm64-v8a.so + </item> + <item> + armeabi-v7a;libbitcoin-qt_armeabi-v7a.so + </item> + <item> + x86_64;libbitcoin-qt_x86_64.so + </item> + <item> + x86;libbitcoin-qt_x86.so + </item> + </array> +</resources> |