-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[google_maps_flutter_ios] Fix kCGImageAlphaPremultipliedLast implicit conversion from enumeration type #9720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ion with kCGBitmapAlphaInfoMask
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request fixes a compiler warning in the iOS implementation related to an implicit enum conversion when creating a bitmap context. The change correctly uses kCGBitmapAlphaInfoMask to avoid the warning. The pubspec.yaml version and CHANGELOG.md are updated accordingly. I have one suggestion to align the changelog entry with the repository's style guide.
| @@ -1,3 +1,7 @@ | |||
| ## 2.15.5 | |||
|
|
|||
| * Fixes `kCGImageAlphaPremultipliedLast` implicit conversion from enumeration type warning. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the repository's contribution guide1, which specifies the CHANGELOG style, entries should be in the past tense and be a complete sentence ending with a period. Please update this entry to align with the guide.
Style Guide References
| * Fixes `kCGImageAlphaPremultipliedLast` implicit conversion from enumeration type warning. | |
| * Fixed `kCGImageAlphaPremultipliedLast` implicit conversion from enumeration type warning. |
Footnotes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This advice is wrong, the CHANGELOG style says:
Entries should use present tense indicative for verbs, with "this version" as an implied subject. For example, "Adds cool new feature.", not "Add", "Added", or "Adding".
stuartmorgan-g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…t implicit conversion from enumeration type (flutter/packages#9720)
…t implicit conversion from enumeration type (flutter/packages#9720)
flutter/packages@1a72287...83ae18a 2025-08-04 [email protected] [go_router] add initial json support #110781 (flutter/packages#9404) 2025-08-04 [email protected] Update CODEOWNERS (flutter/packages#9721) 2025-08-04 [email protected] [google_maps_flutter_ios] Fix kCGImageAlphaPremultipliedLast implicit conversion from enumeration type (flutter/packages#9720) 2025-08-04 [email protected] Roll Flutter from 871849e to beda687 (34 revisions) (flutter/packages#9745) 2025-08-04 [email protected] [interactive_media_ads] Fixes setting adsresponse on Android (flutter/packages#9744) 2025-08-04 [email protected] [interactive_media_ads]: Adds additional methods to configure ad requests (flutter/packages#9696) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…r#173290) flutter/packages@1a72287...83ae18a 2025-08-04 [email protected] [go_router] add initial json support flutter#110781 (flutter/packages#9404) 2025-08-04 [email protected] Update CODEOWNERS (flutter/packages#9721) 2025-08-04 [email protected] [google_maps_flutter_ios] Fix kCGImageAlphaPremultipliedLast implicit conversion from enumeration type (flutter/packages#9720) 2025-08-04 [email protected] Roll Flutter from 871849e to beda687 (34 revisions) (flutter/packages#9745) 2025-08-04 [email protected] [interactive_media_ads] Fixes setting adsresponse on Android (flutter/packages#9744) 2025-08-04 [email protected] [interactive_media_ads]: Adds additional methods to configure ad requests (flutter/packages#9696) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…r#173290) flutter/packages@1a72287...83ae18a 2025-08-04 [email protected] [go_router] add initial json support flutter#110781 (flutter/packages#9404) 2025-08-04 [email protected] Update CODEOWNERS (flutter/packages#9721) 2025-08-04 [email protected] [google_maps_flutter_ios] Fix kCGImageAlphaPremultipliedLast implicit conversion from enumeration type (flutter/packages#9720) 2025-08-04 [email protected] Roll Flutter from 871849e to beda687 (34 revisions) (flutter/packages#9745) 2025-08-04 [email protected] [interactive_media_ads] Fixes setting adsresponse on Android (flutter/packages#9744) 2025-08-04 [email protected] [interactive_media_ads]: Adds additional methods to configure ad requests (flutter/packages#9696) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…r#173290) flutter/packages@1a72287...83ae18a 2025-08-04 [email protected] [go_router] add initial json support flutter#110781 (flutter/packages#9404) 2025-08-04 [email protected] Update CODEOWNERS (flutter/packages#9721) 2025-08-04 [email protected] [google_maps_flutter_ios] Fix kCGImageAlphaPremultipliedLast implicit conversion from enumeration type (flutter/packages#9720) 2025-08-04 [email protected] Roll Flutter from 871849e to beda687 (34 revisions) (flutter/packages#9745) 2025-08-04 [email protected] [interactive_media_ads] Fixes setting adsresponse on Android (flutter/packages#9744) 2025-08-04 [email protected] [interactive_media_ads]: Adds additional methods to configure ad requests (flutter/packages#9696) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…r#173290) flutter/packages@1a72287...83ae18a 2025-08-04 [email protected] [go_router] add initial json support flutter#110781 (flutter/packages#9404) 2025-08-04 [email protected] Update CODEOWNERS (flutter/packages#9721) 2025-08-04 [email protected] [google_maps_flutter_ios] Fix kCGImageAlphaPremultipliedLast implicit conversion from enumeration type (flutter/packages#9720) 2025-08-04 [email protected] Roll Flutter from 871849e to beda687 (34 revisions) (flutter/packages#9745) 2025-08-04 [email protected] [interactive_media_ads] Fixes setting adsresponse on Android (flutter/packages#9744) 2025-08-04 [email protected] [interactive_media_ads]: Adds additional methods to configure ad requests (flutter/packages#9696) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…r#173290) flutter/packages@1a72287...83ae18a 2025-08-04 [email protected] [go_router] add initial json support flutter#110781 (flutter/packages#9404) 2025-08-04 [email protected] Update CODEOWNERS (flutter/packages#9721) 2025-08-04 [email protected] [google_maps_flutter_ios] Fix kCGImageAlphaPremultipliedLast implicit conversion from enumeration type (flutter/packages#9720) 2025-08-04 [email protected] Roll Flutter from 871849e to beda687 (34 revisions) (flutter/packages#9745) 2025-08-04 [email protected] [interactive_media_ads] Fixes setting adsresponse on Android (flutter/packages#9744) 2025-08-04 [email protected] [interactive_media_ads]: Adds additional methods to configure ad requests (flutter/packages#9696) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Docs for
CGBitmapContextCreatebitmapInfoparameter say:The docs still show
kCGImageAlphaPremultipliedLastbeing passed in directly.Instead of casting to
CGBitmapInfo(which would also work I believe), usekCGBitmapAlphaInfoMask.Further explanation at inkling/Subliminal#23 (comment).
Tested here:
packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/ios/RunnerTests/GoogleMapsTests.m
Line 81 in b2aef15
Fixes flutter/flutter#170440
Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2 ↩3