From 395d0de89f70ac018d73822bf875ae8d3b1a08ca Mon Sep 17 00:00:00 2001 From: iWisp360 Date: Tue, 5 May 2026 20:54:55 -0400 Subject: [PATCH 1/2] use nlohmann_json from system --- flutter_inappwebview_linux/linux/CMakeLists.txt | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/flutter_inappwebview_linux/linux/CMakeLists.txt b/flutter_inappwebview_linux/linux/CMakeLists.txt index 27f9334810..0a9b4e2849 100644 --- a/flutter_inappwebview_linux/linux/CMakeLists.txt +++ b/flutter_inappwebview_linux/linux/CMakeLists.txt @@ -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 @@ -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 From 4065d0f45823b9a6110eff53fe236cdf4b9af596 Mon Sep 17 00:00:00 2001 From: iWisp360 Date: Tue, 5 May 2026 20:55:51 -0400 Subject: [PATCH 2/2] use flutter_inappwebview_linux from own repo --- flutter_inappwebview/pubspec.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flutter_inappwebview/pubspec.yaml b/flutter_inappwebview/pubspec.yaml index 21ef16a2f4..801d1d6239 100755 --- a/flutter_inappwebview/pubspec.yaml +++ b/flutter_inappwebview/pubspec.yaml @@ -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: @@ -101,4 +101,4 @@ flutter: false_secrets: - /test_node_server/*.pem - - /test_node_server/*.pfx \ No newline at end of file + - /test_node_server/*.pfx