Skip to content

Commit

Permalink
[ObjC] add privacy manifests to grpc podspec (grpc#35042)
Browse files Browse the repository at this point in the history
Not sure if we need to do the same for all the podspec files.

Will create a separate PR for swift package.

Closes grpc#35042

COPYBARA_INTEGRATE_REVIEW=grpc#35042 from HannahShiSFB:privacy-manifests c9b19d3
PiperOrigin-RevId: 588937122
  • Loading branch information
HannahShiSFB authored and copybara-github committed Dec 8, 2023
1 parent 8cfce72 commit 70acb34
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gRPC.podspec

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions src/objective-c/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?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>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
</dict>
</array>
</dict>
</plist>
2 changes: 2 additions & 0 deletions templates/gRPC.podspec.template
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
:tag => "v#{version}",
}

s.resource = 'src/objective-c/PrivacyInfo.xcprivacy'

name = 'GRPCClient'
s.module_name = name
s.header_dir = name
Expand Down

0 comments on commit 70acb34

Please sign in to comment.