Skip to content

Commit

Permalink
Merge pull request #95 from IdeasOnCanvas/enhancement/privacyManifest
Browse files Browse the repository at this point in the history
Add PrivacyInfo.xcprivacy
  • Loading branch information
weichsel authored Sep 28, 2023
2 parents 439b963 + 3e25023 commit 49e95b1
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
47 changes: 47 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// swift-tools-version:5.9

import PackageDescription

let package = Package(
name: "AppReceiptValidator",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.tvOS(.v13),
// .watchOS(.v6) watchOS doesn't have UIDevice.current so we can parse, but not validate hash, also, it cannot run XCTest
],
products: [
.library(name: "AppReceiptValidator", targets: ["AppReceiptValidator"]),
.library(name: "AppReceiptValidatorDynamic", type: .dynamic, targets: ["AppReceiptValidator"]),
],
dependencies: [
.package(url: "https://github.com/IdeasOnCanvas/ASN1Decoder", from: "1.8.2"),
.package(url: "https://github.com/apple/swift-crypto", from: "1.1.0")
],
targets: [
.target(name: "AppReceiptValidator",
dependencies: ["ASN1Decoder",
.product(name: "Crypto", package: "swift-crypto")],
resources: [
.copy("Resources/AppleIncRootCertificate.cer"),
.copy("Resources/PrivacyInfo.xcprivacy")
]
),
.testTarget(name: "AppReceiptValidatorTests",
dependencies: ["AppReceiptValidator"],
resources: [
.copy("Resources/deprecatedSinglesTypeExpiredAppleCert_receipt.b64"),
.copy("Resources/grandUnifiedExpiredAppleCert_receipt.b64"),
.copy("Resources/hannes_mac_mindnode_receipt"),
.copy("Resources/hannes_mac_mindnode_2_receipt"),
.copy("Resources/mac_mindnode_rebought_receipt"),
.copy("Resources/mindnode_ios_michaelsandbox_receipt1.b64"),
.copy("Resources/mindnode_ios_michaelsandbox_receipt2.b64"),
.copy("Resources/purchasing_experiments_sandbox_receipt.b64"),
.copy("Resources/not_a_receipt"),
.copy("Resources/mindnode_mac_sha256_receipt"),
.copy("Resources/frank4dd-cacert.der")
])
],
swiftLanguageVersions: [.v5]
)
21 changes: 21 additions & 0 deletions Sources/AppReceiptValidator/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string></string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string></string>
</array>
</dict>
</array>
</dict>
</plist>

0 comments on commit 49e95b1

Please sign in to comment.