-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPackage.swift
83 lines (78 loc) · 3.57 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
83
// swift-tools-version: 5.10
// WARNING:
// This file is automatically generated.
// Do not edit it by hand because the contents will be replaced.
import PackageDescription
let package = Package(
name: "DevToys.swiftpm",
platforms: [
.iOS("17.2")
],
products: [],
dependencies: [
.package(url: "https://github.com/kkebo/swift-log-playground", from: "0.1.4"),
.package(url: "https://github.com/kkebo/SwiftJSONFormatter", branch: "origin/fix-build"),
.package(url: "https://github.com/auth0/JWTDecode.swift", from: "3.2.0"),
.package(url: "https://github.com/kkebo/swift-html-entities", branch: "origin/issues/67"),
.package(url: "https://github.com/Losiowaty/PlaygroundTester", from: "0.3.1"),
.package(url: "https://github.com/lukaskubanek/LoremSwiftum", from: "2.2.1"),
.package(url: "https://github.com/JohnSundell/Ink", from: "0.6.0"),
.package(url: "https://github.com/kkebo/swift-uniyaml", branch: "origin/issues/1"),
.package(url: "https://github.com/mchakravarty/CodeEditorView", from: "0.13.0"),
.package(url: "https://github.com/apple/swift-collections", from: "1.1.4"),
],
targets: [
.executableTarget(
name: "DevToysApp",
dependencies: [
.product(name: "LoggingPlayground", package: "swift-log-playground"),
.product(name: "SwiftJSONFormatter", package: "SwiftJSONFormatter"),
.product(name: "JWTDecode", package: "JWTDecode.swift"),
.product(name: "HTMLEntities", package: "swift-html-entities"),
.product(name: "PlaygroundTester", package: "PlaygroundTester"),
.product(name: "LoremSwiftum", package: "LoremSwiftum"),
.product(name: "Ink", package: "Ink"),
.product(name: "UniYAML", package: "swift-uniyaml"),
.product(name: "CodeEditorView", package: "CodeEditorView"),
.product(name: "OrderedCollections", package: "swift-collections"),
],
swiftSettings: [
.unsafeFlags(["-Xfrontend", "-warn-long-function-bodies=100"], .when(configuration: .debug)),
.unsafeFlags(["-Xfrontend", "-warn-long-expression-type-checking=100"], .when(configuration: .debug)),
.enableExperimentalFeature("StrictConcurrency"),
.unsafeFlags(["-Xfrontend", "-enable-actor-data-race-checks"]),
.define("DEBUG", .when(configuration: .debug)),
.define("TESTING_ENABLED", .when(configuration: .debug)),
.enableUpcomingFeature("BareSlashRegexLiterals"),
.enableUpcomingFeature("ExistentialAny"),
]
)
]
)
#if canImport(AppleProductTypes)
import AppleProductTypes
package.products += [
.iOSApplication(
name: "DevToys",
targets: ["DevToysApp"],
bundleIdentifier: "xyz.kebo.DevToysForiPad",
teamIdentifier: "X4678G5DL2",
displayVersion: "1.0.0",
bundleVersion: "22",
appIcon: .asset("AppIcon"),
accentColor: .presetColor(.purple),
supportedDeviceFamilies: [
.pad,
.phone,
],
supportedInterfaceOrientations: [
.portrait,
.landscapeRight,
.landscapeLeft,
.portraitUpsideDown(.when(deviceFamilies: [.pad])),
],
appCategory: .developerTools,
additionalInfoPlistContentFilePath: "Info.plist"
)
]
#endif