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 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