Skip to content

Commit

Permalink
Include a privacy manifest file (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenachbaur-okta authored Apr 15, 2024
1 parent af4a6b8 commit 03439c9
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 9 deletions.
3 changes: 2 additions & 1 deletion OktaOidc.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'OktaOidc'
s.version = '3.11.4'
s.version = '3.11.5'
s.summary = 'SDK to easily integrate AppAuth with Okta'
s.description = <<-DESC
Integrate your native app with Okta using the AppAuth library.
Expand All @@ -21,6 +21,7 @@ Integrate your native app with Okta using the AppAuth library.
s.subspec 'Okta' do |okta|
okta.dependency 'OktaOidc/AppAuth'
okta.source_files = 'Sources/OktaOidc/**/*.{h,swift}'
okta.resources = 'Sources/OktaOidc/Common/Resources/**/*'
okta.exclude_files = 'Sources/OktaOidc/Common/Exports.swift'
okta.ios.deployment_target = '11.0'
okta.osx.deployment_target = '10.14'
Expand Down
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -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.

/*
Expand Down Expand Up @@ -38,6 +38,9 @@ let package = Package(
.target(name: "OktaOidc",
dependencies: [
"OktaOidc_AppAuth"
],
resources: [
.process("Common/Resources")
]),
] + [
.target(name: "TestCommon",
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppAuth/OktaUserAgent.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ +(void)setUserAgentValue:(NSString*)value {
}

+(NSString*)userAgentVersion {
return @"3.11.4";
return @"3.11.5";
}

+(NSString*)userAgentHeaderKey {
Expand Down
14 changes: 14 additions & 0 deletions Sources/OktaOidc/Common/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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/>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
</dict>
</plist>
26 changes: 20 additions & 6 deletions okta-oidc.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@
DEBFB8E62507C52400A27026 /* OktaNetworkRequestCustomizationDelegateMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEBFB8E52507C52400A27026 /* OktaNetworkRequestCustomizationDelegateMock.swift */; };
DEBFB8E82507C53600A27026 /* URLSessionMock.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEBFB8E72507C53600A27026 /* URLSessionMock.swift */; };
DEE37AD125065C7300318DC3 /* OktaNetworkRequestCustomizationDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = E2E1F3472501868D0001DDD5 /* OktaNetworkRequestCustomizationDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
E0BAF79C2BC9AB8A009CB80C /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = E0BAF79A2BC9AB8A009CB80C /* PrivacyInfo.xcprivacy */; };
E0BAF79D2BC9AB8A009CB80C /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = E0BAF79A2BC9AB8A009CB80C /* PrivacyInfo.xcprivacy */; };
E2E1F3482501868E0001DDD5 /* OktaNetworkRequestCustomizationDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = E2E1F3472501868D0001DDD5 /* OktaNetworkRequestCustomizationDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
E2F6026625104F3000492BEC /* OktaOIDAuthStateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2F6026525104F3000492BEC /* OktaOIDAuthStateTests.swift */; };
E2FB61302536779800D26EDC /* OKTAuthorizationRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = E2FB612D2536779800D26EDC /* OKTAuthorizationRequest.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand Down Expand Up @@ -545,6 +547,7 @@
DEBFB8E22507A7A000A27026 /* OIDAuthorizationServiceRequestDelegateTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OIDAuthorizationServiceRequestDelegateTests.swift; sourceTree = "<group>"; };
DEBFB8E52507C52400A27026 /* OktaNetworkRequestCustomizationDelegateMock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OktaNetworkRequestCustomizationDelegateMock.swift; sourceTree = "<group>"; };
DEBFB8E72507C53600A27026 /* URLSessionMock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = URLSessionMock.swift; sourceTree = "<group>"; };
E0BAF79A2BC9AB8A009CB80C /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
E2E1F3472501868D0001DDD5 /* OktaNetworkRequestCustomizationDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OktaNetworkRequestCustomizationDelegate.h; path = include/OktaNetworkRequestCustomizationDelegate.h; sourceTree = "<group>"; };
E2F6026525104F3000492BEC /* OktaOIDAuthStateTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OktaOIDAuthStateTests.swift; sourceTree = "<group>"; };
E2FB612D2536779800D26EDC /* OKTAuthorizationRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OKTAuthorizationRequest.h; path = include/OKTAuthorizationRequest.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -746,6 +749,7 @@
9601C326256D980D00C084F5 /* Common */ = {
isa = PBXGroup;
children = (
E0BAF79B2BC9AB8A009CB80C /* Resources */,
A17E39BE2357C50700837873 /* Internal */,
A17E397F234D5F8E00837873 /* OktaOidc.h */,
2F32CB0B229D3A16003A6768 /* OktaOidc.swift */,
Expand Down Expand Up @@ -1007,6 +1011,14 @@
path = Internal;
sourceTree = "<group>";
};
E0BAF79B2BC9AB8A009CB80C /* Resources */ = {
isa = PBXGroup;
children = (
E0BAF79A2BC9AB8A009CB80C /* PrivacyInfo.xcprivacy */,
);
path = Resources;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -1285,6 +1297,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E0BAF79C2BC9AB8A009CB80C /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -1317,6 +1330,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E0BAF79D2BC9AB8A009CB80C /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -1782,7 +1796,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 3.11.4;
MARKETING_VERSION = 3.11.5;
PRODUCT_BUNDLE_IDENTIFIER = "com.okta.okta-oidc";
PRODUCT_NAME = OktaOidc;
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -1812,7 +1826,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 3.11.4;
MARKETING_VERSION = 3.11.5;
PRODUCT_BUNDLE_IDENTIFIER = "com.okta.okta-oidc";
PRODUCT_NAME = OktaOidc;
SKIP_INSTALL = YES;
Expand All @@ -1834,7 +1848,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 3.11.4;
MARKETING_VERSION = 3.11.5;
PRODUCT_BUNDLE_IDENTIFIER = com.okta.Example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -1853,7 +1867,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 3.11.4;
MARKETING_VERSION = 3.11.5;
PRODUCT_BUNDLE_IDENTIFIER = com.okta.Example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -1960,7 +1974,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 3.11.4;
MARKETING_VERSION = 3.11.5;
PRODUCT_BUNDLE_IDENTIFIER = "com.okta.okta-oidc";
PRODUCT_NAME = OktaOidc;
SDKROOT = macosx;
Expand All @@ -1987,7 +2001,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 3.11.4;
MARKETING_VERSION = 3.11.5;
PRODUCT_BUNDLE_IDENTIFIER = "com.okta.okta-oidc";
PRODUCT_NAME = OktaOidc;
SDKROOT = macosx;
Expand Down

0 comments on commit 03439c9

Please sign in to comment.