From f4e3193b5730bcb4c0157a201c598e1ba72945d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Thu, 4 Apr 2024 10:06:17 +0200 Subject: [PATCH] Add needed access reasons to APIs (#7891) --- ios/Mattermost.xcodeproj/project.pbxproj | 17 ++++++++-- ios/MattermostShare/PrivacyInfo.xcprivacy | 33 +++++++++++++++++++ ios/NotificationService/PrivacyInfo.xcprivacy | 25 ++++++++++++++ ios/PrivacyInfo.xcprivacy | 25 ++++++++++++++ 4 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 ios/MattermostShare/PrivacyInfo.xcprivacy create mode 100644 ios/NotificationService/PrivacyInfo.xcprivacy create mode 100644 ios/PrivacyInfo.xcprivacy diff --git a/ios/Mattermost.xcodeproj/project.pbxproj b/ios/Mattermost.xcodeproj/project.pbxproj index fcc2e7a86..92f166c1f 100644 --- a/ios/Mattermost.xcodeproj/project.pbxproj +++ b/ios/Mattermost.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 52; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -174,6 +174,9 @@ 7FEC870128A4325D00DE96CB /* NotificationsModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FEC870028A4325D00DE96CB /* NotificationsModule.m */; }; 7FF9C03D2983E7C6005CDCF5 /* ErrorSharingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7FF9C03C2983E7C6005CDCF5 /* ErrorSharingView.swift */; }; A94508A396424B2DB778AFE9 /* OpenSans-SemiBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E5C16B14E1CE4868886A1A00 /* OpenSans-SemiBold.ttf */; }; + C9A107102BBD7C8700753CDC /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = C9A1070F2BBD7C8700753CDC /* PrivacyInfo.xcprivacy */; }; + C9A107122BBDA00200753CDC /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = C9A107112BBDA00200753CDC /* PrivacyInfo.xcprivacy */; }; + C9A107142BBDBC8F00753CDC /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = C9A107132BBDBC8F00753CDC /* PrivacyInfo.xcprivacy */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -380,6 +383,9 @@ 8DEEFB3ED6175724A2653247 /* libPods-Mattermost.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Mattermost.a"; sourceTree = BUILT_PRODUCTS_DIR; }; BC977883E2624E05975CA65B /* OpenSans-Regular.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "OpenSans-Regular.ttf"; path = "../assets/fonts/OpenSans-Regular.ttf"; sourceTree = ""; }; BE17F630DB5D41FD93F32D22 /* OpenSans-LightItalic.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "OpenSans-LightItalic.ttf"; path = "../assets/fonts/OpenSans-LightItalic.ttf"; sourceTree = ""; }; + C9A1070F2BBD7C8700753CDC /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; + C9A107112BBDA00200753CDC /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; + C9A107132BBDBC8F00753CDC /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; D4B1B363C2414DA19C1AC521 /* OpenSans-Bold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "OpenSans-Bold.ttf"; path = "../assets/fonts/OpenSans-Bold.ttf"; sourceTree = ""; }; E5C16B14E1CE4868886A1A00 /* OpenSans-SemiBold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "OpenSans-SemiBold.ttf"; path = "../assets/fonts/OpenSans-SemiBold.ttf"; sourceTree = ""; }; EB4F0DF36537B0B21BE962FB /* Pods-Mattermost.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Mattermost.debug.xcconfig"; path = "Target Support Files/Pods-Mattermost/Pods-Mattermost.debug.xcconfig"; sourceTree = ""; }; @@ -495,6 +501,7 @@ 7F63D2C21E6DD98A001FAE12 /* Mattermost.entitlements */, 7F151D43221B082A00FAD8F3 /* Mattermost-Bridging-Header.h */, 7F0F4B0924BA173900E14C60 /* LaunchScreen.storyboard */, + C9A1070F2BBD7C8700753CDC /* PrivacyInfo.xcprivacy */, ); name = Mattermost; sourceTree = ""; @@ -845,6 +852,7 @@ 7F581F77221EEA5A0099E66B /* NotificationService.entitlements */, 7F581D34221ED5C60099E66B /* NotificationService.swift */, 7F581D36221ED5C60099E66B /* Info.plist */, + C9A107112BBDA00200753CDC /* PrivacyInfo.xcprivacy */, ); path = NotificationService; sourceTree = ""; @@ -989,6 +997,7 @@ 7FC5698828563FDB000B0905 /* ShareViewController.swift */, 7FC5698A28563FDB000B0905 /* MainInterface.storyboard */, 7FC5698D28563FDB000B0905 /* Info.plist */, + C9A107132BBDBC8F00753CDC /* PrivacyInfo.xcprivacy */, ); path = MattermostShare; sourceTree = ""; @@ -1242,6 +1251,7 @@ 58495E36BF1A4EAB93609E57 /* Metropolis-SemiBold.ttf in Resources */, A94508A396424B2DB778AFE9 /* OpenSans-SemiBold.ttf in Resources */, 672D98A529F1927F004228D6 /* InfoPlist.strings in Resources */, + C9A107102BBD7C8700753CDC /* PrivacyInfo.xcprivacy in Resources */, 02860A1AC3334896837E96B7 /* OpenSans-SemiBoldItalic.ttf in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -1250,6 +1260,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + C9A107122BBDA00200753CDC /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1316,6 +1327,7 @@ 7FD4825C2864DC4200A5B18B /* compass-icons.ttf in Resources */, 7FD482292864D69700A5B18B /* Assets.xcassets in Resources */, 672D98A829F1927F004228D6 /* InfoPlist.strings in Resources */, + C9A107142BBDBC8F00753CDC /* PrivacyInfo.xcprivacy in Resources */, 7FC5698C28563FDB000B0905 /* MainInterface.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -1434,7 +1446,7 @@ ); name = "[CP] Copy Pods Resources"; outputPaths = ( - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/PrivacyInfo.xcprivacy", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/CocoaLumberjackPrivacy.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AntDesign.ttf", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Entypo.ttf", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EvilIcons.ttf", @@ -1456,6 +1468,7 @@ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Zocial.ttf", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SDWebImage.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/PrivacyInfo.xcprivacy", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; diff --git a/ios/MattermostShare/PrivacyInfo.xcprivacy b/ios/MattermostShare/PrivacyInfo.xcprivacy new file mode 100644 index 000000000..0cfc1d62f --- /dev/null +++ b/ios/MattermostShare/PrivacyInfo.xcprivacy @@ -0,0 +1,33 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + 3B52.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryDiskSpace + NSPrivacyAccessedAPITypeReasons + + E174.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + AC6B.1 + + + + + diff --git a/ios/NotificationService/PrivacyInfo.xcprivacy b/ios/NotificationService/PrivacyInfo.xcprivacy new file mode 100644 index 000000000..628ec2dc3 --- /dev/null +++ b/ios/NotificationService/PrivacyInfo.xcprivacy @@ -0,0 +1,25 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryDiskSpace + NSPrivacyAccessedAPITypeReasons + + E174.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + AC6B.1 + + + + + diff --git a/ios/PrivacyInfo.xcprivacy b/ios/PrivacyInfo.xcprivacy new file mode 100644 index 000000000..fdf50296f --- /dev/null +++ b/ios/PrivacyInfo.xcprivacy @@ -0,0 +1,25 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryDiskSpace + NSPrivacyAccessedAPITypeReasons + + E174.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + 3B52.1 + + + + +