Skip to content

Commit

Permalink
switch to package for operators
Browse files Browse the repository at this point in the history
  • Loading branch information
juliand665 committed Feb 25, 2021
1 parent 58fa403 commit c3e6ac2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 30 deletions.
16 changes: 16 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"object": {
"pins": [
{
"package": "HandyOperators",
"repositoryURL": "https://github.com/juliand665/HandyOperators.git",
"state": {
"branch": null,
"revision": "483aa96950ad3078d092b2ba8d9dda6ea6576244",
"version": "1.0.0"
}
}
]
},
"version": 1
}
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/juliand665/HandyOperators.git", from: "1.0.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "UserDefault",
dependencies: []
dependencies: ["HandyOperators"]
),
.testTarget(
name: "UserDefaultTests",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import HandyOperators

public extension DefaultsValueConvertible where Self: NSObject & NSCoding {
func defaultsRepresentation() throws -> Data {
Expand Down
1 change: 1 addition & 0 deletions Sources/UserDefault/DefaultsValue.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import HandyOperators

/// You probably don't want to conform to this protocol; it's only for types that can be stored and loaded directly to `UserDefaults` with `saveObject` and `loadObject`, like `Bool`, `Int`, etc.
public protocol DefaultsValue: DefaultsValueConvertible {
Expand Down
28 changes: 0 additions & 28 deletions Sources/UserDefault/Helpers/Operators.swift

This file was deleted.

0 comments on commit c3e6ac2

Please sign in to comment.