Skip to content

Commit

Permalink
QNCM[Mac]: Update from SCNetworkReachability to Network framework
Browse files Browse the repository at this point in the history
Since SCNetworkReachability is deprecated,
the implementation is now updated to use the Network framework.

[ChangeLog][QNetworkInformation] Replace deprecated
SCNetworkReachability implementation with Network framework (iOS, macOS)

Fixes: QTBUG-132103
Change-Id: Iff4a667fd07002451b7d49cc8fd069945d426aab
Reviewed-by: Juha Vuolle <[email protected]>
Reviewed-by: Mårten Nordheim <[email protected]>
Reviewed-by: Vladimir Belyavsky <[email protected]>
Reviewed-by: Tor Arne Vestbø <[email protected]>
Reviewed-by: Øystein Heskestad <[email protected]>
  • Loading branch information
Evgen Pervenenko committed Dec 14, 2024
1 parent 311ac55 commit 1299aaa
Show file tree
Hide file tree
Showing 11 changed files with 266 additions and 395 deletions.
1 change: 1 addition & 0 deletions cmake/QtFrameworkHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ macro(qt_find_apple_system_frameworks)
qt_internal_find_apple_system_framework(FWEventKit EventKit)
qt_internal_find_apple_system_framework(FWHealthKit HealthKit)
qt_internal_find_apple_system_framework(FWUniformTypeIdentifiers UniformTypeIdentifiers)
qt_internal_find_apple_system_framework(FWNetwork Network)
endif()
endmacro()

Expand Down
2 changes: 1 addition & 1 deletion src/network/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ qt_internal_extend_target(Network CONDITION APPLE
SOURCES
kernel/qnetconmonitor_darwin.mm
LIBRARIES
${FWSystemConfiguration}
${FWNetwork}
)

qt_internal_extend_target(Network CONDITION QT_FEATURE_networklistmanager AND NOT IOS AND NOT MACOS
Expand Down
Loading

0 comments on commit 1299aaa

Please sign in to comment.