From 54567d683f2c66a1523cc3335a90e57f8fb62815 Mon Sep 17 00:00:00 2001 From: ayagura Date: Fri, 8 Mar 2024 18:05:26 +0900 Subject: [PATCH] add privacy manifests --- Package.swift | 3 +- YJLoginSDK.xcodeproj/project.pbxproj | 4 ++ YJLoginSDK/Constant.swift | 1 + YJLoginSDK/PrivacyInfo.xcprivacy | 45 +++++++++++++++++++ .../AuthenticationProcessTests.swift | 2 +- 5 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 YJLoginSDK/PrivacyInfo.xcprivacy diff --git a/Package.swift b/Package.swift index fc6f974..c86b030 100644 --- a/Package.swift +++ b/Package.swift @@ -18,7 +18,8 @@ let package = Package( "Info.plist" ], resources: [ - .process("Assets.xcassets") + .process("Assets.xcassets"), + .process("PrivacyInfo.xcprivacy") ] ) ] diff --git a/YJLoginSDK.xcodeproj/project.pbxproj b/YJLoginSDK.xcodeproj/project.pbxproj index f3beee4..a753841 100644 --- a/YJLoginSDK.xcodeproj/project.pbxproj +++ b/YJLoginSDK.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + 636D634E2B85F855005C348D /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 636D634D2B85F855005C348D /* PrivacyInfo.xcprivacy */; }; 83B51BA22ACD50EA001FD932 /* YJLoginSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B1DCE1DA22B263F2005F5703 /* YJLoginSDK.framework */; }; 83B51BA32ACD50EA001FD932 /* YJLoginSDK.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = B1DCE1DA22B263F2005F5703 /* YJLoginSDK.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 83B51BA62ACD50F5001FD932 /* YJLoginSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B1DCE1DA22B263F2005F5703 /* YJLoginSDK.framework */; }; @@ -97,6 +98,7 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 636D634D2B85F855005C348D /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; B10562CB2398A62D00359322 /* Data+base64url.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Data+base64url.swift"; sourceTree = ""; }; B10562CD2398C00000359322 /* SecureRandom.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecureRandom.swift; sourceTree = ""; }; B10FD9F022FC33820048A4B7 /* LoginButtonTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginButtonTests.swift; sourceTree = ""; }; @@ -266,6 +268,7 @@ B1D5762522DC4EA500A85071 /* Assets.xcassets */, B1DCE1DE22B263F2005F5703 /* Info.plist */, B10562CD2398C00000359322 /* SecureRandom.swift */, + 636D634D2B85F855005C348D /* PrivacyInfo.xcprivacy */, ); path = YJLoginSDK; sourceTree = ""; @@ -415,6 +418,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 636D634E2B85F855005C348D /* PrivacyInfo.xcprivacy in Resources */, B1D5762622DC4EA500A85071 /* Assets.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/YJLoginSDK/Constant.swift b/YJLoginSDK/Constant.swift index 0d2f35b..aafca00 100644 --- a/YJLoginSDK/Constant.swift +++ b/YJLoginSDK/Constant.swift @@ -7,6 +7,7 @@ import Foundation internal struct Constant { + // swiftlint:disable:next force_unwrapping static let issuer = URL(string: "https://auth.login.yahoo.co.jp/yconnect/v2")! static let authorizationPath = "/authorization" static let appAuthPath = "/appauth" diff --git a/YJLoginSDK/PrivacyInfo.xcprivacy b/YJLoginSDK/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..fea580a --- /dev/null +++ b/YJLoginSDK/PrivacyInfo.xcprivacy @@ -0,0 +1,45 @@ + + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeEmailAddress + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePhoneNumber + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeUserID + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + + diff --git a/YJLoginSDKTests/AuthenticationProcessTests.swift b/YJLoginSDKTests/AuthenticationProcessTests.swift index d727ffe..597e28d 100644 --- a/YJLoginSDKTests/AuthenticationProcessTests.swift +++ b/YJLoginSDKTests/AuthenticationProcessTests.swift @@ -91,7 +91,7 @@ class AuthenticationProcessTests: XCTestCase { } } process?.start(request: request) - self.wait(for: [expect], timeout: 2.0) + self.wait(for: [expect], timeout: 10.0) } func test_response_failed_invalid_state() {