From 79e1a3a97d0c85609ed67e7ac4563d39954fb3a2 Mon Sep 17 00:00:00 2001 From: Mike Nachbaur <74688448+mikenachbaur-okta@users.noreply.github.com> Date: Mon, 15 Apr 2024 12:35:25 -0700 Subject: [PATCH] Include a privacy manifest file (#164) --- OktaAuthNative.xcodeproj/project.pbxproj | 16 ++++++++++++++-- OktaAuthSdk.podspec | 3 ++- Package.swift | 4 ++-- Source/Resources/PrivacyInfo.xcprivacy | 14 ++++++++++++++ Source/RestAPI/Utils.swift | 2 +- 5 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 Source/Resources/PrivacyInfo.xcprivacy diff --git a/OktaAuthNative.xcodeproj/project.pbxproj b/OktaAuthNative.xcodeproj/project.pbxproj index a3b4306..c06aa28 100644 --- a/OktaAuthNative.xcodeproj/project.pbxproj +++ b/OktaAuthNative.xcodeproj/project.pbxproj @@ -129,6 +129,7 @@ A1FCB12F220A458F0026F522 /* OktaAPIMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = A1FCB12E220A458F0026F522 /* OktaAPIMock.swift */; }; CB64D340250AE1AB00609CC6 /* OktaURLSessionMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB64D33F250AE1AB00609CC6 /* OktaURLSessionMock.swift */; }; CBC143F5250975B90041EECF /* OktaAuthHTTPClientMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = CBC143F4250975B90041EECF /* OktaAuthHTTPClientMock.swift */; }; + E0BAF7992BC9A78D009CB80C /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = E0BAF7972BC9A78D009CB80C /* PrivacyInfo.xcprivacy */; }; E2E1F34A2501AFA00001DDD5 /* OktaHTTPRequestListenerProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2E1F3492501AFA00001DDD5 /* OktaHTTPRequestListenerProtocol.swift */; }; E2E1F34B2501B0320001DDD5 /* OktaHTTPRequestListenerProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2E1F3492501AFA00001DDD5 /* OktaHTTPRequestListenerProtocol.swift */; }; FA4ED9AA21C2895B00A065A1 /* OktaError.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA4ED9A921C2895B00A065A1 /* OktaError.swift */; }; @@ -236,6 +237,7 @@ A1FCB12E220A458F0026F522 /* OktaAPIMock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OktaAPIMock.swift; sourceTree = ""; }; CB64D33F250AE1AB00609CC6 /* OktaURLSessionMock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OktaURLSessionMock.swift; sourceTree = ""; }; CBC143F4250975B90041EECF /* OktaAuthHTTPClientMock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OktaAuthHTTPClientMock.swift; sourceTree = ""; }; + E0BAF7972BC9A78D009CB80C /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; E2E1F3492501AFA00001DDD5 /* OktaHTTPRequestListenerProtocol.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OktaHTTPRequestListenerProtocol.swift; sourceTree = ""; }; FA4ED99B21C1499200A065A1 /* OktaAuthNative.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = OktaAuthNative.framework; sourceTree = BUILT_PRODUCTS_DIR; }; FA4ED99F21C1499200A065A1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; @@ -435,6 +437,14 @@ path = Mocks; sourceTree = ""; }; + E0BAF7982BC9A78D009CB80C /* Resources */ = { + isa = PBXGroup; + children = ( + E0BAF7972BC9A78D009CB80C /* PrivacyInfo.xcprivacy */, + ); + path = Resources; + sourceTree = ""; + }; FA4ED98F21C1489900A065A1 = { isa = PBXGroup; children = ( @@ -464,6 +474,7 @@ A12F4FD62238259600DB9147 /* Statuses */, A12F4FF82238311A00DB9147 /* OktaAuthSdk.swift */, FA4ED9A921C2895B00A065A1 /* OktaError.swift */, + E0BAF7982BC9A78D009CB80C /* Resources */, FAC5AEDA21C7F6F000C3DC91 /* Supporting Files */, ); path = Source; @@ -587,6 +598,7 @@ A1E7465622834B9800C48A28 /* Questions in Resources */, A179276D2229BDB90001C889 /* OktaAuthSdk.podspec in Resources */, A1E7469F2283819700C48A28 /* MFA_ENROLL_ACTIVATE_CALL in Resources */, + E0BAF7992BC9A78D009CB80C /* PrivacyInfo.xcprivacy in Resources */, 2F8D79F421D6601600CFDF12 /* README.md in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -824,7 +836,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 2.4.3; + MARKETING_VERSION = 2.4.4; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -900,7 +912,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 2.4.3; + MARKETING_VERSION = 2.4.4; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.okta.auth-swift"; diff --git a/OktaAuthSdk.podspec b/OktaAuthSdk.podspec index 1fd507b..5acdc80 100644 --- a/OktaAuthSdk.podspec +++ b/OktaAuthSdk.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'OktaAuthSdk' - s.version = '2.4.3' + s.version = '2.4.4' s.summary = 'SDK for Okta native authentication.' s.description = <<-DESC Integrate your native app with Okta. @@ -14,6 +14,7 @@ Integrate your native app with Okta. s.ios.deployment_target = '10.0' s.osx.deployment_target = '10.14' s.source_files = 'Source/**/*' + s.resources = 'Source/Resources/**/*' s.swift_version = '5.0' s.exclude_files = [ 'Source/Info.plist' diff --git a/Package.swift b/Package.swift index 00a804e..2029303 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.1 +// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription @@ -12,7 +12,7 @@ let package = Package( .library(name: "OktaAuthNative", targets: ["OktaAuthNative"]) ], targets: [ - .target(name: "OktaAuthNative", dependencies: [], path: "Source", exclude: ["Info.plist"]), + .target(name: "OktaAuthNative", dependencies: [],path: "Source", exclude: ["Info.plist"], resources: [.process("Resources")]), .testTarget(name: "OktaAuthNative_Tests", dependencies: ["OktaAuthNative"], path: "Tests", exclude: ["AuthenticationClientTests.swift"]) ] ) diff --git a/Source/Resources/PrivacyInfo.xcprivacy b/Source/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..c6bdf9c --- /dev/null +++ b/Source/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyAccessedAPITypes + + NSPrivacyTracking + + NSPrivacyTrackingDomains + + NSPrivacyCollectedDataTypes + + + diff --git a/Source/RestAPI/Utils.swift b/Source/RestAPI/Utils.swift index ffab334..d6bd3b5 100644 --- a/Source/RestAPI/Utils.swift +++ b/Source/RestAPI/Utils.swift @@ -17,7 +17,7 @@ import UIKit #endif public func sdkVersion() -> String { - return "2.4.3" + return "2.4.4" } internal func buildUserAgent() -> String {