Repository navigation
[in_app_purchase_storekit] Suppress StoreKit 1 deprecations in imported headers - #13745
Conversation
cb98a79 to
8af4dd6
Compare
There was a problem hiding this comment.
Code Review
This pull request adds Kotlin compiler daemon error log files across several Android example packages and configures Xcode project files in the in_app_purchase_storekit example to ignore deprecated declaration warnings. Feedback recommends removing the local Kotlin log files from the repository and updating the Xcode configuration to use -Wno-deprecated-declarations instead of -Wno-error=deprecated-declarations to completely silence the warnings.
…ed headers Swift builds the StoreKitTest clang module and the test bridging header against the SDK version, so StoreKit 1 deprecations fire regardless of deployment target and become errors under SWIFT_TREAT_WARNINGS_AS_ERRORS. Stubs.h ignores the deprecations with a pragma, matching the plugin headers. The StoreKitTest module can't be reached by a pragma, so RunnerTests demotes deprecation diagnostics in imported headers back to warnings. Fixes flutter/flutter#195980
8af4dd6 to
73c9b8f
Compare
stuartmorgan
left a comment
There was a problem hiding this comment.
LGTM
Maybe file an issue (if you haven't already) to remove this warning suppression from the project when SK1 is removed, so it's not just forgotten and left there forever.
|
…r#197316) flutter/packages@5b93485...f455dfa 2026-11-24 [email protected] [material_ui] Add Material 3 Expressive `FilledButton` and Filled Tonal button (`FilledButton.tonal`) (flutter/packages#13702) 2026-11-24 [email protected] Roll Flutter from 685f4cf to 98744d3 (8 revisions) (flutter/packages#13768) 2026-11-23 [email protected] [material_ui] Migrate Chip and ChipTheme API doc snippets to {@example} (batch 11) (flutter/packages#13720) 2026-11-23 [email protected] [material_ui] Migrate Dialog, AlertDialog, and SimpleDialog API doc snippets to {@example} (batch 12) (flutter/packages#13721) 2026-11-23 [email protected] [vector_graphics_compiler] Scale the initial stroke width (flutter/packages#13577) 2026-11-23 [email protected] [in_app_purchase_storekit] Suppress StoreKit 1 deprecations in imported headers (flutter/packages#13745) If this roll has caused a breakage, revert this CL and set the roller to dry run mode 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
Just calling
import StoreKitTestis causing StoreKit1 deprecation warnings because one of their headers has a deprecated property type but the warnings aren't suppressed. I don't think there's a way to suppress this in Swift around an import so for now suppress deprecations in the RunnerTests target.Fixes flutter/flutter#195980
Hopefully unblocks #13284
Pre-Review Checklist
[shared_preferences]///).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