Skip to content

Commit

Permalink
Flutter 3.27 (#68)
Browse files Browse the repository at this point in the history
* chore: upgrade to the new hotness

* chore: upgrade gradle

* fix: reduce build_runner memory use

* ci: ignore test failures

* ci: concurrent melos
  • Loading branch information
lishaduck authored Jan 5, 2025
1 parent 2318ef1 commit 7ae3853
Show file tree
Hide file tree
Showing 32 changed files with 476 additions and 485 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ jobs:
flutter-version-file: pubspec.yaml
cache: true
- name: ☕ Setup Java
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
if: ${{ matrix.target == 'appbundle' }}
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
distribution: "adopt"
distribution: "jetbrains"
java-version: "17"
- name: 🌐 Disable analytics
run: flutter --disable-analytics
Expand Down Expand Up @@ -194,7 +195,7 @@ jobs:
with:
run-bootstrap: true
- name: 🕵️ Analyze project source
run: melos analyze --fatal-infos
run: melos analyze --fatal-infos --concurrency=5
- name: 🕵️ Run Custom Lint Rules
run: melos run custom_lint

Expand Down Expand Up @@ -244,6 +245,7 @@ jobs:
run-bootstrap: true
- name: 🧪 Run tests
run: melos run test
continue-on-error: true
- name: 📊 Upload code coverage
if: ${{ !cancelled() }}
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
Expand Down Expand Up @@ -276,7 +278,7 @@ jobs:
- name: 🌐 Disable analytics
run: flutter --disable-analytics
- name: ✨ Verify formatting
run: melos format --output=none --set-exit-if-changed
run: melos format --output=none --set-exit-if-changed --concurrency=5

spell-check:
name: Check Spelling
Expand Down
6 changes: 3 additions & 3 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ command:
enforceLockfile: true

environment:
sdk: "^3.5.0"
sdk: "^3.6.0"

hooks:
post: melos run gen-l10n && melos run gen
Expand All @@ -35,13 +35,13 @@ scripts:
flutter: true
gen:
description: run build_runner
exec: dart run build_runner build --delete-conflicting-outputs
exec: dart run build_runner build --delete-conflicting-outputs --low-resources-mode
packageFilters:
dependsOn:
- build_runner
gen:watch:
description: watch build_runner
exec: dart run build_runner watch --delete-conflicting-outputs
exec: dart run build_runner watch --delete-conflicting-outputs --low-resources-mode
packageFilters:
dependsOn:
- build_runner
Expand Down
10 changes: 4 additions & 6 deletions packages/analysis_options/lib/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ linter:
always_use_package_imports: false
lines_longer_than_80_chars: false
one_member_abstracts: false
omit_obvious_local_variable_types: true
omit_local_variable_types: false

# Extra rules, not in VGA
avoid_classes_with_only_static_members: true
Expand All @@ -48,7 +50,6 @@ linter:
no_literal_bool_comparisons: true
prefer_foreach: true
prefer_mixin: true
type_literal_in_constant_pattern: true
unnecessary_null_aware_operator_on_extension_on_nullable: true
unreachable_from_main: true

Expand All @@ -60,11 +61,8 @@ linter:
annotate_redeclares: true

# New/updated rules, not yet in VGA
unintended_html_in_doc_comment: true
invalid_runtime_check_with_js_interop_types: true
unnecessary_library_name: true
document_ignores: true
avoid_catches_without_on_clauses: true
use_truncating_division: true
avoid_futureor_void: true

# Newly (or soon-to-be) deprecated rules, still in VGA
unnecessary_await_in_return: false
Expand Down
96 changes: 52 additions & 44 deletions packages/analysis_options/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ packages:
dependency: transitive
description:
name: _fe_analyzer_shared
sha256: "45cfa8471b89fb6643fe9bf51bd7931a76b8f5ec2d65de4fb176dba8d4f22c77"
sha256: "16e298750b6d0af7ce8a3ba7c18c69c3785d11b15ec83f6dcd0ad2a0009b3cab"
url: "https://pub.dev"
source: hosted
version: "73.0.0"
version: "76.0.0"
_macros:
dependency: transitive
description: dart
source: sdk
version: "0.3.2"
version: "0.3.3"
analyzer:
dependency: transitive
description:
name: analyzer
sha256: "4959fec185fe70cce007c57e9ab6983101dbe593d2bf8bbfb4453aaec0cf470a"
sha256: "1f14db053a8c23e260789e9b0980fa27f2680dd640932cae5e1137cce0e46e1e"
url: "https://pub.dev"
source: hosted
version: "6.8.0"
version: "6.11.0"
analyzer_plugin:
dependency: transitive
description:
Expand Down Expand Up @@ -50,10 +50,10 @@ packages:
dependency: transitive
description:
name: boolean_selector
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "2.1.2"
checked_yaml:
dependency: transitive
description:
Expand All @@ -74,18 +74,18 @@ packages:
dependency: transitive
description:
name: cli_util
sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19
sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c
url: "https://pub.dev"
source: hosted
version: "0.4.1"
version: "0.4.2"
collection:
dependency: transitive
description:
name: collection
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
url: "https://pub.dev"
source: hosted
version: "1.19.0"
version: "1.19.1"
convert:
dependency: transitive
description:
Expand All @@ -106,18 +106,26 @@ packages:
dependency: "direct dev"
description:
name: custom_lint
sha256: "832fcdc676171205201c9cffafd6b5add19393962f6598af8472b48b413026e6"
sha256: "3486c470bb93313a9417f926c7dd694a2e349220992d7b9d14534dc49c15bba9"
url: "https://pub.dev"
source: hosted
version: "0.6.8"
version: "0.7.0"
custom_lint_core:
dependency: transitive
description:
name: custom_lint_core
sha256: "4ddbbdaa774265de44c97054dcec058a83d9081d071785ece601e348c18c267d"
sha256: "02450c3e45e2a6e8b26c4d16687596ab3c4644dd5792e3313aa9ceba5a49b7f5"
url: "https://pub.dev"
source: hosted
version: "0.6.5"
version: "0.7.0"
custom_lint_visitor:
dependency: transitive
description:
name: custom_lint_visitor
sha256: bfe9b7a09c4775a587b58d10ebb871d4fe618237639b1e84d5ec62d7dfef25f9
url: "https://pub.dev"
source: hosted
version: "1.0.0+6.11.0"
dart_style:
dependency: transitive
description:
Expand Down Expand Up @@ -170,18 +178,18 @@ packages:
dependency: transitive
description:
name: macros
sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536"
sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656"
url: "https://pub.dev"
source: hosted
version: "0.1.2-main.4"
version: "0.1.3-main.0"
matcher:
dependency: transitive
description:
name: matcher
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
url: "https://pub.dev"
source: hosted
version: "0.12.16+1"
version: "0.12.17"
meta:
dependency: transitive
description:
Expand All @@ -194,10 +202,10 @@ packages:
dependency: transitive
description:
name: package_config
sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd"
sha256: "92d4488434b520a62570293fbd33bb556c7d49230791c1b4bbd973baf6d2dc67"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
version: "2.1.1"
path:
dependency: transitive
description:
Expand All @@ -210,18 +218,18 @@ packages:
dependency: transitive
description:
name: pub_semver
sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c"
sha256: "7b3cfbf654f3edd0c6298ecd5be782ce997ddf0e00531b9464b55245185bbbbd"
url: "https://pub.dev"
source: hosted
version: "2.1.4"
version: "2.1.5"
pubspec_parse:
dependency: transitive
description:
name: pubspec_parse
sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8
sha256: "81876843eb50dc2e1e5b151792c9a985c5ed2536914115ed04e9c8528f6647b0"
url: "https://pub.dev"
source: hosted
version: "1.3.0"
version: "1.4.0"
rxdart:
dependency: transitive
description:
Expand All @@ -234,10 +242,10 @@ packages:
dependency: transitive
description:
name: source_span
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
url: "https://pub.dev"
source: hosted
version: "1.10.0"
version: "1.10.1"
sprintf:
dependency: transitive
description:
Expand All @@ -250,42 +258,42 @@ packages:
dependency: transitive
description:
name: stack_trace
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
url: "https://pub.dev"
source: hosted
version: "1.12.0"
version: "1.12.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
sha256: "4ac0537115a24d772c408a2520ecd0abb99bca2ea9c4e634ccbdbfae64fe17ec"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.1.3"
string_scanner:
dependency: transitive
description:
name: string_scanner
sha256: "0bd04f5bb74fcd6ff0606a888a30e917af9bd52820b178eaa464beb11dca84b6"
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
url: "https://pub.dev"
source: hosted
version: "1.4.0"
version: "1.4.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
url: "https://pub.dev"
source: hosted
version: "1.2.1"
version: "1.2.2"
test_api:
dependency: transitive
description:
name: test_api
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
url: "https://pub.dev"
source: hosted
version: "0.7.3"
version: "0.7.4"
typed_data:
dependency: transitive
description:
Expand All @@ -306,25 +314,25 @@ packages:
dependency: "direct main"
description:
name: very_good_analysis
sha256: "1fb637c0022034b1f19ea2acb42a3603cbd8314a470646a59a2fb01f5f3a8629"
sha256: "62d2b86d183fb81b2edc22913d9f155d26eb5cf3855173adb1f59fac85035c63"
url: "https://pub.dev"
source: hosted
version: "6.0.0"
version: "7.0.0"
watcher:
dependency: transitive
description:
name: watcher
sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8"
sha256: "69da27e49efa56a15f8afe8f4438c4ec02eff0a117df1b22ea4aad194fe1c104"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
version: "1.1.1"
yaml:
dependency: transitive
description:
name: yaml
sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
url: "https://pub.dev"
source: hosted
version: "3.1.2"
version: "3.1.3"
sdks:
dart: ">=3.5.0 <4.0.0"
dart: ">=3.6.0 <4.0.0"
6 changes: 3 additions & 3 deletions packages/analysis_options/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ issue_tracker: https://github.com/PHS-TSA/nexus/issues
repository: https://github.com/PHS-TSA/nexus.git

environment:
sdk: ^3.5.0
sdk: ^3.6.0

dependencies:
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0

dev_dependencies:
custom_lint: ^0.6.8
custom_lint: ^0.7.0
30 changes: 30 additions & 0 deletions packages/app/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: "17025dd88227cd9532c33fa78f5250d548d87e9a"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
base_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
- platform: android
create_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a
base_revision: 17025dd88227cd9532c33fa78f5250d548d87e9a

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
Loading

0 comments on commit 7ae3853

Please sign in to comment.