Skip to content

Commit c1e6151

Browse files
committed
Fixes
1 parent 6914ade commit c1e6151

11 files changed

+57
-19
lines changed

BoxSDK.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Pod::Spec.new do |spec|
1111
spec.social_media_url = "https://twitter.com/box"
1212
spec.ios.deployment_target = "11.0"
1313
spec.source = { :git => "https://github.com/box/box-ios-sdk.git", :tag => "v"+spec.version.to_s }
14-
spec.swift_versions = ["5.0", "5.1", "5.2", "5.3", "5.4", "5.5"]
14+
spec.swift_versions = ["5"]
1515
spec.requires_arc = true
1616

1717
spec.default_subspec = "Core"
1818
spec.subspec "Core" do |ss|
1919
ss.source_files = "Sources/**/*.swift" , "Sources/**/Environment.plist"
20-
# spec.exclude_files = "Sources/Exclude"
20+
ss.resource_bundle = {"BoxSDK" => "Sources/PrivacyInfo.xcprivacy"}
2121
ss.framework = "Foundation"
2222
end
2323
end

BoxSDK.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
05610A9927107079009F92CC /* SignRequestCreateParameters.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05610A9827107079009F92CC /* SignRequestCreateParameters.swift */; };
5858
05610A9B271099A7009F92CC /* SignRequestPrefillTag.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05610A9A271099A7009F92CC /* SignRequestPrefillTag.swift */; };
5959
05610A9D27109BFB009F92CC /* SignRequestSignerInput.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05610A9C27109BFB009F92CC /* SignRequestSignerInput.swift */; };
60+
056290D12BC03AB0008C2BEE /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 056290D02BC03AAF008C2BEE /* PrivacyInfo.xcprivacy */; };
6061
056B628B2860C16F008E9418 /* SharedLinkDataSpecs.swift in Sources */ = {isa = PBXBuildFile; fileRef = 056B628A2860C16F008E9418 /* SharedLinkDataSpecs.swift */; };
6162
0571FC6328F7FA07004846E4 /* WebhooksModuleIntegrationSpecs.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0571FC6228F7FA07004846E4 /* WebhooksModuleIntegrationSpecs.swift */; };
6263
0571FC6728F9491D004846E4 /* QuickSpec+Webhooks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0571FC6628F9491D004846E4 /* QuickSpec+Webhooks.swift */; };
@@ -684,6 +685,7 @@
684685
05610A9827107079009F92CC /* SignRequestCreateParameters.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SignRequestCreateParameters.swift; sourceTree = "<group>"; };
685686
05610A9A271099A7009F92CC /* SignRequestPrefillTag.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SignRequestPrefillTag.swift; sourceTree = "<group>"; };
686687
05610A9C27109BFB009F92CC /* SignRequestSignerInput.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SignRequestSignerInput.swift; sourceTree = "<group>"; };
688+
056290D02BC03AAF008C2BEE /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
687689
056B628A2860C16F008E9418 /* SharedLinkDataSpecs.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SharedLinkDataSpecs.swift; sourceTree = "<group>"; };
688690
056FE12726EF6F6800098F00 /* Quick.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = Quick.xcframework; path = Carthage/Build/Quick.xcframework; sourceTree = "<group>"; };
689691
056FE12826EF6F6800098F00 /* OHHTTPStubs.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = OHHTTPStubs.xcframework; path = Carthage/Build/OHHTTPStubs.xcframework; sourceTree = "<group>"; };
@@ -2080,6 +2082,7 @@
20802082
3549BB541DA38A4000C63030 /* Supporting Files */ = {
20812083
isa = PBXGroup;
20822084
children = (
2085+
056290D02BC03AAF008C2BEE /* PrivacyInfo.xcprivacy */,
20832086
3549BB181DA3890B00C63030 /* BoxSDK.h */,
20842087
3549BB171DA3890B00C63030 /* Info.plist */,
20852088
3549BB551DA38A5E00C63030 /* Info-tvOS.plist */,
@@ -2611,6 +2614,7 @@
26112614
B40558B025AD2ABF0068784E /* ZipDownload.json in Resources */,
26122615
B4882E7325EEFBC600EB57BA /* FolderLocks.json in Resources */,
26132616
8093D29822FA398500DB628E /* GetWebLink.json in Resources */,
2617+
056290D12BC03AB0008C2BEE /* PrivacyInfo.xcprivacy in Resources */,
26142618
B47486CA26013A30005F4475 /* CreateMetadataTemplate2.json in Resources */,
26152619
B4882E7025EEE12F00EB57BA /* FolderLock.json in Resources */,
26162620
8093D29A22FA399D00DB628E /* UpdateWebLink.json in Resources */,

Package.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.0
1+
// swift-tools-version:5.3
22
//
33
// BoxSDK.swift
44
// BoxSDK
@@ -25,12 +25,14 @@ let package = Package(
2525
.target(
2626
name: "BoxSDK",
2727
dependencies: [],
28-
path: "Sources"
28+
path: "Sources",
29+
resources: [.copy("PrivacyInfo.xcprivacy")]
2930
),
3031
.testTarget(
3132
name: "BoxSDKTests",
3233
dependencies: ["BoxSDK"],
3334
path: "Tests"
3435
)
35-
]
36+
],
37+
swiftLanguageVersions: [.v5]
3638
)

PrivacyInfo.xcprivacy

Lines changed: 0 additions & 8 deletions
This file was deleted.

Sources/BoxSDK+Async.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#endif
1212
import Foundation
1313

14-
@available(iOS 13.0, *)
14+
@available(iOS 13.0, macOS 10.15, *)
1515
public extension BoxSDK {
1616

1717
// MARK: - JWT Client

Sources/Core/AsyncHelper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import Foundation
1010

1111
/// Provides method for converting Callback based API into an async API
12-
@available(iOS 13.0, *)
12+
@available(iOS 13.0, macOS 10.15, *)
1313
public enum AsyncHelper {
1414

1515
/// Converting a Callback based API into an async API.

Sources/Core/BoxJSONDecoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ enum BoxJSONDecoder {
144144
}
145145

146146
#if compiler(>=5.9)
147-
if #available(iOS 17.0, *) {
147+
if #available(iOS 17.0, macOS 14.0, *) {
148148
guard let url = URL(string: value, encodingInvalidCharacters: false) else {
149149
throw BoxCodingError(message: .invalidValueFormat(key: key))
150150
}

Sources/Core/MimeTypeProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ enum MimeTypeProvider {
3232
return defaultMimeType
3333
}
3434

35-
if #available(iOS 14, *) {
35+
if #available(iOS 14, macOS 11.0, *) {
3636
return UTType(filenameExtension: pathExtension)?.preferredMIMEType ?? defaultMimeType
3737
}
3838
else {

Sources/Modules/FoldersModule+Async.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import Foundation
1010

11-
@available(iOS 13.0, *)
11+
@available(iOS 13.0, macOS 10.15, *)
1212
public extension FoldersModule {
1313

1414
/// Get information about a folder.

Sources/Network/PagingIterator+Async.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import Foundation
1010

1111
/// Provides paged iterator access for a collection of BoxModel's
12-
@available(iOS 13.0, *)
12+
@available(iOS 13.0, macOS 10.15, *)
1313
public extension PagingIterator {
1414

1515
/// Gets next page of elements from the iterator

0 commit comments

Comments
 (0)