forked from imgly/IMGLYUI-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
92 lines (89 loc) · 3.01 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "IMGLYUI",
platforms: [.iOS(.v16)],
products: [
// Comment out these products for development to fix SwiftUI previews inside this package
.library(name: "IMGLYCamera", targets: ["IMGLYCamera"]),
.library(name: "IMGLYDesignEditor", targets: ["IMGLYDesignEditor"]),
.library(name: "IMGLYVideoEditor", targets: ["IMGLYVideoEditor"]),
.library(name: "IMGLYPhotoEditor", targets: ["IMGLYPhotoEditor"]),
.library(name: "IMGLYApparelEditor", targets: ["IMGLYApparelEditor"]),
.library(name: "IMGLYPostcardEditor", targets: ["IMGLYPostcardEditor"]),
// Default product which includes all modules
.library(name: "IMGLYUI",
targets: [
"IMGLYCore",
"IMGLYCoreUI",
"IMGLYCamera",
"IMGLYEditor",
"IMGLYDesignEditor",
"IMGLYVideoEditor",
"IMGLYPhotoEditor",
"IMGLYApparelEditor",
"IMGLYPostcardEditor"
])
],
dependencies: [
.package(url: "https://github.com/imgly/IMGLYEngine-swift.git", exact: "1.30.0"),
.package(url: "https://github.com/siteline/SwiftUI-Introspect.git", from: "1.1.2"),
.package(url: "https://github.com/onevcat/Kingfisher.git", from: "7.10.0")
],
targets: [
.target(
name: "IMGLYCore",
dependencies: [.product(name: "IMGLYEngine", package: "IMGLYEngine-swift")]
),
.target(
name: "IMGLYCoreUI",
dependencies: [
.target(name: "IMGLYCore"),
.product(name: "SwiftUIIntrospect", package: "SwiftUI-Introspect"),
.product(name: "Kingfisher", package: "Kingfisher")
]
),
.target(
name: "IMGLYCamera",
dependencies: [.target(name: "IMGLYCoreUI")]
),
.target(
name: "IMGLYEditor",
dependencies: [.target(name: "IMGLYCamera")]
),
.target(
name: "IMGLYDesignEditor",
dependencies: [.target(name: "IMGLYEditor")],
resources: [.process("Resources")]
),
.target(
name: "IMGLYVideoEditor",
dependencies: [.target(name: "IMGLYEditor")],
resources: [.process("Resources")]
),
.target(
name: "IMGLYPhotoEditor",
dependencies: [.target(name: "IMGLYEditor")],
resources: [.process("Resources")]
),
.target(
name: "IMGLYApparelEditor",
dependencies: [.target(name: "IMGLYEditor")],
resources: [.process("Resources")]
),
.target(
name: "IMGLYPostcardEditor",
dependencies: [.target(name: "IMGLYEditor")],
resources: [.process("Resources")]
)
]
)
for target in package.targets {
let settings = target.swiftSettings ?? []
// Use this for development
// var settings = target.swiftSettings ?? []
// settings.append(.enableExperimentalFeature("StrictConcurrency")) // Xcode 15
// settings.append(.unsafeFlags(["-strict-concurrency=complete"])) // Xcode 14, don't use `unsafeFlags` in
// production!
target.swiftSettings = settings
}