forked from maplibre/swiftui-dsl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
82 lines (78 loc) · 2.69 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
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import CompilerPluginSupport
import PackageDescription
let package = Package(
name: "MapLibreSwiftUI",
platforms: [
.iOS(.v15),
.macOS(.v12),
],
products: [
.library(
name: "MapLibreSwiftUI",
targets: ["MapLibreSwiftUI"]
),
.library(
name: "MapLibreSwiftDSL",
targets: ["MapLibreSwiftDSL"]
),
],
dependencies: [
.package(url: "https://github.com/maplibre/maplibre-gl-native-distribution.git", from: "6.8.1"),
.package(url: "https://github.com/stadiamaps/maplibre-swift-macros.git", from: "0.0.5"),
// Testing
.package(url: "https://github.com/Kolos65/Mockable.git", exact: "0.0.10"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.17.2"),
],
targets: [
.target(
name: "MapLibreSwiftUI",
dependencies: [
.target(name: "InternalUtils"),
.target(name: "MapLibreSwiftDSL"),
.product(name: "MapLibre", package: "maplibre-gl-native-distribution"),
.product(name: "Mockable", package: "Mockable"),
],
swiftSettings: [
.define("MOCKING", .when(configuration: .debug)),
.enableExperimentalFeature("StrictConcurrency"),
]
),
.target(
name: "MapLibreSwiftDSL",
dependencies: [
.target(name: "InternalUtils"),
.product(name: "MapLibre", package: "maplibre-gl-native-distribution"),
.product(name: "MapLibreSwiftMacros", package: "maplibre-swift-macros"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]
),
.target(
name: "InternalUtils",
dependencies: [
.product(name: "MapLibre", package: "maplibre-gl-native-distribution"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]
),
// MARK: Tests
.testTarget(
name: "MapLibreSwiftUITests",
dependencies: [
"MapLibreSwiftUI",
.product(name: "MockableTest", package: "Mockable"),
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
]
),
.testTarget(
name: "MapLibreSwiftDSLTests",
dependencies: [
"MapLibreSwiftDSL",
]
),
]
)