Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PM-6971] Add privacy manifest file to iOS #3163

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/App/App.csproj
Original file line number Diff line number Diff line change
@@ -257,4 +257,7 @@
<None Remove="Platforms\iOS\Resources\logo_white.png" />
<None Remove="Platforms\iOS\Resources\logo%402x.png" />
</ItemGroup>
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
<BundleResource Include="Platforms\iOS\PrivacyInfo.xcprivacy" LogicalName="PrivacyInfo.xcprivacy" />
</ItemGroup>
</Project>
41 changes: 41 additions & 0 deletions src/App/Platforms/iOS/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>35F9.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>E174.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>1C8F.1</string>
</array>
</dict>
</array>
</dict>
</plist>
3 changes: 3 additions & 0 deletions src/iOS.Autofill/iOS.Autofill.csproj
Original file line number Diff line number Diff line change
@@ -179,4 +179,7 @@
<ProjectReference Include="..\Core\Core.csproj" />
<ProjectReference Include="..\iOS.Core\iOS.Core.csproj" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="..\App\Platforms\iOS\PrivacyInfo.xcprivacy" LogicalName="PrivacyInfo.xcprivacy" />
</ItemGroup>
</Project>
3 changes: 3 additions & 0 deletions src/iOS.Extension/iOS.Extension.csproj
Original file line number Diff line number Diff line change
@@ -147,4 +147,7 @@
<Link>Resources\ext-icon%403x.png</Link>
</BundleResource>
</ItemGroup>
<ItemGroup>
<BundleResource Include="..\App\Platforms\iOS\PrivacyInfo.xcprivacy" LogicalName="PrivacyInfo.xcprivacy" />
</ItemGroup>
</Project>
3 changes: 3 additions & 0 deletions src/iOS.ShareExtension/iOS.ShareExtension.csproj
Original file line number Diff line number Diff line change
@@ -110,4 +110,7 @@
<ProjectReference Include="..\Core\Core.csproj" />
<ProjectReference Include="..\iOS.Core\iOS.Core.csproj" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="..\App\Platforms\iOS\PrivacyInfo.xcprivacy" LogicalName="PrivacyInfo.xcprivacy" />
</ItemGroup>
</Project>
41 changes: 41 additions & 0 deletions src/watchOS/bitwarden/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>35F9.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>E174.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>1C8F.1</string>
</array>
</dict>
</array>
</dict>
</plist>
6 changes: 6 additions & 0 deletions src/watchOS/bitwarden/bitwarden.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -84,6 +84,8 @@
1BDBFEB3290B5D07009C78C7 /* CoreDataHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1BDBFEB2290B5D07009C78C7 /* CoreDataHelper.swift */; };
1BF5F6DB29103066002DDC0C /* CipherService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1BF5F6DA29103066002DDC0C /* CipherService.swift */; };
1BF5F6DE29103B86002DDC0C /* CipherServiceMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1BF5F6DD29103B86002DDC0C /* CipherServiceMock.swift */; };
B7A3ABF42BCEECD700A07178 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = B7A3ABF32BCEECD700A07178 /* PrivacyInfo.xcprivacy */; };
B7A3ABF52BCEECD700A07178 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = B7A3ABF32BCEECD700A07178 /* PrivacyInfo.xcprivacy */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
@@ -267,6 +269,7 @@
B78CEC832A25455400539F0D /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/Localizable.strings; sourceTree = "<group>"; };
B78CEC842A25455D00539F0D /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
B78CEC852A25456400539F0D /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Localizable.strings"; sourceTree = "<group>"; };
B7A3ABF32BCEECD700A07178 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
@@ -322,6 +325,7 @@
1B15612628B7F3D400610B9B = {
isa = PBXGroup;
children = (
B7A3ABF32BCEECD700A07178 /* PrivacyInfo.xcprivacy */,
1B5BE45D295B472C00E0C323 /* GoogleService-Info.plist */,
1B15613128B7F3D400610B9B /* bitwarden */,
1B15614128B7F3D700610B9B /* bitwarden WatchKit App */,
@@ -727,6 +731,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
B7A3ABF42BCEECD700A07178 /* PrivacyInfo.xcprivacy in Resources */,
1B15614328B7F3D800610B9B /* Assets.xcassets in Resources */,
1B5BE45F295B472C00E0C323 /* GoogleService-Info.plist in Resources */,
);
@@ -739,6 +744,7 @@
1B15615B28B7F3D900610B9B /* Preview Assets.xcassets in Resources */,
1B5BE460295B472C00E0C323 /* GoogleService-Info.plist in Resources */,
1B5AFF0729197822004478F9 /* Localizable.strings in Resources */,
B7A3ABF52BCEECD700A07178 /* PrivacyInfo.xcprivacy in Resources */,
1B15615828B7F3D900610B9B /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;

Unchanged files with check annotations Beta

namespace CommunityToolkit.Maui.Extensions;
static class VisualElementExtensions
{
internal static bool TryFindParentElementWithParentOfType<T>(this VisualElement? element, out VisualElement? result, out T? parent) where T : VisualElement

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / F-Droid Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / F-Droid Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / F-Droid Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Android (prod)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Android (prod)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Android (prod)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Android (qa)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Android (qa)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 11 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Android (qa)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
result = null;
parent = null;
return false;
}
public static Task<bool> ColorTo(this VisualElement element, Color color, uint length = 250u, Easing? easing = null)

Check warning on line 33 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 33 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 33 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / F-Droid Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 33 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Android (prod)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 33 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/Extensions/VisualElementExtensions.cs

GitHub Actions / Android (qa)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
_ = element ?? throw new ArgumentNullException(nameof(element));
});
}
internal void SetCustomAnimationTask(Func<TouchBehavior, TouchState, HoverState, int, Easing?, CancellationToken, Task>? animationTaskFactory)

Check warning on line 244 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 244 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 244 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 244 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 244 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / F-Droid Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 244 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / F-Droid Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 244 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Android (prod)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 244 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Android (prod)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 244 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Android (qa)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 244 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Android (qa)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
=> this.animationTaskFactory = animationTaskFactory;
internal void Reset()
}
}
Task<bool> SetBackgroundColor(TouchBehavior sender, TouchState touchState, HoverState hoverState, int duration, Easing? easing)

Check warning on line 411 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 411 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 411 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / F-Droid Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 411 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Android (prod)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 411 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Android (qa)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
var normalBackgroundColor = sender.NormalBackgroundColor;
var pressedBackgroundColor = sender.PressedBackgroundColor;
return element.ColorTo(color ?? Colors.Transparent, (uint)duration, easing);
}
Task<bool> SetOpacity(TouchBehavior sender, TouchState touchState, HoverState hoverState, int duration, Easing? easing)

Check warning on line 452 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 452 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 452 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / F-Droid Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 452 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Android (prod)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 452 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Android (qa)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
var normalOpacity = sender.NormalOpacity;
var pressedOpacity = sender.PressedOpacity;
element.FadeTo(opacity, (uint)Abs(duration), easing);
}
Task SetScale(TouchBehavior sender, TouchState touchState, HoverState hoverState, int duration, Easing? easing)

Check warning on line 489 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 489 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
var normalScale = sender.NormalScale;
var pressedScale = sender.PressedScale;
return animationCompletionSource.Task;
}
Task SetTranslation(TouchBehavior sender, TouchState touchState, HoverState hoverState, int duration, Easing? easing)

Check warning on line 539 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 539 in src/Core/Behaviors/PlatformBehaviors/MCTTouch/GestureManager.cs

GitHub Actions / Apple iOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
var normalTranslationX = sender.NormalTranslationX;
var pressedTranslationX = sender.PressedTranslationX;
/// <summary>
/// Occurs when a TDE user without a password obtains the password reset permission.
/// Set post login & decryption client side and by server in sync (to catch logged in users).

Check warning on line 18 in src/Core/Models/Domain/ForcePasswordResetReason.cs

GitHub Actions / F-Droid Build

XML comment has badly formed XML -- 'Whitespace is not allowed at this location.'

Check warning on line 18 in src/Core/Models/Domain/ForcePasswordResetReason.cs

GitHub Actions / Android (prod)

XML comment has badly formed XML -- 'Whitespace is not allowed at this location.'

Check warning on line 18 in src/Core/Models/Domain/ForcePasswordResetReason.cs

GitHub Actions / Android (qa)

XML comment has badly formed XML -- 'Whitespace is not allowed at this location.'
/// </summary>
TdeUserWithoutPasswordHasPasswordResetPermission,
}