WIP: DRAFT: Custom data directory support #273

Closed
jarolrod wants to merge 3 commits from custom-data-dir into main AGit
jarolrod commented 2023-02-22 08:41:56 +00:00 (Migrated from github.com)

Opened to showcase initial support. Lacks system settings wiring.

Dark Light
Screen Shot 2023-02-22 at 3 37 32 AM Screen Shot 2023-02-22 at 3 36 54 AM

Windows
Intel macOS
Apple Silicon macOS
ARM64 Android

Opened to showcase initial support. Lacks system settings wiring. | Dark | Light | | ---- | ----- | | <img width="752" alt="Screen Shot 2023-02-22 at 3 37 32 AM" src="https://user-images.githubusercontent.com/23396902/220567265-ad49df2d-1d30-4297-aa2c-7e6adc8a329a.png"> | <img width="752" alt="Screen Shot 2023-02-22 at 3 36 54 AM" src="https://user-images.githubusercontent.com/23396902/220567413-6f64acf8-147e-4f91-a8a7-7930941d0365.png"> | [![Windows](https://img.shields.io/badge/OS-Windows-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/273) [![Intel macOS](https://img.shields.io/badge/OS-Intel%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/273) [![Apple Silicon macOS](https://img.shields.io/badge/OS-Apple%20Silicon%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/273) [![ARM64 Android](https://img.shields.io/badge/OS-Android-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/273)
johnny9 (Migrated from github.com) reviewed 2023-02-25 14:00:30 +00:00
johnny9 (Migrated from github.com) left a comment

Here is the error output for the android apk

02-25 08:51:21.967 32529 32551 W libbitcoin-qt_arm64-v8a.so: QQmlApplicationEngine failed to load component                                                                                                        
02-25 08:51:21.967 32529 32551 W libbitcoin-qt_arm64-v8a.so: qrc:/qml/pages/main.qml:38:13: Type OnboardingStorageLocation unavailable                                                                             
02-25 08:51:21.967 32529 32551 W libbitcoin-qt_arm64-v8a.so: qrc:/qml/pages/onboarding/OnboardingStorageLocation.qml:25:17: Type StorageLocations unavailable                                                      
02-25 08:51:21.967 32529 32551 W libbitcoin-qt_arm64-v8a.so: qrc:/qml/components/StorageLocations.qml:34:5: Type FileDialog unavailable                                                                            
02-25 08:51:21.968 32529 32551 W libbitcoin-qt_arm64-v8a.so: qrc:/qt-project.org/imports/QtQuick/Dialogs/DefaultFileDialog.qml:45:1: module "QtQuick.Dialogs.Private" is not installed                             
Here is the error output for the android apk ``` 02-25 08:51:21.967 32529 32551 W libbitcoin-qt_arm64-v8a.so: QQmlApplicationEngine failed to load component 02-25 08:51:21.967 32529 32551 W libbitcoin-qt_arm64-v8a.so: qrc:/qml/pages/main.qml:38:13: Type OnboardingStorageLocation unavailable 02-25 08:51:21.967 32529 32551 W libbitcoin-qt_arm64-v8a.so: qrc:/qml/pages/onboarding/OnboardingStorageLocation.qml:25:17: Type StorageLocations unavailable 02-25 08:51:21.967 32529 32551 W libbitcoin-qt_arm64-v8a.so: qrc:/qml/components/StorageLocations.qml:34:5: Type FileDialog unavailable 02-25 08:51:21.968 32529 32551 W libbitcoin-qt_arm64-v8a.so: qrc:/qt-project.org/imports/QtQuick/Dialogs/DefaultFileDialog.qml:45:1: module "QtQuick.Dialogs.Private" is not installed ```
hebasto commented 2023-02-26 08:57:02 +00:00 (Migrated from github.com)

Here is the error output for the android apk

...libbitcoin-qt_arm64-v8a.so: qrc:/qt-project.org/imports/QtQuick/Dialogs/DefaultFileDialog.qml:45:1: module "QtQuick.Dialogs.Private" is not installed                             

It looks like expected considering github.com/bitcoin-core/gui-qml@1e9981df75/src/qml/bitcoin.cpp (L55-L57)

Here is the error output for the android apk > ``` > ...libbitcoin-qt_arm64-v8a.so: qrc:/qt-project.org/imports/QtQuick/Dialogs/DefaultFileDialog.qml:45:1: module "QtQuick.Dialogs.Private" is not installed > ``` It looks like expected considering https://github.com/bitcoin-core/gui-qml/blob/1e9981df75b559596e8f9386858ec3f147124634/src/qml/bitcoin.cpp#L55-L57
hebasto commented 2023-02-26 09:30:05 +00:00 (Migrated from github.com)

Maybe

diff --git a/build-aux/m4/bitcoin_qt.m4 b/build-aux/m4/bitcoin_qt.m4
index e12d2efa6..5b1a133c1 100644
--- a/build-aux/m4/bitcoin_qt.m4
+++ b/build-aux/m4/bitcoin_qt.m4
@@ -236,6 +236,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
         _BITCOIN_QT_CHECK_STATIC_PLUGIN([QtQuickLayoutsPlugin], [-lqml_QtQuick_Layouts_qquicklayoutsplugin])
         dnl qtquickcontrols module plugins
         _BITCOIN_QT_CHECK_STATIC_PLUGIN([QtQuick2DialogsPlugin], [-lqml_QtQuick_Dialogs_dialogplugin])
+        _BITCOIN_QT_CHECK_STATIC_PLUGIN([QtQuick2DialogsPrivatePlugin], [-lqml_QtQuick_Dialogs_Private_dialogsprivateplugin])
         _BITCOIN_QT_CHECK_STATIC_PLUGIN([QtQuickControls1Plugin], [-lqml_QtQuick_Controls_qtquickcontrolsplugin])
         _BITCOIN_QT_CHECK_STATIC_PLUGIN([QmlFolderListModelPlugin], [-lqml_Qt_labs_folderlistmodel_qmlfolderlistmodelplugin])
         _BITCOIN_QT_CHECK_STATIC_PLUGIN([QmlSettingsPlugin], [-lqml_Qt_labs_settings_qmlsettingsplugin])
diff --git a/src/qml/bitcoin.cpp b/src/qml/bitcoin.cpp
index 55a1e152d..288a88b42 100644
--- a/src/qml/bitcoin.cpp
+++ b/src/qml/bitcoin.cpp
@@ -52,9 +52,7 @@ QT_END_NAMESPACE
 Q_IMPORT_PLUGIN(QtQmlPlugin)
 Q_IMPORT_PLUGIN(QtQmlModelsPlugin)
 Q_IMPORT_PLUGIN(QtQuick2DialogsPlugin)
-#ifndef QT_QPA_PLATFORM_ANDROID
 Q_IMPORT_PLUGIN(QtQuick2DialogsPrivatePlugin)
-#endif
 Q_IMPORT_PLUGIN(QtQuick2Plugin)
 Q_IMPORT_PLUGIN(QtQuick2WindowPlugin)
 Q_IMPORT_PLUGIN(QtQuickControls1Plugin)

?

Maybe ```diff diff --git a/build-aux/m4/bitcoin_qt.m4 b/build-aux/m4/bitcoin_qt.m4 index e12d2efa6..5b1a133c1 100644 --- a/build-aux/m4/bitcoin_qt.m4 +++ b/build-aux/m4/bitcoin_qt.m4 @@ -236,6 +236,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[ _BITCOIN_QT_CHECK_STATIC_PLUGIN([QtQuickLayoutsPlugin], [-lqml_QtQuick_Layouts_qquicklayoutsplugin]) dnl qtquickcontrols module plugins _BITCOIN_QT_CHECK_STATIC_PLUGIN([QtQuick2DialogsPlugin], [-lqml_QtQuick_Dialogs_dialogplugin]) + _BITCOIN_QT_CHECK_STATIC_PLUGIN([QtQuick2DialogsPrivatePlugin], [-lqml_QtQuick_Dialogs_Private_dialogsprivateplugin]) _BITCOIN_QT_CHECK_STATIC_PLUGIN([QtQuickControls1Plugin], [-lqml_QtQuick_Controls_qtquickcontrolsplugin]) _BITCOIN_QT_CHECK_STATIC_PLUGIN([QmlFolderListModelPlugin], [-lqml_Qt_labs_folderlistmodel_qmlfolderlistmodelplugin]) _BITCOIN_QT_CHECK_STATIC_PLUGIN([QmlSettingsPlugin], [-lqml_Qt_labs_settings_qmlsettingsplugin]) diff --git a/src/qml/bitcoin.cpp b/src/qml/bitcoin.cpp index 55a1e152d..288a88b42 100644 --- a/src/qml/bitcoin.cpp +++ b/src/qml/bitcoin.cpp @@ -52,9 +52,7 @@ QT_END_NAMESPACE Q_IMPORT_PLUGIN(QtQmlPlugin) Q_IMPORT_PLUGIN(QtQmlModelsPlugin) Q_IMPORT_PLUGIN(QtQuick2DialogsPlugin) -#ifndef QT_QPA_PLATFORM_ANDROID Q_IMPORT_PLUGIN(QtQuick2DialogsPrivatePlugin) -#endif Q_IMPORT_PLUGIN(QtQuick2Plugin) Q_IMPORT_PLUGIN(QtQuick2WindowPlugin) Q_IMPORT_PLUGIN(QtQuickControls1Plugin) ``` ?
hebasto commented 2023-06-01 09:35:58 +00:00 (Migrated from github.com)

Need rebase.

When undraft? :)

Need rebase. When undraft? :)
jarolrod commented 2023-09-01 02:30:51 +00:00 (Migrated from github.com)

rebased over main

rebased over main
pablomartin4btc commented 2024-03-27 14:24:56 +00:00 (Migrated from github.com)

Since we have already #390, do still we need this PR? Does @D33r-Gee need to incorporate anything from here?

Since we have already #390, do still we need this PR? Does @D33r-Gee need to incorporate anything from here?
jarolrod commented 2024-09-25 11:05:30 +00:00 (Migrated from github.com)
replaced by https://github.com/bitcoin-core/gui-qml/pull/408
Sign in to join this conversation.
No description provided.