Skip to content

Commit

Permalink
add privacy manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayagura committed Mar 8, 2024
1 parent a1678f1 commit 54567d6
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ let package = Package(
"Info.plist"
],
resources: [
.process("Assets.xcassets")
.process("Assets.xcassets"),
.process("PrivacyInfo.xcprivacy")
]
)
]
Expand Down
4 changes: 4 additions & 0 deletions YJLoginSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand Down Expand Up @@ -97,6 +98,7 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
636D634D2B85F855005C348D /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
B10562CB2398A62D00359322 /* Data+base64url.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Data+base64url.swift"; sourceTree = "<group>"; };
B10562CD2398C00000359322 /* SecureRandom.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecureRandom.swift; sourceTree = "<group>"; };
B10FD9F022FC33820048A4B7 /* LoginButtonTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginButtonTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -266,6 +268,7 @@
B1D5762522DC4EA500A85071 /* Assets.xcassets */,
B1DCE1DE22B263F2005F5703 /* Info.plist */,
B10562CD2398C00000359322 /* SecureRandom.swift */,
636D634D2B85F855005C348D /* PrivacyInfo.xcprivacy */,
);
path = YJLoginSDK;
sourceTree = "<group>";
Expand Down Expand Up @@ -415,6 +418,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
636D634E2B85F855005C348D /* PrivacyInfo.xcprivacy in Resources */,
B1D5762622DC4EA500A85071 /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
1 change: 1 addition & 0 deletions YJLoginSDK/Constant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
45 changes: 45 additions & 0 deletions YJLoginSDK/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?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>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeEmailAddress</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePhoneNumber</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
</dict>
</plist>
2 changes: 1 addition & 1 deletion YJLoginSDKTests/AuthenticationProcessTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 54567d6

Please sign in to comment.