Skip to content

Commit

Permalink
Support sort for initialize singleton objects. increase version to 3.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ivlevAstef committed Sep 26, 2019
1 parent af61f4c commit 0cccf48
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v3.8.3
* Now `initializeSingletonObjects` always resolved in the same order.

# v3.8.2
* Support Lazy with tags, many and other combinations. for example: `let services: [Lazy<ServiceProtocol>] = many(by(tag: FooService.self, on: *container))`

Expand Down
2 changes: 1 addition & 1 deletion DITranquillity.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'DITranquillity'
s.version = '3.8.2'
s.version = '3.8.3'
s.summary = 'DITranquillity - Dependency injection for iOS/macOS/tvOS (Swift) '

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Sources/DITranquillity/Public/DIContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ extension DIContainer {
log(.verbose, msg: "Begin resolving \(singleComponents.count) singletons", brace: .begin)
defer { log(.verbose, msg: "End resolving singletons", brace: .end) }

for component in singleComponents {
for component in singleComponents.sorted(by: { $0.order < $1.order }) {
resolver.resolveSingleton(component: component)
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.8.2</string>
<string>3.8.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit 0cccf48

Please sign in to comment.