Skip to content

Commit

Permalink
Enable websockets support in QField
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Sep 15, 2024
1 parent 82b75f7 commit 9619e92
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ if (ANDROID)
set(ANDROID_PACKAGE_SOURCE_DIR ${CMAKE_BINARY_DIR}/android-template)
endif()

find_package(Qt6 COMPONENTS Concurrent Core Qml Gui Xml Positioning Widgets Network Quick Svg Sql Sensors WebView Multimedia Bluetooth Nfc REQUIRED)
find_package(Qt6 COMPONENTS Concurrent Core Qml Gui Xml Positioning Widgets Network Quick Svg Sql Sensors WebView Multimedia Bluetooth Nfc WebSockets REQUIRED)

if(NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
find_package(Qt6 COMPONENTS PrintSupport REQUIRED)
Expand Down
1 change: 1 addition & 0 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ target_link_libraries(
Qt::Concurrent
Qt::WebView
Qt::Multimedia
Qt::WebSockets
QGIS::Core
QGIS::Analysis
ZXing::ZXing
Expand Down
1 change: 1 addition & 0 deletions src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import QtQuick.Window
import QtQml
import QtSensors
import QtCore
import QtWebSockets // Not used here but added so QML registers its dependencies for plugins to use
import org.qgis
import org.qfield
import Theme
Expand Down
6 changes: 6 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@
"host": true,
"default-features": false
},
{
"name": "qtwebsockets",
"features": [
"qml"
]
},
"qtwebview",
{
"name": "sentry-cocoa",
Expand Down

0 comments on commit 9619e92

Please sign in to comment.