-
Notifications
You must be signed in to change notification settings - Fork 59
/
Package.swift
48 lines (47 loc) · 1.4 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "SyncKit",
platforms: [
.macOS(.v10_12),
.iOS(.v11),
.tvOS(.v11),
.watchOS(.v3)
],
products: [
.library(name: "SyncKit/CoreData", targets: ["SyncKit/CoreData"]),
.library(name: "SyncKit/Realm", targets: ["SyncKit/Realm"]),
.library(name: "SyncKit/RealmSwift", targets: ["SyncKit/RealmSwift"])],
dependencies: [
.package(url: "https://github.com/realm/realm-cocoa", from: "10.5.2")
],
targets: [
.target(
name: "SyncKit/CoreData",
dependencies: [],
path: "SyncKit/Classes/CoreData",
resources: [
.process("QSCloudKitSyncModel.xcdatamodeld")
],
swiftSettings: [
.define("SPM")
]
),
.target(
name: "SyncKit/Realm",
dependencies: [
.product(name: "Realm", package: "realm-cocoa")
],
path: "SyncKit/Classes/Realm"
),
.target(
name: "SyncKit/RealmSwift",
dependencies: [
.product(name: "RealmSwift", package: "realm-cocoa"),
.product(name: "Realm", package: "realm-cocoa")
],
path: "SyncKit/Classes/RealmSwift"
)
],
swiftLanguageVersions: [.v5]
)