Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 4d0803e

Browse files
authored
Move away from deprecated strong-mode analysis options (#224)
I'm going through `flutter/` and other projects and removing references to the deprecated `strong-mode` options to ease the final removal of them. This enables similar [analyzer language modes](https://dart.dev/guides/language/analysis-options#enabling-additional-type-checks) to replace them. Issue reference: dart-lang/sdk#50679
1 parent ae8c4c3 commit 4d0803e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flutter_nps/packages/app_ui/analysis_options.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
include: package:flutter_lints/flutter.yaml
22

33
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
implicit-dynamic: false
4+
language:
5+
strict-casts: true
6+
strict-inference: true
77

88
errors:
99
missing_required_param: error

flutter_nps/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies:
1717
flutter_bloc: ^8.1.1
1818
flutter_localizations:
1919
sdk: flutter
20-
intl: ^0.17.0
20+
intl: any
2121
nps_repository:
2222
path: packages/nps_repository
2323
platform_close:

0 commit comments

Comments
 (0)