-
Notifications
You must be signed in to change notification settings - Fork 5
/
Package.swift
45 lines (42 loc) · 1.59 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.1
// Copyright © 2019 SpotHero, Inc. All rights reserved.
import PackageDescription
let package = Package(
name: "BarcodeHero",
platforms: [
.iOS(.v9), // minimum supported version for Xcode 12
.macOS(.v10_15), // supports AVMetaDataObject.ObjectType barcode and QR code types
// tvOS is unsupported due to lack of AVMetadataObject support
// watchOS is unsupported due to lack of CoreImage support
],
products: [
.library(name: "BarcodeHero", targets: ["BarcodeHeroCore", "BarcodeHeroUI"]),
.library(name: "BarcodeHeroCore", targets: ["BarcodeHeroCore"]),
.library(name: "BarcodeHeroUI", targets: ["BarcodeHeroUI"]),
// Dynamic Libraries
// These libraries are required due to the Xcode 11.3+ static linking bug: https://bugs.swift.org/browse/SR-12303
.library(name: "BarcodeHeroDynamic", type: .dynamic, targets: ["BarcodeHeroCore", "BarcodeHeroUI"]),
.library(name: "BarcodeHeroCoreDynamic", type: .dynamic, targets: ["BarcodeHeroCore"]),
.library(name: "BarcodeHeroUIDynamic", type: .dynamic, targets: ["BarcodeHeroUI"]),
],
dependencies: [],
targets: [
.target(
name: "BarcodeHeroCore",
dependencies: []
),
.target(
name: "BarcodeHeroUI",
dependencies: []
),
.testTarget(
name: "BarcodeHeroCoreTests",
dependencies: [
.target(name: "BarcodeHeroCore"),
]
),
],
swiftLanguageVersions: [
.v5,
]
)