-
-
Notifications
You must be signed in to change notification settings - Fork 315
/
Package.swift
38 lines (35 loc) · 1.67 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
// swift-tools-version:5.3
import PackageDescription
func getExampleTarget(name: String) -> Target {
return .target(name: "XLActionController_" + name,
dependencies: [Target.Dependency.target(name: "XLActionController")],
path: "Example/CustomActionControllers/\(name)",
sources: ["\(name).swift"],
resources: [Resource.process("\(name)Cell.xib")],
swiftSettings: [SwiftSetting.define("IMPORT_BASE_XLACTIONCONTROLLER")])
}
let package = Package(
name: "XLActionController",
platforms: [
.iOS(.v9)
],
products: [
.library(name: "XLActionController", targets: ["XLActionController"]),
.library(name: "XLActionControllerSkype", targets: ["XLActionController_Skype"]),
.library(name: "XLActionControllerPeriscope", targets: ["XLActionController_Periscope"]),
.library(name: "XLActionControllerSpotify", targets: ["XLActionController_Spotify"]),
.library(name: "XLActionControllerTweetbot", targets: ["XLActionController_Tweetbot"]),
.library(name: "XLActionControllerTwitter", targets: ["XLActionController_Twitter"]),
.library(name: "XLActionControllerYoutube", targets: ["XLActionController_Youtube"])
],
targets: [
.target(name: "XLActionController", path: "Source",
resources: [Resource.process("Resource/ActionCell.xib")]),
getExampleTarget(name: "Periscope"),
getExampleTarget(name: "Skype"),
getExampleTarget(name: "Spotify"),
getExampleTarget(name: "Tweetbot"),
getExampleTarget(name: "Twitter"),
getExampleTarget(name: "Youtube"),
]
)