Skip to content

Commit e6bf7ed

Browse files
author
Pranay Sowdaboina
committed
4.7.0 release.
1 parent 5f5d6b5 commit e6bf7ed

File tree

25 files changed

+1839
-440
lines changed

25 files changed

+1839
-440
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ To install the Dropbox Swift SDK via Carthage, you need to create a `Cartfile` i
131131

132132
```
133133
# SwiftyDropbox
134-
github "https://github.com/dropbox/SwiftyDropbox" ~> 4.6.0
134+
github "https://github.com/dropbox/SwiftyDropbox" ~> 4.7.0
135135
```
136136

137137
Then, run the following command to install the dependency to checkout and build the Dropbox Swift SDK repository:

Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.6.0</string>
18+
<string>4.7.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

Source/SwiftyDropbox/Platform/SwiftyDropbox_macOS/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.6.0</string>
18+
<string>4.7.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSHumanReadableCopyright</key>

Source/SwiftyDropbox/Shared/Generated/Auth.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ open class Auth {
7171
case invalidSelectAdmin
7272
/// The user has been suspended.
7373
case userSuspended
74+
/// The access token has expired.
75+
case expiredAccessToken
7476
/// An unspecified error.
7577
case other
7678

@@ -98,6 +100,10 @@ open class Auth {
98100
var d = [String: JSON]()
99101
d[".tag"] = .str("user_suspended")
100102
return .dictionary(d)
103+
case .expiredAccessToken:
104+
var d = [String: JSON]()
105+
d[".tag"] = .str("expired_access_token")
106+
return .dictionary(d)
101107
case .other:
102108
var d = [String: JSON]()
103109
d[".tag"] = .str("other")
@@ -117,6 +123,8 @@ open class Auth {
117123
return AuthError.invalidSelectAdmin
118124
case "user_suspended":
119125
return AuthError.userSuspended
126+
case "expired_access_token":
127+
return AuthError.expiredAccessToken
120128
case "other":
121129
return AuthError.other
122130
default:
@@ -441,6 +449,7 @@ open class Auth {
441449

442450
static let tokenFromOauth1 = Route(
443451
name: "token/from_oauth1",
452+
version: 1,
444453
namespace: "auth",
445454
deprecated: false,
446455
argSerializer: Auth.TokenFromOAuth1ArgSerializer(),
@@ -451,6 +460,7 @@ open class Auth {
451460
)
452461
static let tokenRevoke = Route(
453462
name: "token/revoke",
463+
version: 1,
454464
namespace: "auth",
455465
deprecated: false,
456466
argSerializer: Serialization._VoidSerializer,

Source/SwiftyDropbox/Shared/Generated/FileProperties.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,7 @@ open class FileProperties {
18551855

18561856
static let propertiesAdd = Route(
18571857
name: "properties/add",
1858+
version: 1,
18581859
namespace: "file_properties",
18591860
deprecated: false,
18601861
argSerializer: FileProperties.AddPropertiesArgSerializer(),
@@ -1865,6 +1866,7 @@ open class FileProperties {
18651866
)
18661867
static let propertiesOverwrite = Route(
18671868
name: "properties/overwrite",
1869+
version: 1,
18681870
namespace: "file_properties",
18691871
deprecated: false,
18701872
argSerializer: FileProperties.OverwritePropertyGroupArgSerializer(),
@@ -1875,6 +1877,7 @@ open class FileProperties {
18751877
)
18761878
static let propertiesRemove = Route(
18771879
name: "properties/remove",
1880+
version: 1,
18781881
namespace: "file_properties",
18791882
deprecated: false,
18801883
argSerializer: FileProperties.RemovePropertiesArgSerializer(),
@@ -1885,6 +1888,7 @@ open class FileProperties {
18851888
)
18861889
static let propertiesSearch = Route(
18871890
name: "properties/search",
1891+
version: 1,
18881892
namespace: "file_properties",
18891893
deprecated: false,
18901894
argSerializer: FileProperties.PropertiesSearchArgSerializer(),
@@ -1895,6 +1899,7 @@ open class FileProperties {
18951899
)
18961900
static let propertiesSearchContinue = Route(
18971901
name: "properties/search/continue",
1902+
version: 1,
18981903
namespace: "file_properties",
18991904
deprecated: false,
19001905
argSerializer: FileProperties.PropertiesSearchContinueArgSerializer(),
@@ -1905,6 +1910,7 @@ open class FileProperties {
19051910
)
19061911
static let propertiesUpdate = Route(
19071912
name: "properties/update",
1913+
version: 1,
19081914
namespace: "file_properties",
19091915
deprecated: false,
19101916
argSerializer: FileProperties.UpdatePropertiesArgSerializer(),
@@ -1915,6 +1921,7 @@ open class FileProperties {
19151921
)
19161922
static let templatesAddForTeam = Route(
19171923
name: "templates/add_for_team",
1924+
version: 1,
19181925
namespace: "file_properties",
19191926
deprecated: false,
19201927
argSerializer: FileProperties.AddTemplateArgSerializer(),
@@ -1925,6 +1932,7 @@ open class FileProperties {
19251932
)
19261933
static let templatesAddForUser = Route(
19271934
name: "templates/add_for_user",
1935+
version: 1,
19281936
namespace: "file_properties",
19291937
deprecated: false,
19301938
argSerializer: FileProperties.AddTemplateArgSerializer(),
@@ -1935,6 +1943,7 @@ open class FileProperties {
19351943
)
19361944
static let templatesGetForTeam = Route(
19371945
name: "templates/get_for_team",
1946+
version: 1,
19381947
namespace: "file_properties",
19391948
deprecated: false,
19401949
argSerializer: FileProperties.GetTemplateArgSerializer(),
@@ -1945,6 +1954,7 @@ open class FileProperties {
19451954
)
19461955
static let templatesGetForUser = Route(
19471956
name: "templates/get_for_user",
1957+
version: 1,
19481958
namespace: "file_properties",
19491959
deprecated: false,
19501960
argSerializer: FileProperties.GetTemplateArgSerializer(),
@@ -1955,6 +1965,7 @@ open class FileProperties {
19551965
)
19561966
static let templatesListForTeam = Route(
19571967
name: "templates/list_for_team",
1968+
version: 1,
19581969
namespace: "file_properties",
19591970
deprecated: false,
19601971
argSerializer: Serialization._VoidSerializer,
@@ -1965,6 +1976,7 @@ open class FileProperties {
19651976
)
19661977
static let templatesListForUser = Route(
19671978
name: "templates/list_for_user",
1979+
version: 1,
19681980
namespace: "file_properties",
19691981
deprecated: false,
19701982
argSerializer: Serialization._VoidSerializer,
@@ -1975,6 +1987,7 @@ open class FileProperties {
19751987
)
19761988
static let templatesRemoveForTeam = Route(
19771989
name: "templates/remove_for_team",
1990+
version: 1,
19781991
namespace: "file_properties",
19791992
deprecated: false,
19801993
argSerializer: FileProperties.RemoveTemplateArgSerializer(),
@@ -1985,6 +1998,7 @@ open class FileProperties {
19851998
)
19861999
static let templatesRemoveForUser = Route(
19872000
name: "templates/remove_for_user",
2001+
version: 1,
19882002
namespace: "file_properties",
19892003
deprecated: false,
19902004
argSerializer: FileProperties.RemoveTemplateArgSerializer(),
@@ -1995,6 +2009,7 @@ open class FileProperties {
19952009
)
19962010
static let templatesUpdateForTeam = Route(
19972011
name: "templates/update_for_team",
2012+
version: 1,
19982013
namespace: "file_properties",
19992014
deprecated: false,
20002015
argSerializer: FileProperties.UpdateTemplateArgSerializer(),
@@ -2005,6 +2020,7 @@ open class FileProperties {
20052020
)
20062021
static let templatesUpdateForUser = Route(
20072022
name: "templates/update_for_user",
2023+
version: 1,
20082024
namespace: "file_properties",
20092025
deprecated: false,
20102026
argSerializer: FileProperties.UpdateTemplateArgSerializer(),

Source/SwiftyDropbox/Shared/Generated/FileRequests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,7 @@ open class FileRequests {
891891

892892
static let create = Route(
893893
name: "create",
894+
version: 1,
894895
namespace: "file_requests",
895896
deprecated: false,
896897
argSerializer: FileRequests.CreateFileRequestArgsSerializer(),
@@ -901,6 +902,7 @@ open class FileRequests {
901902
)
902903
static let get = Route(
903904
name: "get",
905+
version: 1,
904906
namespace: "file_requests",
905907
deprecated: false,
906908
argSerializer: FileRequests.GetFileRequestArgsSerializer(),
@@ -911,6 +913,7 @@ open class FileRequests {
911913
)
912914
static let list_ = Route(
913915
name: "list",
916+
version: 1,
914917
namespace: "file_requests",
915918
deprecated: false,
916919
argSerializer: Serialization._VoidSerializer,
@@ -921,6 +924,7 @@ open class FileRequests {
921924
)
922925
static let update = Route(
923926
name: "update",
927+
version: 1,
924928
namespace: "file_requests",
925929
deprecated: false,
926930
argSerializer: FileRequests.UpdateFileRequestArgsSerializer(),

0 commit comments

Comments
 (0)