Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized code in injector and added a possibility for method chaining #15

Merged
merged 3 commits into from Oct 26, 2020

Conversation

ova2
Copy link
Contributor

@ova2 ova2 commented Oct 21, 2020

We use a fork of your great library with some patched code which I now committed in this PR. All tests are green.

  • Optimized code in injector (more concise and faster for some methods).
  • Added a possibility to chain method calls using cascade operator.

Thanks for accepting this PR in advance. I would be happy if you could release a new version of this lib.

- Added a possibility to chain method calls using cascade operator.
@jonsamwell
Copy link
Owner

Thanks for this, the code looks good. I'll have a bit of time to merge this in tomorrow and do a new release.

Is this test still passing?

https://github.com/jonsamwell/flutter_simple_dependency_injection/blob/master/test/flutter_simple_dependency_injection_test.dart#L199

@ova2
Copy link
Contributor Author

ova2 commented Oct 23, 2020 via email

@ova2
Copy link
Contributor Author

ova2 commented Oct 23, 2020

@jonsamwell I've updated this pull request. The Injector class has a factory constructor now. An Injector instance can be instantiated more shorter. "Injector.getInjector()" is marked as deprecated as discussed here #16

I've updated CHANGELOG too.

Looking forward for a new release!

@jonsamwell jonsamwell merged commit 2685531 into jonsamwell:master Oct 26, 2020
@jonsamwell
Copy link
Owner

@ova2 many thanks for this PR. Released as version 1.0.4

@ova2
Copy link
Contributor Author

ova2 commented Oct 26, 2020

@jonsamwell Many thanks for release too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants