feat: analyzer 12 compatibility - #216
Open
gasciaz wants to merge 1 commit into
Open
Conversation
Move reactive_forms_generator to analyzer 12:
analyzer: ^12.0.0 (was ^10.0.0)
dart_style: ^3.1.8 (was ^3.0.0)
build: ^4.0.5 (was ^4.0.1)
source_gen: ^4.2.2 (was ^4.1.2)
sdk: '>=3.10.0 <4.0.0' (was '>=3.8.0 <4.0.0')
Analyzer 12 seals ClassBody with exactly BlockClassBody and
EmptyClassBody, so the default case in the outputClassBody switch is now
unreachable. Removed.
generator_tests and example need freezed ^3.2.6-dev.1, currently the
only published version taking analyzer 12.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Moves
reactive_forms_generatorfrom analyzer 10 to analyzer 12.The other bumps are forced, not tidying:
build4.0.3 andsource_gen4.1.x cap analyzer below 12, anddart_stylepins one analyzer major per release — 3.1.8 is the only one that takes 12, and it needs Dart 3.10, so the SDK floor moves with it.Analyzer 12 seals
ClassBody, so the default case inoutputClassBodyis now unreachable andflutter analyze --no-fatal-infosexits 1 on it. Removed — that's the only source change.generator_testsandexampleneedfreezed: ^3.2.6-dev.1, a prerelease. 3.2.5 caps analyzer at<11and 3.2.6-dev.1 is the only published version taking 12, so the workspace can't resolve without it.