forked from material-components/material-components-ios
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
50 lines (47 loc) · 1.25 KB
/
Package.swift
File metadata and controls
50 lines (47 loc) · 1.25 KB
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
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "material-components-ios",
defaultLocalization: "en",
platforms: [
.iOS(.v13)
],
products: [
// This is what your app imports:
.library(name: "material", targets: ["material"]),
// Optional: expose the raw module too:
.library(name: "MaterialComponents", targets: ["MaterialComponents"]),
],
dependencies: [
// Add deps here later if you decide to pull them in as SwiftPM deps
],
targets: [
.target(
name: "MaterialComponents",
path: ".",
sources: [
"components/Buttons/src",
"components/TextFields/src",
"components/Themes/src",
"components/Typography/src",
"components/TextControls/src"
],
publicHeadersPath: "spm/include",
cSettings: [
// So the umbrella header can import "components/..." paths:
.headerSearchPath("."),
.headerSearchPath("components"),
],
linkerSettings: [
.linkedFramework("UIKit"),
.linkedFramework("QuartzCore"),
.linkedFramework("CoreGraphics"),
]
),
.target(
name: "material",
dependencies: ["MaterialComponents"],
path: "Sources/material"
),
]
)