Skip to content

Commit

Permalink
Update Swift Package Manager config (#332)
Browse files Browse the repository at this point in the history
Make SwiftyDropbox work for Catalyst when used with SPM
  • Loading branch information
YufeiG authored Aug 6, 2021
1 parent 8fd86ea commit dcdfffb
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"repositoryURL": "https://github.com/Alamofire/Alamofire.git",
"state": {
"branch": null,
"revision": "747c8db8d57b68d5e35275f10c92d55f982adbd4",
"revision": "f96b619bcb2383b43d898402283924b80e2c4bae",
"version": "5.4.3"
}
}
Expand Down
8 changes: 6 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.0
// swift-tools-version:5.1
///
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///
Expand All @@ -7,11 +7,15 @@ import PackageDescription

let package = Package(
name: "SwiftyDropbox",
platforms: [
.macOS(.v10_12),
.iOS(.v10),
],
products: [
.library(name: "SwiftyDropbox", targets:["SwiftyDropbox"]),
],
dependencies: [
.package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMinor(from: "5.4.3")),
.package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.4.3")),
],
targets: [
.target(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///

#if canImport(UIKit)
#if os(iOS)

import Foundation
import SafariServices
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///

#if canImport(AppKit)
#if os(macOS)

import Foundation
import AppKit
Expand Down
22 changes: 0 additions & 22 deletions Source/SwiftyDropbox/Shared/Handwritten/SwiftyDropbox.h

This file was deleted.

6 changes: 0 additions & 6 deletions Source/SwiftyDropbox/SwiftyDropbox.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@
F2478F311ECCD0B300BAF014 /* DropboxTransportClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2478EEA1ECCD0B300BAF014 /* DropboxTransportClient.swift */; };
F2478F321ECCD0B300BAF014 /* OAuth.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2478EEB1ECCD0B300BAF014 /* OAuth.swift */; };
F2478F331ECCD0B300BAF014 /* OAuth.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2478EEB1ECCD0B300BAF014 /* OAuth.swift */; };
F2478F341ECCD0B300BAF014 /* SwiftyDropbox.h in Headers */ = {isa = PBXBuildFile; fileRef = F2478EEC1ECCD0B300BAF014 /* SwiftyDropbox.h */; settings = {ATTRIBUTES = (Public, ); }; };
F2478F351ECCD0B300BAF014 /* SwiftyDropbox.h in Headers */ = {isa = PBXBuildFile; fileRef = F2478EEC1ECCD0B300BAF014 /* SwiftyDropbox.h */; settings = {ATTRIBUTES = (Public, ); }; };
F2478F361ECCD0B300BAF014 /* TransportConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2478EED1ECCD0B300BAF014 /* TransportConfig.swift */; };
F2478F371ECCD0B400BAF014 /* TransportConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2478EED1ECCD0B300BAF014 /* TransportConfig.swift */; };
F2478F391ECCD2FF00BAF014 /* SDKConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2478F381ECCD2FF00BAF014 /* SDKConstants.swift */; };
Expand Down Expand Up @@ -180,7 +178,6 @@
F2478EE91ECCD0B300BAF014 /* DropboxTeamClient.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DropboxTeamClient.swift; sourceTree = "<group>"; };
F2478EEA1ECCD0B300BAF014 /* DropboxTransportClient.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DropboxTransportClient.swift; sourceTree = "<group>"; };
F2478EEB1ECCD0B300BAF014 /* OAuth.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OAuth.swift; sourceTree = "<group>"; };
F2478EEC1ECCD0B300BAF014 /* SwiftyDropbox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SwiftyDropbox.h; sourceTree = "<group>"; };
F2478EED1ECCD0B300BAF014 /* TransportConfig.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransportConfig.swift; sourceTree = "<group>"; };
F2478F381ECCD2FF00BAF014 /* SDKConstants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SDKConstants.swift; sourceTree = "<group>"; };
F265BD081E68072500CC38C8 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -295,7 +292,6 @@
F2478EE81ECCD0B300BAF014 /* DropboxClientsManager.swift */,
F2478EE91ECCD0B300BAF014 /* DropboxTeamClient.swift */,
F2478EEA1ECCD0B300BAF014 /* DropboxTransportClient.swift */,
F2478EEC1ECCD0B300BAF014 /* SwiftyDropbox.h */,
F2478EED1ECCD0B300BAF014 /* TransportConfig.swift */,
F2478F381ECCD2FF00BAF014 /* SDKConstants.swift */,
BF4CC9A1247842250005CADF /* Request+TokenRefresh.swift */,
Expand Down Expand Up @@ -372,15 +368,13 @@
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
F2478F341ECCD0B300BAF014 /* SwiftyDropbox.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
F2C6FCD21D89E1A900E0DD9E /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
F2478F351ECCD0B300BAF014 /* SwiftyDropbox.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down

0 comments on commit dcdfffb

Please sign in to comment.