diff --git a/packages/default-storage/.gitignore b/packages/default-storage/.gitignore index 0d0d1d32..4403cf29 100644 --- a/packages/default-storage/.gitignore +++ b/packages/default-storage/.gitignore @@ -17,5 +17,5 @@ msbuild.binlog buck-out/ \.buckd/ *.keystore - - +xcuserdata +xcshareddata diff --git a/packages/default-storage/RNCAsyncStorage.podspec b/packages/default-storage/RNCAsyncStorage.podspec index 95085c49..38a86fd9 100644 --- a/packages/default-storage/RNCAsyncStorage.podspec +++ b/packages/default-storage/RNCAsyncStorage.podspec @@ -15,6 +15,7 @@ Pod::Spec.new do |s| s.source = { :git => "https://github.com/react-native-async-storage/async-storage.git", :tag => "v#{s.version}" } s.source_files = "ios/**/*.{h,m,mm}" + s.resource_bundles = { "RNCAsyncStorage_resources" => "ios/PrivacyInfo.xcprivacy" } if fabric_enabled folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' diff --git a/packages/default-storage/ios/PrivacyInfo.xcprivacy b/packages/default-storage/ios/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..fe840a04 --- /dev/null +++ b/packages/default-storage/ios/PrivacyInfo.xcprivacy @@ -0,0 +1,17 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + C617.1 + + + + + diff --git a/packages/default-storage/ios/RNCAsyncStorage.xcodeproj/project.pbxproj b/packages/default-storage/ios/RNCAsyncStorage.xcodeproj/project.pbxproj index 667fdff8..da78ea13 100644 --- a/packages/default-storage/ios/RNCAsyncStorage.xcodeproj/project.pbxproj +++ b/packages/default-storage/ios/RNCAsyncStorage.xcodeproj/project.pbxproj @@ -11,7 +11,7 @@ 1990B97B223993B0009E5EA1 /* RNCAsyncStorageDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 1990B9402233FE3A009E5EA1 /* RNCAsyncStorageDelegate.h */; }; 747102F0243FFB7400D4F466 /* RNCAsyncStorage.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = B3E7B5881CC2AC0600A0062D /* RNCAsyncStorage.h */; }; 747102F1243FFB7400D4F466 /* RNCAsyncStorageDelegate.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 1990B9402233FE3A009E5EA1 /* RNCAsyncStorageDelegate.h */; }; - B3E7B58A1CC2AC0600A0062D /* RNCAsyncStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNCAsyncStorage.m */; }; + E29A30832BA9DF6000E66900 /* RNCAsyncStorage.mm in Sources */ = {isa = PBXBuildFile; fileRef = E29A30822BA9DF6000E66900 /* RNCAsyncStorage.mm */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -32,7 +32,8 @@ 134814201AA4EA6300B7C361 /* libRNCAsyncStorage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNCAsyncStorage.a; sourceTree = BUILT_PRODUCTS_DIR; }; 1990B9402233FE3A009E5EA1 /* RNCAsyncStorageDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNCAsyncStorageDelegate.h; sourceTree = ""; }; B3E7B5881CC2AC0600A0062D /* RNCAsyncStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNCAsyncStorage.h; sourceTree = ""; }; - B3E7B5891CC2AC0600A0062D /* RNCAsyncStorage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNCAsyncStorage.m; sourceTree = ""; }; + E29A30822BA9DF6000E66900 /* RNCAsyncStorage.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RNCAsyncStorage.mm; sourceTree = ""; }; + E29A30842BA9E0E600E66900 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -57,8 +58,9 @@ 58B511D21A9E6C8500147676 = { isa = PBXGroup; children = ( + E29A30842BA9E0E600E66900 /* PrivacyInfo.xcprivacy */, B3E7B5881CC2AC0600A0062D /* RNCAsyncStorage.h */, - B3E7B5891CC2AC0600A0062D /* RNCAsyncStorage.m */, + E29A30822BA9DF6000E66900 /* RNCAsyncStorage.mm */, 1990B9402233FE3A009E5EA1 /* RNCAsyncStorageDelegate.h */, 134814211AA4EA7D00B7C361 /* Products */, ); @@ -134,7 +136,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - B3E7B58A1CC2AC0600A0062D /* RNCAsyncStorage.m in Sources */, + E29A30832BA9DF6000E66900 /* RNCAsyncStorage.mm in Sources */, ); runOnlyForDeploymentPostprocessing = 0; };