Skip to content

Commit df4dea5

Browse files
authored
[connectivity] Ignore Reachability pointer to int cast warning (flutter#3941)
Suppress Reachability dependency warning in iOS and macOS example app. Fixes flutter#82964
1 parent 0a85aa2 commit df4dea5

6 files changed

Lines changed: 22 additions & 2 deletions

File tree

‎packages/connectivity/connectivity/CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.0.5
2+
3+
* Ignore Reachability pointer to int cast warning.
4+
15
## 3.0.4
26

37
* Migrate maven repository from jcenter to mavenCentral.

‎packages/connectivity/connectivity/example/ios/Podfile‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ end
3333

3434
post_install do |installer|
3535
installer.pods_project.targets.each do |target|
36+
# Work around https://github.com/flutter/flutter/issues/82964.
37+
if target.name == 'Reachability'
38+
target.build_configurations.each do |config|
39+
config.build_settings['WARNING_CFLAGS'] = '-Wno-pointer-to-int-cast'
40+
end
41+
end
3642
flutter_additional_ios_build_settings(target)
3743
end
3844
end

‎packages/connectivity/connectivity/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: connectivity
22
description: Flutter plugin for discovering the state of the network (WiFi &
33
mobile/cellular) connectivity on Android and iOS.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/connectivity/connectivity
5-
version: 3.0.4
5+
version: 3.0.5
66

77
flutter:
88
plugin:

‎packages/connectivity/connectivity_macos/CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.1+1
2+
3+
* Ignore Reachability pointer to int cast warning.
4+
15
## 0.2.1
26

37
* Add `implements` to pubspec.yaml.

‎packages/connectivity/connectivity_macos/example/macos/Podfile‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ end
3535

3636
post_install do |installer|
3737
installer.pods_project.targets.each do |target|
38+
# Work around https://github.com/flutter/flutter/issues/82964.
39+
if target.name == 'Reachability'
40+
target.build_configurations.each do |config|
41+
config.build_settings['WARNING_CFLAGS'] = '-Wno-pointer-to-int-cast'
42+
end
43+
end
3844
flutter_additional_macos_build_settings(target)
3945
end
4046
end

‎packages/connectivity/connectivity_macos/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: connectivity_macos
22
description: macOS implementation of the connectivity plugin.
3-
version: 0.2.1
3+
version: 0.2.1+1
44
homepage: https://github.com/flutter/plugins/tree/master/packages/connectivity/connectivity_macos
55

66
flutter:

0 commit comments

Comments
 (0)