smartwork_core 1.0.3
smartwork_core: ^1.0.3 copied to clipboard
Core logic for Smartwork project generation and management.
1.0.3 #
SmartWork supports only the latest stable Flutter. When the developer's Flutter SDK is too old for the package versions SmartWork generates, it now says so and tells them to update, instead of failing silently.
ProjectValidator: the Dependencies phase runs before Format. Aflutter pub getfailure caused by an out-of-date SDK carries ahint(newValidationPhaseResult.hint) telling the developer to update Flutter. NewresolveDependencies()runs that phase on its own, andProjectValidationFailedException.detailsincludes the failed phase's hint and output.- New
SdkUpdateHintrecognizes these failures (isSdkTooOld,message,describeFailure). EnvironmentDoctor: new "Package compatibility" check resolves every package SmartWork can generate against the local SDK (PubspecGenerator.generateDependencyProbe).EnvironmentCheckgainsinconclusivefor checks that can't reach a verdict (e.g. offline).CoverageNotProducedExceptionincludesflutter test's output.- Processes are launched through the shell on Windows (new
runSystemProcess, the defaultProcessRunner), soflutter.batis found. - Google Font projects: the generated
AppThemetests usetestWidgets. - API documentation for the main public API (
ProjectConfig,ProjectPaths, the models,ProjectInitializer,ProjectValidator,EnvironmentDoctor, ...) and a runnableexample/example.dart. - Fixed:
FontLifecycle.updateFontSampledeletedfont_sample.dartwhile project code still usedFontSample; it now keeps (and updates) the sample in that case. - Fixed: disabling localization now deletes the Dart files
flutter gen-l10ngenerated inlib/l10n/(they import the removed packages); ARB files are kept. - Fixed: removing a managed dependency (e.g. disabling localization) left
its nested
sdk: flutterline behind, corruptingpubspec.yaml. - Generated Dart code is run through
dart format, so long feature or model names no longer produce unformatted code (or failinit's Format phase). NewFileWriter.recordDartWritesandProjectValidator.formatDartFiles.
1.0.2 #
PubspecGenerator.generate/mergeInto and ProjectGenerator/
ProjectInitializer.initialize accept an optional projectDescription,
used only to set the generated project's pubspec.yaml description line.
It is not part of ProjectConfig and is not persisted to
.smartwork/project.yaml; omitting it preserves the exact prior behavior.
1.0.1 #
First pub.dev release. Core engine for SmartWork: architecture templates (Clean, MVVM, MVP, BLoC/Cubit, GetX/Riverpod), feature blueprint generation, network and storage generation, Production Services, App Targets, and project discovery.