Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #42 from dlindenkreuz/master
Browse files Browse the repository at this point in the history
Swift package
  • Loading branch information
onmyway133 authored Jun 12, 2019
2 parents 29e3369 + 3e8d44d commit 9d5c67c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
12 changes: 9 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
// swift-tools-version:5.1
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription

let package = Package(
name: "DeepDiff",
platforms: [
.macOS(.v10_11),
.iOS(.v8),
.tvOS(.v11),
.watchOS(.v3)
],
products: [
.library(name: "DeepDiff", targets: ["DeepDiff"])
.library(name: "DeepDiff", targets: ["DeepDiff"]),
],
targets: [
.target( name: "DeepDiff", dependencies: [])
.target(name: "DeepDiff", path: "Sources")
]
)
2 changes: 2 additions & 0 deletions Sources/iOS/IndexPathConverter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2018 Khoa Pham. All rights reserved.
//

#if os(iOS) || os(tvOS)
import Foundation

public struct ChangeWithIndexPath {
Expand Down Expand Up @@ -58,3 +59,4 @@ extension Int {
return IndexPath(item: self, section: section)
}
}
#endif
3 changes: 2 additions & 1 deletion Sources/iOS/UICollectionView+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2018 Khoa Pham. All rights reserved.
//

#if os(iOS) || os(tvOS)
import UIKit

public extension UICollectionView {
Expand Down Expand Up @@ -60,4 +61,4 @@ public extension UICollectionView {
}
}
}

#endif
2 changes: 2 additions & 0 deletions Sources/iOS/UITableView+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2018 Khoa Pham. All rights reserved.
//

#if os(iOS) || os(tvOS)
import UIKit

public extension UITableView {
Expand Down Expand Up @@ -91,3 +92,4 @@ public extension UITableView {
}
}
}
#endif

0 comments on commit 9d5c67c

Please sign in to comment.