Skip to content

Commit

Permalink
chore: add privacy declaration for NSFileModificationDate usage for t…
Browse files Browse the repository at this point in the history
…ile cache management
  • Loading branch information
salah ghanim committed May 20, 2024
1 parent 6fc7326 commit 17edde1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ios/AirMaps.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
4C99C9DF2226D8C400A8693E /* AIRWeakMapReference.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AIRWeakMapReference.h; sourceTree = "<group>"; };
4C99C9E02226D8C400A8693E /* AIRWeakMapReference.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AIRWeakMapReference.m; sourceTree = "<group>"; };
4E0A36142BFB4CF3009FCCE4 /* Resources */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Resources; path = AirGoogleMaps/Resources; sourceTree = "<group>"; };
4E0A36152BFB4E76009FCCE4 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
4E0CFBDC2B388F2B0017E126 /* RCTComponentData+Maps.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RCTComponentData+Maps.h"; sourceTree = "<group>"; };
4E0CFBDD2B388F2B0017E126 /* RCTComponentData+Maps.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "RCTComponentData+Maps.m"; sourceTree = "<group>"; };
53D31635202E723B00B55447 /* AIRMapOverlayManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AIRMapOverlayManager.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -202,6 +203,7 @@
11FA5C481C4A1296003AC2EE = {
isa = PBXGroup;
children = (
4E0A36152BFB4E76009FCCE4 /* PrivacyInfo.xcprivacy */,
9B9498A32017EF9D00158761 /* AirGoogleMaps */,
62AEC4D31FD5A0AA003225E0 /* AIRMapLocalTileOverlay.m */,
11FA5C531C4A1296003AC2EE /* AirMaps */,
Expand Down
18 changes: 18 additions & 0 deletions ios/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?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">
<!--
PrivacyInfo.xcprivacy
AirMaps
Created by Salah Ghanim on 20.05.24.
Copyright (c) 2024 react-native-maps. All rights reserved.
-->
<plist version="1.0">
<dict>
<key>NSFileModificationDate</key>
<dict>
<key>PurposeString</key>
<string>We use the file modification date to manage and invalidate cached map tiles, ensuring the map data displayed to users is up-to-date.</string>
</dict>
</dict>
</plist>
4 changes: 3 additions & 1 deletion react-native-maps.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Pod::Spec.new do |s|

s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
s.source_files = "ios/AirMaps/**/*.{h,m}"

s.resource_bundles = {
'ReactNativeMapsPrivacy' => ['ios/PrivacyInfo.xcprivacy']
}
s.dependency 'React-Core'
end

0 comments on commit 17edde1

Please sign in to comment.