Skip to content

Commit

Permalink
2.0.2 release. Fixed DBRequestError bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Cobbe committed Dec 1, 2016
1 parent f2ad166 commit ef79b77
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ObjectiveDropboxOfficial.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ObjectiveDropboxOfficial'
s.version = '2.0.1'
s.version = '2.0.2'
s.summary = 'Dropbox Objective C SDK for APIv2'
s.homepage = 'https://dropbox.com/developers/'
s.license = 'MIT'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ brew install carthage

```
# ObjectiveDropboxOfficial
github "https://github.com/dropbox/dropbox-sdk-obj-c" ~> 2.0.1
github "https://github.com/dropbox/dropbox-sdk-obj-c" ~> 2.0.2
```

Then, run the following command to checkout and build the Dropbox Objective-C SDK repository:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.0.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.0.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,13 @@ typedef NS_ENUM(NSInteger, DBRequestErrorTag) {
///
- (BOOL)isAuthError;

///
/// Retrieves whether the error's current tag state has value "access_error".
///
/// @return Whether the union's current tag state has value "access_error".
///
- (BOOL)isAccessError;

///
/// Retrieves whether the error's current tag state has value "rate_limit_error".
///
Expand Down Expand Up @@ -619,6 +626,18 @@ typedef NS_ENUM(NSInteger, DBRequestErrorTag) {
///
- (DBRequestAuthError * _Nonnull)asAuthError;

///
/// Creates a DBRequestAccessError instance based on the data in the current `DBRequestError`
/// instance.
///
/// @note Will throw error if current `DBRequestError` instance tag state is not
/// "auth_error". Should only use after checking if `isAccessError` returns true
/// for the current `DBRequestError` instance.
///
/// @return An initialized `DBRequestAccessError` instance.
///
- (DBRequestAuthError * _Nonnull)asAccessError;

///
/// Creates a `DBRequestRateLimitError` instance based on the data in the current `DBRequestError`
/// instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#import "DBTasks.h"
#import "DBTransportClient.h"

static NSString const *const kVersion = @"2.0.1";
static NSString const *const kVersion = @"2.0.2";
static NSString const *const kDefaultUserAgentPrefix = @"OfficialDropboxObjCSDKv2";
static NSString const *const kBackgroundSessionId = @"com.dropbox.dropbox_sdk_obj_c_background";

Expand Down
2 changes: 1 addition & 1 deletion stone

0 comments on commit ef79b77

Please sign in to comment.