File tree Expand file tree Collapse file tree 7 files changed +26
-7
lines changed Expand file tree Collapse file tree 7 files changed +26
-7
lines changed Original file line number Diff line number Diff line change @@ -394,8 +394,7 @@ bitcoin_qt_apk: FORCE
394
394
cp $(dir $(lastword $(CC)))../sysroot/usr/lib/$(host_alias)/libc++_shared.so $(APK_LIB_DIR)
395
395
tar xf $(QT_BASE_PATH) -C qt/android/src/ $(QT_BASE_TLD)src/android/jar/src --strip-components=5
396
396
tar xf $(QT_BASE_PATH) -C qt/android/src/ $(QT_BASE_TLD)src/android/java/src --strip-components=5
397
- tar xf $(QT_BASE_PATH) -C qt/android/res/ $(QT_BASE_TLD)src/android/java/res --strip-components=5
398
- cp qt/bitcoin-qt $(APK_LIB_DIR)/libbitcoin-qt.so
397
+ cp qt/bitcoin-qt $(APK_LIB_DIR)/libbitcoin-qt_$(ANDROID_ARCH).so
399
398
cd qt/android && gradle wrapper --gradle-version=6.6.1
400
399
cd qt/android && ./gradlew build
401
400
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ if ENABLE_ZMQ
52
52
qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
53
53
endif
54
54
qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CONSENSUS) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) \
55
- $(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(QT_DBUS_LIBS ) $(QT_TEST_LIBS ) $(QT_LIBS ) \
55
+ $(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(QT_LIBS ) $(QT_DBUS_LIBS ) $(QT_TEST_LIBS ) \
56
56
$(QR_LIBS) $(BDB_LIBS) $(MINIUPNPC_LIBS) $(NATPMP_LIBS) $(LIBSECP256K1) \
57
57
$(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(SQLITE_LIBS)
58
58
qt_test_test_bitcoin_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) $(PTHREAD_FLAGS)
Original file line number Diff line number Diff line change 1
1
/.gradle
2
2
/build
3
- /gradle / wrapper
3
+ /gradle
4
4
/gradlew *
5
5
/libs
6
- /res /layout
7
- /res /values *
8
6
/src /org /kde
9
7
/src /org /qtproject
Original file line number Diff line number Diff line change 32
32
<meta-data android : name =" android.app.background_running" android : value =" true" />
33
33
<meta-data android : name =" android.app.auto_screen_scale_factor" android : value =" true" />
34
34
<meta-data android : name =" android.app.extract_android_style" android : value =" default" />
35
- </activity >
35
+ <meta-data android : name =" android.app.load_local_libs_resource_id" android : resource =" @array/load_local_libs" />
36
+ </activity >
36
37
37
38
</application >
38
39
</manifest >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <resources >
3
+ <array name =" load_local_libs" >
4
+ <item >
5
+ arm64-v8a;libbitcoin-qt_arm64-v8a.so
6
+ </item >
7
+ <item >
8
+ armeabi-v7a;libbitcoin-qt_armeabi-v7a.so
9
+ </item >
10
+ <item >
11
+ x86_64;libbitcoin-qt_x86_64.so
12
+ </item >
13
+ <item >
14
+ x86;libbitcoin-qt_x86.so
15
+ </item >
16
+ </array >
17
+ </resources >
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ Q_IMPORT_PLUGIN(QWindowsVistaStylePlugin);
65
65
#elif defined(QT_QPA_PLATFORM_COCOA)
66
66
Q_IMPORT_PLUGIN (QCocoaIntegrationPlugin);
67
67
Q_IMPORT_PLUGIN (QMacStylePlugin);
68
+ #elif defined(QT_QPA_PLATFORM_ANDROID)
69
+ Q_IMPORT_PLUGIN (QAndroidPlatformIntegrationPlugin)
68
70
#endif
69
71
#endif
70
72
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin);
34
34
Q_IMPORT_PLUGIN (QWindowsIntegrationPlugin);
35
35
#elif defined(QT_QPA_PLATFORM_COCOA)
36
36
Q_IMPORT_PLUGIN (QCocoaIntegrationPlugin);
37
+ #elif defined(QT_QPA_PLATFORM_ANDROID)
38
+ Q_IMPORT_PLUGIN (QAndroidPlatformIntegrationPlugin)
37
39
#endif
38
40
#endif
39
41
You can’t perform that action at this time.
0 commit comments