forked from TimOliver/TOCropViewController
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
45 lines (42 loc) · 1.22 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
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
var platforms: [SupportedPlatform] {
#if compiler(<5.3)
return [.iOS(.v8)]
#else
// Xcode 12 (which ships with Swift 5.3) drops support for iOS 8
return[.iOS(.v9)]
#endif
}
let package = Package(
name: "TOCropViewController",
defaultLocalization: "en",
platforms: platforms,
products: [
.library(
name: "TOCropViewController",
targets: ["TOCropViewController"]
),
.library(
name: "CropViewController",
targets: ["CropViewController"]
)
],
targets: [
.target(
name: "TOCropViewController",
path: "Objective-C/TOCropViewController/",
exclude:["Supporting/Info.plist"],
resources: [.process("Resources")],
publicHeadersPath: "include"
),
.target(
name: "CropViewController",
dependencies: ["TOCropViewController"],
path: "Swift/CropViewController/",
exclude:["Info.plist"],
sources: ["CropViewController.swift"]
)
]
)