This repository was archived by the owner on Feb 22, 2023. It is now read-only.
[google_maps_flutter] Define clang module for iOS, fix analyzer warnings#2182
Merged
jmagman merged 2 commits intoflutter:masterfrom Nov 13, 2019
Merged
[google_maps_flutter] Define clang module for iOS, fix analyzer warnings#2182jmagman merged 2 commits intoflutter:masterfrom
jmagman merged 2 commits intoflutter:masterfrom
Conversation
jmagman
commented
Oct 11, 2019
| #import "GoogleMapPolygonController.h" | ||
| #import "GoogleMapPolylineController.h" | ||
|
|
||
| NS_ASSUME_NONNULL_BEGIN |
Member
Author
There was a problem hiding this comment.
The id _Nullable below had opted this entire header into nullability, but it wasn't specified anywhere, which caused the analyzer warnings.
Ideally all headers would declare nullability, but I wanted to limit the scope of this change.
jmagman
commented
Oct 11, 2019
| arguments:(id _Nullable)args | ||
| registrar:(NSObject<FlutterPluginRegistrar>*)registrar { | ||
| if ([super init]) { | ||
| if (self = [super init]) { |
jmagman
commented
Oct 11, 2019
| s.public_header_files = 'Classes/**/*.h' | ||
| s.dependency 'Flutter' | ||
| s.dependency 'GoogleMaps' | ||
| s.compiler_flags = '-fno-modules' |
Member
Author
There was a problem hiding this comment.
With this change I'm able to use module imports in a Swift and Objective-C app (building with libraries and frameworks). @iskakaushik I believe that's enough to prove I didn't regress #1734?
@import GoogleMapsBase;
@import google_maps_flutter;2163b32 to
58a23f3
Compare
39 tasks
cyanglaz
approved these changes
Nov 13, 2019
Contributor
cyanglaz
left a comment
There was a problem hiding this comment.
LGTM!
@iskakaushik might want to chime in for the comment about using module imports.
mormih
pushed a commit
to mormih/plugins
that referenced
this pull request
Nov 17, 2019
hjc22
pushed a commit
to hjc22/plugins
that referenced
this pull request
Dec 13, 2019
* newCache/blackVideos: (105 commits) [connectivity] Fix reachability stream for iOS (flutter#2281) [google_sign_in] Port plugin to use the federated Platform Interface (flutter#2266) [webview_flutter] Add async NavigationDelegates (flutter#2257) Update cirrus to create IOS simulator on 13.2 an xCode 11 (flutter#2275) [battery] Update and migrate iOS example project (flutter#2089) [url_launcher] DartDoc and test improvements (flutter#2274) [google_maps_flutter] Define clang module for iOS, fix analyzer warnings (flutter#2182) [video_player] Add v2 embedding support (flutter#2226) [path_provider] Update and migrate iOS example project (flutter#2099) [sensors] Documentation and test improvements (flutter#2272) [image_picker] Lint for public DartDocs (flutter#2270) [connectivity] Lint for public DartDocs (flutter#2269) [shared_preferences] Update and migrate iOS example project (flutter#2103) [quick_actions] Update and migrate iOS example project (flutter#2100) [infra] Ignore analyzer issues in CI (flutter#2271) [android_intent] Add missing DartDocs (flutter#2268) Bump google_maps_flutter pubspec to match CHANGELOG (flutter#2267) [google_sign_in] Handle new style URLs in GoogleUserCircleAvatar (flutter#2252) [google_sign_in] Move plugin to its subdir to allow for federated implementations. Add platform interface. (flutter#2244) Make setMockInitialValues handle non-prefixed keys (flutter#2260) ... # Conflicts: # packages/video_player/CHANGELOG.md # packages/video_player/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerPlugin.java # packages/video_player/ios/video_player.podspec # packages/video_player/pubspec.yaml # packages/video_player/test/video_player_test.dart
sungmin-park
pushed a commit
to sungmin-park/flutter-plugins
that referenced
this pull request
Dec 17, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
DEFINES_MODULEin the podspec. See CocoaPod modular headers docs.VALID_ARCHSto x86_64 for the simulator. See No way to add passing test_spec that doesn't cause build warning "Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform" CocoaPods/CocoaPods#9210.Related Issues
See flutter/flutter#41007.
Might fix flutter/flutter#34042 (though I can't reproduce it)
Tests
Checklist
///).flutter analyze) does not report any problems on my PR.Breaking Change