-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix: Validate PrivacyInfo.xcprivacy and warn users of required missing privacy parameters. #152
Merged
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
f77363d
fix break changes
lucas-zimerman fc75313
update changelog
lucas-zimerman 1c37348
bump andorid api minimum version
lucas-zimerman 0628c32
update readme
lucas-zimerman 55869ac
workflow changes
lucas-zimerman 8de6ecc
test old version
lucas-zimerman b58f047
wrong action order
lucas-zimerman bf19359
install java on both machines
lucas-zimerman aebb0ac
add privacyinfo script
lucas-zimerman 29cc5b6
add changelog
lucas-zimerman 6414254
proper name for the privacy info from the sample
lucas-zimerman 7b74418
code cleanup
lucas-zimerman 39f5a65
add install step for xamarin
lucas-zimerman da76c5e
correct branch number
lucas-zimerman 5b41df9
remove uwp action
lucas-zimerman a951b6e
typo install ios on ios step
lucas-zimerman f659eb5
test
lucas-zimerman 2ea7675
try previous VM
lucas-zimerman 5ea41aa
ignore uwp projects
lucas-zimerman 9382c42
ignore uwp projects
lucas-zimerman 8271055
test
lucas-zimerman d4b189f
try install xamarin mac from dotnet
lucas-zimerman 6d3813f
remove UWP projects build from AnyCPU
lucas-zimerman 1d49a77
remove dotnet install
lucas-zimerman 4267dc7
add ios
lucas-zimerman a4fc42d
install new SDK for sample
lucas-zimerman 86e7bb7
test restore x64
lucas-zimerman 1ca14df
Update .gitignore
lucas-zimerman bb1bf68
Add Xamarin setup for macos
lucas-zimerman afe0097
test
lucas-zimerman 7cf647f
Check if it is working on macos 13
lucas-zimerman aef5b25
Create Skip.UWP.MacOs.props
lucas-zimerman 04e1bf9
Update Directory.Build.props
lucas-zimerman f3dc391
Update build.yaml
lucas-zimerman 5910c4b
manually include builds
lucas-zimerman 3fd6c49
only build uwp on windows
lucas-zimerman af34131
use full path
lucas-zimerman 7404ae7
dont load scripts on other levels than root
lucas-zimerman 9b17fcf
let all projects know the targets but only run them on the root folder
lucas-zimerman 40c0f80
use same method that sentry dotnet uses for different platforms
lucas-zimerman 3c0e4cd
nit
lucas-zimerman bfece98
fix format
lucas-zimerman 7c58628
remove another uwp project from macos
lucas-zimerman 152d2c9
remove junk
lucas-zimerman 16efe24
rebase to patch branch
lucas-zimerman 4566779
Update .gitignore
lucas-zimerman bd55e94
Merge branch 'lucas-zimerman-patch-1' of https://github.com/getsentry…
lucas-zimerman 108f1e0
Merge branch 'feat/xamarin-privacy-info' of https://github.com/getsen…
lucas-zimerman a1c66ea
add NSPrivacyCollectedDataTypes
lucas-zimerman 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 | ||||
---|---|---|---|---|---|---|
@@ -1,5 +1,80 @@ | ||||||
# Changelog | ||||||
|
||||||
## Unreleased | ||||||
|
||||||
### Fixes | ||||||
|
||||||
- Validate PrivacyInfo.xcprivacy and warn users of required missing privacy parameters ([#152](https://github.com/getsentry/sentry-xamarin/pull/152)) | ||||||
|
||||||
Due to a requirement by apple, all Projects will require a ([Privacy Manifest file](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files)). Sentry will automatically patch your project with the required fields by Sentry if no privacy manifest file is provided. Otherwise, it will validate your privacy manifest file for the required fields by Sentry and warn you during the build time if the required keys are present or not when building an iOS project. | ||||||
Below you can find a snippet of the minimum required privacy manifest required by Sentry Xamarin: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
```xml | ||||||
<?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>NSPrivacyCollectedDataTypeCrashData</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>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>NSPrivacyAccessedAPICategoryFileTimestamp</string> | ||||||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||||||
<array> | ||||||
<string>C617.1</string> | ||||||
</array> | ||||||
</dict> | ||||||
<dict> | ||||||
<key>NSPrivacyAccessedAPIType</key> | ||||||
<string>NSPrivacyAccessedAPICategorySystemBootTime</string> | ||||||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||||||
<array> | ||||||
<string>35F9.1</string> | ||||||
</array> | ||||||
</dict> | ||||||
</array> | ||||||
</dict> | ||||||
</plist> | ||||||
``` | ||||||
|
||||||
## 2.0.0 | ||||||
|
||||||
### Sentry Self-hosted Compatibility | ||||||
|
@@ -411,4 +486,4 @@ Also available via NuGet: | |||||
|
||||||
[Sentry](https://www.nuget.org/packages/Sentry/) | ||||||
[Sentry.Xamarin](https://www.nuget.org/packages/Sentry.Xamarin) | ||||||
[Sentry.Xamarin.Forms](https://www.nuget.org/packages/Sentry.Xamarin.Forms) | ||||||
[Sentry.Xamarin.Forms](https://www.nuget.org/packages/Sentry.Xamarin.Forms) |
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
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,49 @@ | ||
<?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>Some Key Group</key> | ||
<array> | ||
<dict> | ||
<key>test</key> | ||
<string>test</string> | ||
</dict> | ||
<dict> | ||
<key>test</key> | ||
<string>test</string> | ||
</dict> | ||
</array> | ||
|
||
<key>NSPrivacyAccessedAPITypes</key> | ||
<array> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>C617.1</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategorySystemBootTime</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>35F9.1</string> | ||
</array> | ||
</dict> | ||
</array> | ||
|
||
<key>Another Key Group</key> | ||
<array> | ||
<dict> | ||
<key>test</key> | ||
<string>test</string> | ||
</dict> | ||
<dict> | ||
<key>test</key> | ||
<string>test</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
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,17 @@ | ||
{ | ||
"solution": { | ||
"path": "Sentry.Xamarin.sln", | ||
"projects": [ | ||
"Src\\Sentry.Xamarin\\Sentry.Xamarin.csproj", | ||
"Src\\Sentry.Xamarin.Forms\\Sentry.Xamarin.Forms.csproj", | ||
"Samples\\Sample.Xamarin.Core\\Sample.Xamarin.Core.csproj", | ||
"Samples\\Sample.Xamarin.UWP\\Sample.Xamarin.UWP.csproj", | ||
"Samples\\Sample.Xamarin.Mac\\Sample.Xamarin.Mac.csproj", | ||
"Samples\\Forms\\com.sentry.ovenlibrary\\com.sentry.ovenlibrary.csproj", | ||
"Samples\\Sample.Xamarin.Droid\\Sample.Xamarin.Droid.csproj", | ||
"Tests\\Sentry.Xamarin.Forms.Testing\\Sentry.Xamarin.Forms.Testing.csproj", | ||
"Tests\\Sentry.Xamarin.Tests\\Sentry.Xamarin.Tests.csproj", | ||
"Tests\\Sentry.Xamarin.Forms.UWP.Tests\\Sentry.Xamarin.Forms.UWP.Tests.csproj" | ||
] | ||
} | ||
} |
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,15 @@ | ||
{ | ||
"solution": { | ||
"path": "Sentry.Xamarin.sln", | ||
"projects": [ | ||
"Src\\Sentry.Xamarin\\Sentry.Xamarin.csproj", | ||
"Src\\Sentry.Xamarin.Forms\\Sentry.Xamarin.Forms.csproj", | ||
"Samples\\Sample.Xamarin.Core\\Sample.Xamarin.Core.csproj", | ||
"Samples\\Sample.Xamarin.Mac\\Sample.Xamarin.Mac.csproj", | ||
"Samples\\Forms\\com.sentry.ovenlibrary\\com.sentry.ovenlibrary.csproj", | ||
"Samples\\Sample.Xamarin.Droid\\Sample.Xamarin.Droid.csproj", | ||
"Tests\\Sentry.Xamarin.Forms.Testing\\Sentry.Xamarin.Forms.Testing.csproj", | ||
"Tests\\Sentry.Xamarin.Tests\\Sentry.Xamarin.Tests.csproj" | ||
] | ||
} | ||
} |
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
Oops, something went wrong.
Oops, something went wrong.
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.