-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from IdeasOnCanvas/enhancement/privacyManifest
Add PrivacyInfo.xcprivacy
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
21
Sources/AppReceiptValidator/Resources/PrivacyInfo.xcprivacy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |