Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions flutter_inappwebview/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ dependencies:
# path: ../flutter_inappwebview_web
flutter_inappwebview_windows: ^0.7.0-beta.3
# path: ../flutter_inappwebview_windows
flutter_inappwebview_linux: ^0.1.0-beta.1
# path: ../flutter_inappwebview_linux
flutter_inappwebview_linux:
path: ../flutter_inappwebview_linux

dev_dependencies:
flutter_test:
Expand Down Expand Up @@ -101,4 +101,4 @@ flutter:

false_secrets:
- /test_node_server/*.pem
- /test_node_server/*.pfx
- /test_node_server/*.pfx
12 changes: 1 addition & 11 deletions flutter_inappwebview_linux/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ set(PLUGIN_NAME "flutter_inappwebview_linux_plugin")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# nlohmann/json version for JSON parsing
set(NLOHMANN_JSON_VERSION "3.11.3")

# === WPE WebKit Backend ===
# This plugin uses WPE WebKit for offscreen web rendering.
# WPE WebKit is designed for embedded systems and provides excellent offscreen
Expand Down Expand Up @@ -154,18 +151,11 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64|amd64")
endif()

# === nlohmann/json dependency for JSON parsing ===
include(FetchContent)
FetchContent_Declare(
nlohmann_json
URL https://github.com/nlohmann/json/releases/download/v${NLOHMANN_JSON_VERSION}/json.tar.xz
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
)
find_package(nlohmann_json REQUIRED)
# Don't build tests/examples
set(JSON_BuildTests OFF CACHE INTERNAL "")
FetchContent_MakeAvailable(nlohmann_json)
# Suppress deprecated literal operator warnings from nlohmann_json
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-literal-operator")
message(STATUS "flutter_inappwebview_linux: nlohmann/json ${NLOHMANN_JSON_VERSION} configured")

# Plugin source files
list(APPEND PLUGIN_SOURCES
Expand Down