refactor(build): unify SDK configuration and release tooling

Pin Flutter with FVM and share local environment loading across IDE, Python, and Dart entrypoints. Keep CI on the verified preinstalled SDK and skip local overrides.

Extract common build presets, process execution, and file hashing. Propagate project roots through SDK selection and release commands, and migrate macOS release, signing, and DMG orchestration to Python.

Reuse local check suites in CI, support Android source overrides, and update documentation and regression tests.
This commit is contained in:
lingjhf committed 2026-10-06 23:34:15 +08:00
1 parent a13a54d5ec
commit 0343e2f723
57 files changed
+1858 -375

No files matched your search

+3 -3
View File
@@ -69,7 +69,7 @@ def check(root):
for package, allowed in RUNTIME.items():
directory = root / 'packages' / package
manifest_path = directory / 'pubspec.yaml'
manifest = manifest_path.read_text()
manifest = manifest_path.read_text(encoding='utf-8')
dependencies = dependency_names(manifest, 'dependencies')
dev_dependencies = dependency_names(manifest, 'dev_dependencies')
for dependency in sorted(dependencies - allowed):
@@ -84,7 +84,7 @@ def check(root):
if area != 'lib':
declared |= dev_dependencies
for source in (directory / area).rglob('*.dart'):
for kind, uri in directives(source.read_text()):
for kind, uri in directives(source.read_text(encoding='utf-8')):
if uri.startswith('package:'):
dependency, path = package_uri(uri)
if dependency not in declared:
@@ -99,7 +99,7 @@ def check(root):
for area in ['lib', 'test', 'integration_test', 'test_driver', 'tool']:
for source in (root / area).rglob('*.dart'):
for kind, uri in directives(source.read_text()):
for kind, uri in directives(source.read_text(encoding='utf-8')):
if uri.startswith('package:'):
dependency, path = package_uri(uri)
if dependency != 'cutdex' and (path == 'src' or path.startswith('src/')):