aboutsummaryrefslogtreecommitdiff
path: root/src/qt/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/android')
-rw-r--r--src/qt/android/.gitignore4
-rw-r--r--src/qt/android/AndroidManifest.xml3
-rw-r--r--src/qt/android/res/values/libs.xml17
-rw-r--r--src/qt/android/src/org/bitcoincore/qt/BitcoinQtActivity.java6
4 files changed, 20 insertions, 10 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>
diff --git a/src/qt/android/src/org/bitcoincore/qt/BitcoinQtActivity.java b/src/qt/android/src/org/bitcoincore/qt/BitcoinQtActivity.java
index cf3b4f6668..2cba489242 100644
--- a/src/qt/android/src/org/bitcoincore/qt/BitcoinQtActivity.java
+++ b/src/qt/android/src/org/bitcoincore/qt/BitcoinQtActivity.java
@@ -18,12 +18,6 @@ public class BitcoinQtActivity extends QtActivity
bitcoinDir.mkdir();
}
- try {
- Os.setenv("QT_QPA_PLATFORM", "android", true);
- } catch (ErrnoException e) {
- e.printStackTrace();
- }
-
super.onCreate(savedInstanceState);
}
}