From 34a1d4f81b0d29f9da23ae18a6dd3d1277f090cd Mon Sep 17 00:00:00 2001 From: Kenta Kubo Date: Sun, 30 Apr 2023 15:33:19 +0900 Subject: [PATCH] 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. --- .gitignore | 2 +- Package.swift | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 Package.swift diff --git a/.gitignore b/.gitignore index ddf7c5d..543832e 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..6c666fc --- /dev/null +++ b/Package.swift @@ -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" + ) + ] +)