diff --git a/Sources/ElixxirDAppsSDK/DependenciesProvider.swift b/Sources/ElixxirDAppsSDK/DependenciesProvider.swift new file mode 100644 index 0000000000000000000000000000000000000000..d9168cd1cdca4f0f58dddd54ef85651161d26f1e --- /dev/null +++ b/Sources/ElixxirDAppsSDK/DependenciesProvider.swift @@ -0,0 +1,19 @@ +import Bindings + +public struct DependenciesProvider { + public var get: () -> String + + public func callAsFunction() -> String { + get() + } +} + +extension DependenciesProvider { + public static let live = DependenciesProvider(get: BindingsGetDependencies) +} + +#if DEBUG +extension DependenciesProvider { + public static let failing = DependenciesProvider { fatalError("Not implemented") } +} +#endif