Skip to content

Commit

Permalink
add privacy manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Sep 13, 2024
1 parent 8e9ba26 commit 4530a63
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion avbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,7 @@ make_universal()
[ -z "$dirs" ] && return 0
if [[ "$os" == ios* || "$os" == macos* || "$os" == osx* || "$os" == *catalyst* || "$os" == tv* || "$os" == xr* || "$os" == vision* || "$os" == watch* ]]; then
chmod +x $THIS_DIR/tools/dylib2framework.sh
cp -avf $THIS_DIR/tools/dylib2framework.sh ${dirs[0]}
cp -avf $THIS_DIR/tools/{dylib2framework.sh,PrivacyInfo.xcprivacy} ${dirs[0]}
fi
[ ${#dirs[@]} -le 1 ] && return 0
# TODO: move to a new script
Expand Down
23 changes: 23 additions & 0 deletions tools/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>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>35F9.1</string>
</array>
</dict>
</array>
</dict>
</plist>
1 change: 1 addition & 0 deletions tools/dylib2framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ gen_info_plist() {
</dict>
</plist>
EOF
cp -avf PrivacyInfo.xcprivacy ${PLIST/Info.plist/}
}

# TODO: dependencies, e.g. avcodec depends on libavutil.?.dylib
Expand Down

0 comments on commit 4530a63

Please sign in to comment.