v1.0.0
injecteo
Service locator for IoC pattern. Export annotations and abstract classes used by injecteo_generator.
31Likes 1030-day downloads150Pub points
AndroidiOSWebmacOSWindowsLinux
Iteo/injecteo open-source repository details.
English project snapshot. Visit GitHub for the latest content.
Nice to see you here, dear Developer. This is a root of injecteo service locator / dependency injection generator project.
Repository contains several folders:
packages
injecteo: Dependency Injection annotations (@singleton, @inject, @InjectionModule, @externalModule),
abstract class for ServiceLocator pattern and the implementation using get_it packageinjecteo_generator: Actual code generator which scans project for injecteo annotations and generate top-level configuration function with additional InjectionModule classesinjecteo_models: Internal models used by generator. Represents DependencyConfig with required properties like:example
basic: Simple counter app, which shows how to annotate classes for injecteo_generator and configure dependenciesfeature_packages: Focuses on InjectionModule - a way to split features into multiple packages and integrate them with Melostodeo: Advanced to-do application with multiple dependencies registered for dev and prod environments.For details, please see each folder README files.
Packages use Melos with usePubspecOverrides: true.
Local packages are linked via Melos-generated pubspec_overrides.yaml.
melos bs
melos run get
melos run generate
melos run format
Before commit
melos run format
melos run test
Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗