-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Privacy Report #457
Merged
Merged
Add Privacy Report #457
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
07c10b3
Add Privacy Report
GLinnik21 274fb99
Add DiscSpace API
GLinnik21 13fd3a2
Add UserDefaults API
GLinnik21 08981b1
Add all necessary keys
GLinnik21 acf65e6
add NSPrivacyCollectedDataTypes
GLinnik21 f2ff341
Update with all `NSPrivacyCollectedDataTypes` to `NSPrivacyCollectedD…
GLinnik21 20f1bf1
Add PrivacyReport to SPM and CocoaPods
GLinnik21 5f7102b
Move Privacy Report to the root Pod Spec
GLinnik21 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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,134 @@ | ||
// swift-tools-version:5.1 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "KSCrash", | ||
products: [ | ||
.library( | ||
name: "KSCrash", | ||
targets: [ | ||
"KSCrash/Installations", | ||
"KSCrash/Recording", | ||
"KSCrash/Recording/Monitors", | ||
"KSCrash/Recording/Tools", | ||
"KSCrash/Reporting/Filters", | ||
"KSCrash/Reporting/Filters/Tools", | ||
"KSCrash/Reporting/Tools", | ||
"KSCrash/Reporting/Sinks", | ||
"KSCrash/swift/Basic" | ||
] | ||
) | ||
], | ||
dependencies: [ | ||
], | ||
targets: [ | ||
.target( | ||
name: "KSCrash/Installations", | ||
path: "Source/KSCrash/Installations", | ||
publicHeadersPath: ".", | ||
cxxSettings: [ | ||
.headerSearchPath("../Recording"), | ||
.headerSearchPath("../Recording/Monitors"), | ||
.headerSearchPath("../Recording/Tools"), | ||
.headerSearchPath("../Reporting/Filters"), | ||
.headerSearchPath("../Reporting/Sinks"), | ||
.headerSearchPath("../Reporting/Tools"), | ||
] | ||
), | ||
.target( | ||
name: "KSCrash/Recording", | ||
path: "Source/KSCrash/Recording", | ||
exclude: [ | ||
"Monitors", | ||
"Tools" | ||
], | ||
publicHeadersPath: ".", | ||
cxxSettings: [ | ||
.headerSearchPath("Tools"), | ||
.headerSearchPath("Monitors"), | ||
.headerSearchPath("../Reporting/Filters") | ||
] | ||
), | ||
.target( | ||
name: "KSCrash/Recording/Monitors", | ||
path: "Source/KSCrash/Recording/Monitors", | ||
publicHeadersPath: ".", | ||
cxxSettings: [ | ||
.define("GCC_ENABLE_CPP_EXCEPTIONS", to: "YES"), | ||
.headerSearchPath(".."), | ||
.headerSearchPath("../Tools"), | ||
.headerSearchPath("../../Reporting/Filters") | ||
] | ||
), | ||
.target( | ||
name: "KSCrash/Recording/Tools", | ||
path: "Source/KSCrash/Recording/Tools", | ||
publicHeadersPath: ".", | ||
cxxSettings: [ | ||
.headerSearchPath(".."), | ||
.headerSearchPath("../../swift"), | ||
.headerSearchPath("../../swift/Basic"), | ||
.headerSearchPath("../../llvm/ADT"), | ||
.headerSearchPath("../../llvm/Support"), | ||
.headerSearchPath("../../llvm/Config") | ||
] | ||
), | ||
.target( | ||
name: "KSCrash/Reporting/Filters", | ||
path: "Source/KSCrash/Reporting/Filters", | ||
exclude: [ | ||
"Tools" | ||
], | ||
publicHeadersPath: ".", | ||
cxxSettings: [ | ||
.headerSearchPath("Tools"), | ||
.headerSearchPath("../../Recording"), | ||
.headerSearchPath("../../Recording/Monitors"), | ||
.headerSearchPath("../../Recording/Tools") | ||
] | ||
), | ||
.target( | ||
name: "KSCrash/Reporting/Filters/Tools", | ||
path: "Source/KSCrash/Reporting/Filters/Tools", | ||
publicHeadersPath: ".", | ||
cxxSettings: [ | ||
.headerSearchPath("../../../Recording/Tools") | ||
] | ||
), | ||
.target( | ||
name: "KSCrash/Reporting/Tools", | ||
path: "Source/KSCrash/Reporting/Tools", | ||
publicHeadersPath: ".", | ||
cxxSettings: [ | ||
.headerSearchPath("../../Recording"), | ||
.headerSearchPath("../../Recording/Tools") | ||
] | ||
), | ||
.target( | ||
name: "KSCrash/Reporting/Sinks", | ||
path: "Source/KSCrash/Reporting/Sinks", | ||
publicHeadersPath: ".", | ||
cxxSettings: [ | ||
.headerSearchPath("../Filters"), | ||
.headerSearchPath("../Filters/Tools"), | ||
.headerSearchPath("../Tools"), | ||
.headerSearchPath("../../Recording"), | ||
.headerSearchPath("../../Recording/Tools"), | ||
.headerSearchPath("../../Recording/Monitors") | ||
] | ||
), | ||
.target( | ||
name: "KSCrash/swift/Basic", | ||
path: "Source/KSCrash/swift/Basic", | ||
publicHeadersPath: ".", | ||
cxxSettings: [ | ||
.headerSearchPath(".."), | ||
.headerSearchPath("../../llvm/ADT"), | ||
.headerSearchPath("../../llvm/Config"), | ||
.headerSearchPath("../../llvm/Support") | ||
] | ||
) | ||
], | ||
cxxLanguageStandard: .gnucxx11 | ||
) |
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,88 @@ | ||
<?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>NSPrivacyTracking</key> | ||
<false/> | ||
<key>NSPrivacyTrackingDomains</key> | ||
<array/> | ||
<key>NSPrivacyCollectedDataTypes</key> | ||
<array> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypeDeviceID</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypePerformanceData</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypeCrashData</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string> | ||
</array> | ||
</dict> | ||
</array> | ||
<key>NSPrivacyAccessedAPITypes</key> | ||
<array> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryUserDefaults</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>CA92.1</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryDiskSpace</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>7D9E.1</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>C617.1</string> | ||
</array> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, I added a kind of "monilit" privacy report in this module, since SPM modules need work. It shows the data collected in all KSCrash submodules.