Skip to content

Commit

Permalink
Merge development into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sbertix committed Apr 7, 2021
2 parents 283fcd7 + 5be6df1 commit 434947b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ let package = Package(
.tvOS(.v9),
.watchOS(.v2)],
// Exposed libraries.
products: [.library(name: "ComposableRequest",
products: [.library(name: "Requests",
targets: ["ComposableRequest"]),
.library(name: "ComposableStorage",
.library(name: "Storage",
targets: ["ComposableStorage"]),
.library(name: "ComposableStorageCrypto",
.library(name: "StorageCrypto",
targets: ["ComposableStorageCrypto"])],
// Package dependencies.
dependencies: [.package(url: "https://github.com/cx-org/CombineX",
Expand Down
12 changes: 12 additions & 0 deletions Sources/ComposableRequest/Wrapper/Wrapped.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ public protocol Wrapped: Codable, Wrappable {
init(wrapper: @escaping () -> Wrapper)
}

extension Wrapper: Wrapped {
/// A closure escaping `self`.
public var wrapper: () -> Wrapper { { self } }

/// Init.
///
/// - parameter wrapper: A closure returning `Wrapper`.
public init(wrapper: @escaping () -> Wrapper) {
self = wrapper()
}
}

public extension Wrapped {
// MARK: Lifecycle

Expand Down
2 changes: 1 addition & 1 deletion Sources/ComposableStorageCrypto/KeychainStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

import ComposableStorage
@_exported import ComposableStorage
import Swiftchain

/// A `struct` defining a `Storage` caching `Item`s **safely** inside the user's **Keychain**.
Expand Down

0 comments on commit 434947b

Please sign in to comment.