Releases: ivlevAstef/DITranquillity
DANGER! fix potential memory leak, but changed logic
DANGER!
Changed logic for Provider and Lazy - now objectGraph object not retained until use Provider and Lazy. It's remove potencial memory leak, but can changed your program logic - if your not retained objects, this objects can removed, and remake after make object by Provider or Lazy.
Fix Support SwiftPM
Fix Support SwiftPM. But swiftPM didn't support Storyboard injections.
Support sort singletons at all creation
Now initializeSingletonObjects
always resolved in the same order.
Support Lazy with tags
Support Lazy with tags, many and other combinations. for example: let services: [Lazy<ServiceProtocol>] = many(by(tag: FooService.self, on: *container))
Support Lazy
Support Many<Lazy<Type>>
. For example: let objects: [Lazy<Service>] = many(*container)
Improve Support Module architecture
- Remove bundle from DIFramework - now used only DIFramework. It's need for support module architecture on static libraries.
- Small improve logs - add
make
log.
Support carthage
fix carthage build
Support order for many
Support order for many
Support optional register
- Fully support optional register.
c.register { optionalValue }
now can correct resolve. - Improve logs for optional register if optional is nil.
Remove register1
Remove register1
method - now only register
in container.
Also stop support Swift 3.x