-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
57 lines (55 loc) · 1.62 KB
/
Package.swift
File metadata and controls
57 lines (55 loc) · 1.62 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
51
52
53
54
55
56
57
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SwiftPermissions",
defaultLocalization: "en",
platforms: [
.iOS(.v15),
.macOS(.v12),
.tvOS(.v15),
.watchOS(.v8)
],
products: [
// Main umbrella framework
.library(
name: "SwiftPermissions",
targets: ["SwiftPermissions"]
),
// Individual modules for specific use cases
.library(
name: "SwiftPermissionsCore",
targets: ["SwiftPermissionsCore"]
),
.library(
name: "SwiftPermissionsUI",
targets: ["SwiftPermissionsUI"]
)
],
dependencies: [],
targets: [
// Core permissions logic (no UI dependencies)
.target(
name: "SwiftPermissionsCore",
dependencies: [],
path: "Sources/SwiftPermissionsCore"
),
// SwiftUI and UI components
.target(
name: "SwiftPermissionsUI",
dependencies: ["SwiftPermissionsCore"],
path: "Sources/SwiftPermissionsUI"
),
// Main umbrella target that re-exports everything
.target(
name: "SwiftPermissions",
dependencies: ["SwiftPermissionsCore", "SwiftPermissionsUI"],
path: "Sources/SwiftPermissions"
),
.testTarget(
name: "SwiftPermissionsTests",
dependencies: ["SwiftPermissions"],
path: "Tests/SwiftPermissionsTests"
)
]
)