From 7de3460cb358d6a04e10be36a5fd2b1cc1909ce3 Mon Sep 17 00:00:00 2001 From: zeroskylian Date: Thu, 10 Apr 2025 19:39:10 +0800 Subject: [PATCH 1/3] pref: add privacy info --- .../contents.xcworkspacedata | 7 ++++++ Package.swift | 6 ++--- Sources/PrivacyInfo.xcprivacy | 24 +++++++++++++++++++ 3 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata create mode 100644 Sources/PrivacyInfo.xcprivacy diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Package.swift b/Package.swift index 1b23bb7..574db01 100644 --- a/Package.swift +++ b/Package.swift @@ -1,17 +1,17 @@ -// swift-tools-version:5.0 +// swift-tools-version:5.6 import PackageDescription let package = Package( name: "Then", platforms: [ - .macOS(.v10_10), .iOS(.v9), .tvOS(.v9), .watchOS(.v2) + .macOS(.v11), .iOS(.v11), .tvOS(.v12), .watchOS(.v2) ], products: [ .library(name: "Then", targets: ["Then"]), ], targets: [ - .target(name: "Then"), + .target(name: "Then", path: "Sources", resources: [.copy("PrivacyInfo.xcprivacy")]), .testTarget(name: "ThenTests", dependencies: ["Then"]), ] ) diff --git a/Sources/PrivacyInfo.xcprivacy b/Sources/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..77fd80a --- /dev/null +++ b/Sources/PrivacyInfo.xcprivacy @@ -0,0 +1,24 @@ + + + + + NSPrivacyTracking + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPITypeReasons + + CA92.1 + 1C8F.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + + + + From 9b6becba90d7b8a206ef773fbe0d63f82a61e927 Mon Sep 17 00:00:00 2001 From: zeroskylian Date: Thu, 10 Apr 2025 19:40:04 +0800 Subject: [PATCH 2/3] pref: upgrade watch os version --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 574db01..e03661b 100644 --- a/Package.swift +++ b/Package.swift @@ -5,7 +5,7 @@ import PackageDescription let package = Package( name: "Then", platforms: [ - .macOS(.v11), .iOS(.v11), .tvOS(.v12), .watchOS(.v2) + .macOS(.v11), .iOS(.v11), .tvOS(.v12), .watchOS(.v5) ], products: [ .library(name: "Then", targets: ["Then"]), From 03aabb78e091f7dcc9a60fdf520c84b8f1901325 Mon Sep 17 00:00:00 2001 From: zeroskylian Date: Thu, 15 Oct 2026 16:16:34 +0800 Subject: [PATCH 3/3] feat: update app target --- Package.swift | 2 +- Sources/PrivacyInfo.xcprivacy | 12 +----------- Then.podspec | 9 +++++---- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/Package.swift b/Package.swift index 78ae254..1d4c177 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.6 +// swift-tools-version:5.9 import PackageDescription diff --git a/Sources/PrivacyInfo.xcprivacy b/Sources/PrivacyInfo.xcprivacy index 77fd80a..6af1641 100644 --- a/Sources/PrivacyInfo.xcprivacy +++ b/Sources/PrivacyInfo.xcprivacy @@ -9,16 +9,6 @@ NSPrivacyTrackingDomains NSPrivacyAccessedAPITypes - - - NSPrivacyAccessedAPITypeReasons - - CA92.1 - 1C8F.1 - - NSPrivacyAccessedAPIType - NSPrivacyAccessedAPICategoryUserDefaults - - + diff --git a/Then.podspec b/Then.podspec index a368947..bccac27 100644 --- a/Then.podspec +++ b/Then.podspec @@ -8,11 +8,12 @@ Pod::Spec.new do |s| s.source = { :git => "https://github.com/devxoul/Then.git", :tag => s.version.to_s } s.source_files = "Sources/Then/*.swift" + s.resource_bundles = {"Then" => ["Sources/PrivacyInfo.xcprivacy"]} s.requires_arc = true s.swift_version = "5.0" - s.ios.deployment_target = "9.0" - s.osx.deployment_target = "10.9" - s.tvos.deployment_target = "9.0" - s.watchos.deployment_target = "2.0" + s.ios.deployment_target = "15.0" + s.osx.deployment_target = "12.0" + s.tvos.deployment_target = "15.0" + s.watchos.deployment_target = "9.0" end