Add Package.swift for Swift Playgrounds

Swift Playgrounds support is currently limited because it doesn't
support essential entitlements for DNSecure. However, this is useful
for me to modify UI with Swift Playgrounds.
This commit is contained in:
Kenta Kubo 2023-04-30 15:33:19 +09:00
parent 4b13699ddd
commit 34a1d4f81b
No known key found for this signature in database
GPG key ID: 09CE7C7A0BED6C72
2 changed files with 52 additions and 1 deletions

2
.gitignore vendored
View file

@ -47,7 +47,7 @@ playground.xcworkspace
# *.xcodeproj
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm
.swiftpm
.build/

51
Package.swift Normal file
View file

@ -0,0 +1,51 @@
// swift-tools-version: 5.8
// WARNING:
// This file is automatically generated.
// Do not edit it by hand because the contents will be replaced.
import PackageDescription
import AppleProductTypes
let package = Package(
name: "DNSecure",
platforms: [
.iOS("16.1")
],
products: [
.iOSApplication(
name: "DNSecure",
targets: ["DNSecure"],
bundleIdentifier: "xyz.kebo.DNSecure",
teamIdentifier: "X4678G5DL2",
displayVersion: "1.4.3",
bundleVersion: "19",
appIcon: .asset("AppIcon"),
accentColor: .asset("AccentColor"),
supportedDeviceFamilies: [
.pad,
.phone
],
supportedInterfaceOrientations: [
.portrait,
.landscapeRight,
.landscapeLeft,
.portraitUpsideDown(.when(deviceFamilies: [.pad]))
],
appCategory: .utilities
)
],
targets: [
.executableTarget(
name: "DNSecure",
path: "DNSecure"
),
.testTarget(
name: "DNSecureTests",
dependencies: [
"DNSecure"
],
path: "DNSecureTests"
)
]
)