Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DIKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "DIKit"
s.version = "1.6.1"
s.version = "1.6.2"
s.license = { :type => "MIT", :file => "LICENSE" }

s.summary = "Dependency Injection Framework for Swift."
Expand All @@ -12,7 +12,7 @@ Pod::Spec.new do |s|
s.platform = :ios, "9.0"
s.swift_version = "5.4"

s.source = { :git => "https://github.com/benjohnde/DIKit.git", :tag => "#{s.version}" }
s.source = { :git => "https://github.com/AlessioCampanelli/DIKit-runtime.git", :tag => "#{s.version}" }

s.source_files = "DIKit/Sources/**/*.{swift}"
s.requires_arc = true
Expand Down
9 changes: 9 additions & 0 deletions DIKit/Sources/Container/DependencyContainer+Context.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@ extension DependencyContainer {
}
self.root = root
}

/// Defines the used `DependencyContainer` root at runtime for resolving components.
/// Can can be statically resolved for injection.
///
/// - Parameters:
/// - by: *DependencyContainer* the root `DependencyContainer`
public static func definedAtRuntime(by root: DependencyContainer) {
self.root = root
}
}