diff --git a/CHANGELOG.md b/CHANGELOG.md index 94b9338..e6d26bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.0.2 +- Fixed missing usage of ServiceFactory + ## 1.0.1 - pub.dev suggestions implemented diff --git a/lib/dependency_container.dart b/lib/dependency_container.dart index 349425a..0bf6fd1 100644 --- a/lib/dependency_container.dart +++ b/lib/dependency_container.dart @@ -81,7 +81,7 @@ class DependencyContainer implements DependencyContainerInterface { @override void registerWithDependencies( - Function serviceFactory, + ServiceFactory serviceFactory, List dependencies, ) { _factories[T] = _ServiceWithDependencies(serviceFactory, dependencies); @@ -89,7 +89,7 @@ class DependencyContainer implements DependencyContainerInterface { @override void registerInterfaceWithDependencies( - Function serviceFactory, + ServiceFactory serviceFactory, List dependencies, ) { _factories[TB] = _ServiceWithDependencies(serviceFactory, dependencies); @@ -168,7 +168,7 @@ class DependencyContainer implements DependencyContainerInterface { } class _ServiceWithDependencies { - final Function serviceFactory; + final ServiceFactory serviceFactory; final List dependencies; _ServiceWithDependencies( diff --git a/pubspec.yaml b/pubspec.yaml index b42b47e..6a13c55 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: flutter_catalyst -version: 1.0.1 +version: 1.0.2 description: A dependency injection container which also supports autowiring of services. homepage: https://github.com/mintware-de/flutter_catalyst environment: