├── Podfile ├── DropBlocks ├── en.lproj │ └── InfoPlist.strings ├── Default.png ├── Default@2x.png ├── Default-568h@2x.png ├── AppDelegate.h ├── DropBlocks-Prefix.pch ├── main.m ├── DropBlocks-Info.plist ├── AppDelegate.m └── Classes │ ├── DropBlocks.h │ └── DropBlocks.m ├── Pods ├── Target Support Files │ └── Pods │ │ ├── Pods-dummy.m │ │ ├── Pods.debug.xcconfig │ │ ├── Pods.release.xcconfig │ │ ├── Pods-acknowledgements.markdown │ │ ├── Pods-acknowledgements.plist │ │ └── Pods-resources.sh ├── Dropbox-iOS-SDK │ └── dropbox-ios-sdk-1.3.13 │ │ ├── DropboxSDK.framework │ │ ├── DropboxSDK │ │ ├── Info.plist │ │ └── Headers │ │ │ ├── DropboxSDK-Prefix.pch │ │ │ ├── NSURLResponse+Encoding.h │ │ │ ├── NSDictionary+Dropbox.h │ │ │ ├── MPDebug.h │ │ │ ├── NSString+Dropbox.h │ │ │ ├── DropboxSDK.h │ │ │ ├── MPOAuthURLResponse.h │ │ │ ├── DBDeltaEntry.h │ │ │ ├── DBSession+iOS.h │ │ │ ├── NSURL+MPURLParameterAdditions.h │ │ │ ├── NSString+URLEscapingAdditions.h │ │ │ ├── MPOAuth.h │ │ │ ├── MPOAuthCredentialConcreteStore+KeychainAdditions.h │ │ │ ├── DBQuota.h │ │ │ ├── DBError.h │ │ │ ├── DBAccountInfo.h │ │ │ ├── MPOAuthParameterFactory.h │ │ │ ├── MPURLRequestParameter.h │ │ │ ├── MPOAuthSignatureParameter.h │ │ │ ├── MPOAuthAuthenticationMethod.h │ │ │ ├── MPOAuthURLRequest.h │ │ │ ├── DBLog.h │ │ │ ├── MPOAuthConnection.h │ │ │ ├── MPOAuthCredentialStore.h │ │ │ ├── MPOAuthAuthenticationMethodOAuth.h │ │ │ ├── MPOAuthCredentialConcreteStore.h │ │ │ ├── DBMetadata.h │ │ │ ├── DBBase64Transcoder.h │ │ │ ├── MPOAuthAPIRequestLoader.h │ │ │ ├── DBSession.h │ │ │ ├── NSString+DBJSON.h │ │ │ ├── JSON.h │ │ │ ├── NSObject+DBJSON.h │ │ │ ├── DBJSON.h │ │ │ ├── DBJsonBase.h │ │ │ ├── DBRequest.h │ │ │ ├── DBJsonParser.h │ │ │ ├── MPOAuthAPI.h │ │ │ ├── DBJsonWriter.h │ │ │ └── DBRestClient.h │ │ └── LICENSE ├── Manifest.lock └── Pods.xcodeproj │ └── project.pbxproj ├── Podfile.lock ├── .gitignore ├── DropBlocks.xcworkspace └── contents.xcworkspacedata ├── DropBlocks.podspec ├── LICENSE ├── README.md └── DropBlocks.xcodeproj └── project.pbxproj /Podfile: -------------------------------------------------------------------------------- 1 | platform :ios 2 | 3 | podspec :path => "./DropBlocks.podspec" 4 | -------------------------------------------------------------------------------- /DropBlocks/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /DropBlocks/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/natep/DropBlocks/HEAD/DropBlocks/Default.png -------------------------------------------------------------------------------- /DropBlocks/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/natep/DropBlocks/HEAD/DropBlocks/Default@2x.png -------------------------------------------------------------------------------- /DropBlocks/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/natep/DropBlocks/HEAD/DropBlocks/Default-568h@2x.png -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods : NSObject 3 | @end 4 | @implementation PodsDummy_Pods 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/DropboxSDK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/natep/DropBlocks/HEAD/Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/DropboxSDK -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/natep/DropBlocks/HEAD/Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Info.plist -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Dropbox-iOS-SDK (1.3.13) 3 | 4 | DEPENDENCIES: 5 | - Dropbox-iOS-SDK (~> 1.3.13) 6 | 7 | SPEC CHECKSUMS: 8 | Dropbox-iOS-SDK: e0c9b08d1604b39cb78c1d0333251de0f6bdec60 9 | 10 | COCOAPODS: 0.38.2 11 | -------------------------------------------------------------------------------- /Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Dropbox-iOS-SDK (1.3.13) 3 | 4 | DEPENDENCIES: 5 | - Dropbox-iOS-SDK (~> 1.3.13) 6 | 7 | SPEC CHECKSUMS: 8 | Dropbox-iOS-SDK: e0c9b08d1604b39cb78c1d0333251de0f6bdec60 9 | 10 | COCOAPODS: 0.38.2 11 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DropboxSDK-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'DropboxSDK' target in the 'DropboxSDK' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | *.pbxuser 3 | !default.pbxuser 4 | *.mode1v3 5 | !default.mode1v3 6 | *.mode2v3 7 | !default.mode2v3 8 | *.perspectivev3 9 | !default.perspectivev3 10 | xcuserdata 11 | *.xccheckout 12 | *.moved-aside 13 | DerivedData 14 | *.hmap 15 | *.ipa 16 | *.xcuserstate 17 | .DS_Store 18 | -------------------------------------------------------------------------------- /DropBlocks.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /DropBlocks/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // DropBlocks 4 | // 5 | // Created by Nate Petersen on 10/9/12. 6 | // Copyright (c) 2012 Digital Rickshaw. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /DropBlocks/DropBlocks-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'DropBlocks' target in the 'DropBlocks' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_3_0 8 | #warning "This project uses features only available in iOS SDK 3.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSURLResponse+Encoding.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSURL+MPEncodingAdditions.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.05. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSURLResponse (EncodingAdditions) 13 | - (NSStringEncoding)encoding; 14 | @end 15 | -------------------------------------------------------------------------------- /DropBlocks/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DropBlocks 4 | // 5 | // Created by Nate Petersen on 10/9/12. 6 | // Copyright (c) 2012 Digital Rickshaw. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "AppDelegate.h" 12 | 13 | int main(int argc, char *argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSDictionary+Dropbox.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary+Dropbox.h 3 | // Dropbox 4 | // 5 | // Created by Brian Smith on 6/5/11. 6 | // Copyright 2011 Dropbox, Inc. All rights reserved. 7 | // 8 | 9 | 10 | @interface NSDictionary (Dropbox) 11 | 12 | + (NSDictionary *)dictionaryWithQueryString:(NSString *)query; 13 | - (NSString *)urlRepresentation; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPDebug.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPDebug.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 09.02.06. 6 | // Copyright 2009 matrixPointer. All rights reserved. 7 | // 8 | 9 | // Removing oauth logging for now, set to '#ifdef DEBUG' to re-enable 10 | #if 0 11 | #define MPLog(...) NSLog(__VA_ARGS__) 12 | #else 13 | #define MPLog(...) do { } while (0) 14 | #endif 15 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSString+Dropbox.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+Dropbox.h 3 | // DropboxSDK 4 | // 5 | // Created by Brian Smith on 7/19/10. 6 | // Copyright 2010 Dropbox, Inc. All rights reserved. 7 | // 8 | 9 | 10 | @interface NSString (Dropbox) 11 | 12 | // This will take a path for a resource and normalize so you can compare paths 13 | - (NSString*)normalizedDropboxPath; 14 | 15 | // Normalizes both paths and compares them 16 | - (BOOL)isEqualToDropboxPath:(NSString*)otherPath; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /DropBlocks.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'DropBlocks' 3 | s.version = '0.0.6' 4 | s.platform = :ios 5 | s.license = 'BSD' 6 | s.homepage = 'http://github.com/natep/DropBlocks' 7 | s.summary = 'A blocks-based wrapper for the Dropbox iOS SDK.' 8 | s.author = { 'Nate Petersen' => 'nate@digitalrickshaw.com' } 9 | s.source = { :git => 'https://github.com/natep/DropBlocks.git', :tag => '0.0.6' } 10 | s.source_files = 'DropBlocks/Classes' 11 | s.requires_arc = true 12 | s.dependency 'Dropbox-iOS-SDK', '~> 1.3.13' 13 | end 14 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = "${PODS_ROOT}/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13" "${PODS_ROOT}/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Dropbox-iOS-SDK" 4 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Dropbox-iOS-SDK" 5 | OTHER_LDFLAGS = $(inherited) -ObjC -framework "DropboxSDK" -framework "QuartzCore" -framework "Security" 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = "${PODS_ROOT}/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13" "${PODS_ROOT}/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Dropbox-iOS-SDK" 4 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Dropbox-iOS-SDK" 5 | OTHER_LDFLAGS = $(inherited) -ObjC -framework "DropboxSDK" -framework "QuartzCore" -framework "Security" 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DropboxSDK.h: -------------------------------------------------------------------------------- 1 | /* 2 | * DropboxSDK.h 3 | * DropboxSDK 4 | * 5 | * Created by Brian Smith on 7/13/10. 6 | * Copyright 2010 Dropbox, Inc. All rights reserved. 7 | * 8 | */ 9 | 10 | /* Import this file to get the most important header files imported */ 11 | #import "DBAccountInfo.h" 12 | #import "DBSession.h" 13 | #import "DBRestClient.h" 14 | #import "DBRequest.h" 15 | #import "DBMetadata.h" 16 | #import "DBQuota.h" 17 | #import "DBError.h" 18 | #import "NSString+Dropbox.h" 19 | #import "DBDeltaEntry.h" 20 | 21 | #import "DBSession+iOS.h" -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthURLResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthURLResponse.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.05. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface MPOAuthURLResponse : NSObject { 13 | NSURLResponse *_urlResponse; 14 | NSDictionary *_oauthParameters; 15 | } 16 | 17 | @property (nonatomic, readonly, retain) NSURLResponse *urlResponse; 18 | @property (nonatomic, readonly, retain) NSDictionary *oauthParameters; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBDeltaEntry.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBDeltaEntry.h 3 | // DropboxSDK 4 | // 5 | // Created by Brian Smith on 3/25/12. 6 | // Copyright (c) 2012 Dropbox. All rights reserved. 7 | // 8 | 9 | #import "DBMetadata.h" 10 | 11 | @interface DBDeltaEntry : NSObject { 12 | NSString *lowercasePath; 13 | DBMetadata *metadata; 14 | } 15 | 16 | - (id)initWithArray:(NSArray *)array; 17 | 18 | @property (nonatomic, readonly) NSString *lowercasePath; 19 | @property (nonatomic, readonly) DBMetadata *metadata; // nil if file has been deleted 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBSession+iOS.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBSession+iOS.h 3 | // DropboxSDK 4 | // 5 | // Created by Brian Smith on 3/7/12. 6 | // Copyright (c) 2012 Dropbox. All rights reserved. 7 | // 8 | 9 | #import "DBSession.h" 10 | 11 | #import 12 | 13 | @interface DBSession (iOS) 14 | 15 | + (NSDictionary*)parseURLParams:(NSString *)query; 16 | 17 | - (NSString *)appScheme; 18 | 19 | - (void)linkFromController:(UIViewController *)rootController; 20 | - (void)linkUserId:(NSString *)userId fromController:(UIViewController *)rootController; 21 | 22 | - (BOOL)handleOpenURL:(NSURL *)url; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSURL+MPURLParameterAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSURL+MPURLParameterAdditions.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.08. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSURL (MPURLParameterAdditions) 13 | 14 | - (NSURL *)urlByAddingParameters:(NSArray *)inParameters; 15 | - (NSURL *)urlByAddingParameterDictionary:(NSDictionary *)inParameters; 16 | - (NSURL *)urlByRemovingQuery; 17 | - (NSString *)absoluteNormalizedString; 18 | 19 | - (BOOL)domainMatches:(NSString *)inString; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSString+URLEscapingAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+URLEscapingAdditions.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.07. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSString (MPURLEscapingAdditions) 13 | 14 | - (BOOL)isIPAddress; 15 | - (NSString *)stringByAddingURIPercentEscapesUsingEncoding:(NSStringEncoding)inEncoding; 16 | 17 | @end 18 | 19 | @interface NSURL (MPURLEscapingAdditions) 20 | - (NSString *)stringByAddingURIPercentEscapesUsingEncoding:(NSStringEncoding)inEncoding; 21 | @end 22 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuth.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuth.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.13. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | #import 13 | #import 14 | #import 15 | #import 16 | #import 17 | #import 18 | #import 19 | #import 20 | #import 21 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthCredentialConcreteStore+KeychainAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthCredentialConcreteStore+TokenAdditionsMac.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.13. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MPOAuthCredentialConcreteStore.h" 11 | 12 | @interface MPOAuthCredentialConcreteStore (KeychainAdditions) 13 | 14 | - (void)addToKeychainUsingName:(NSString *)inName andValue:(NSString *)inValue; 15 | - (NSString *)findValueFromKeychainUsingName:(NSString *)inName; 16 | - (void)removeValueFromKeychainUsingName:(NSString *)inName; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBQuota.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBQuota.h 3 | // DropboxSDK 4 | // 5 | // Created by Brian Smith on 5/3/10. 6 | // Copyright 2010 Dropbox, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DBQuota : NSObject { 12 | long long normalConsumedBytes; 13 | long long sharedConsumedBytes; 14 | long long totalBytes; 15 | } 16 | 17 | - (id)initWithDictionary:(NSDictionary*)dict; 18 | 19 | @property (nonatomic, readonly) long long normalConsumedBytes; 20 | @property (nonatomic, readonly) long long sharedConsumedBytes; 21 | @property (nonatomic, readonly) long long totalConsumedBytes; 22 | @property (nonatomic, readonly) long long totalBytes; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBError.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBError.h 3 | // DropboxSDK 4 | // 5 | // Created by Brian Smith on 7/21/10. 6 | // Copyright 2010 Dropbox, Inc. All rights reserved. 7 | // 8 | 9 | /* This file contains error codes and the dropbox error domain */ 10 | 11 | extern NSString* DBErrorDomain; 12 | 13 | // Error codes in the dropbox.com domain represent the HTTP status code if less than 1000 14 | typedef enum { 15 | DBErrorNone = 0, 16 | DBErrorGenericError = 1000, 17 | DBErrorFileNotFound, 18 | DBErrorInsufficientDiskSpace, 19 | DBErrorIllegalFileType, // Error sent if you try to upload a directory 20 | DBErrorInvalidResponse, // Sent when the client does not get valid JSON when it's expecting it 21 | } DBErrorCode; 22 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBAccountInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBAccountInfo.h 3 | // DropboxSDK 4 | // 5 | // Created by Brian Smith on 5/3/10. 6 | // Copyright 2010 Dropbox, Inc. All rights reserved. 7 | // 8 | 9 | 10 | #import "DBQuota.h" 11 | 12 | @interface DBAccountInfo : NSObject { 13 | NSString* email; 14 | NSString* country; 15 | NSString* displayName; 16 | DBQuota* quota; 17 | NSString* userId; 18 | NSString* referralLink; 19 | NSDictionary* original; 20 | } 21 | 22 | - (id)initWithDictionary:(NSDictionary*)dict; 23 | 24 | @property (nonatomic, readonly) NSString* email; 25 | @property (nonatomic, readonly) NSString* country; 26 | @property (nonatomic, readonly) NSString* displayName; 27 | @property (nonatomic, readonly) DBQuota* quota; 28 | @property (nonatomic, readonly) NSString* userId; 29 | @property (nonatomic, readonly) NSString* referralLink; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthParameterFactory.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthParameterFactory.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.06. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | extern NSString *kMPOAuthSignatureMethod; 10 | 11 | @class MPURLRequestParameter; 12 | 13 | @protocol MPOAuthParameterFactory 14 | 15 | @property (nonatomic, readwrite, retain) NSString *signatureMethod; 16 | @property (nonatomic, readonly) NSString *signingKey; 17 | @property (nonatomic, readonly) NSString *timestamp; 18 | 19 | - (NSArray *)oauthParameters; 20 | 21 | - (MPURLRequestParameter *)oauthConsumerKeyParameter; 22 | - (MPURLRequestParameter *)oauthTokenParameter; 23 | - (MPURLRequestParameter *)oauthSignatureMethodParameter; 24 | - (MPURLRequestParameter *)oauthTimestampParameter; 25 | - (MPURLRequestParameter *)oauthNonceParameter; 26 | - (MPURLRequestParameter *)oauthVersionParameter; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPURLRequestParameter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPURLParameter.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.05. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface MPURLRequestParameter : NSObject { 13 | NSString *_name; 14 | NSString *_value; 15 | } 16 | 17 | @property (nonatomic, readwrite, copy) NSString *name; 18 | @property (nonatomic, readwrite, copy) NSString *value; 19 | 20 | + (NSArray *)parametersFromString:(NSString *)inString; 21 | + (NSArray *)parametersFromDictionary:(NSDictionary *)inDictionary; 22 | + (NSDictionary *)parameterDictionaryFromString:(NSString *)inString; 23 | + (NSString *)parameterStringForParameters:(NSArray *)inParameters; 24 | + (NSString *)parameterStringForDictionary:(NSDictionary *)inParameterDictionary; 25 | 26 | - (id)initWithName:(NSString *)inName andValue:(NSString *)inValue; 27 | 28 | - (NSString *)URLEncodedParameterString; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthSignatureParameter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthSignatureParameter.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.07. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MPURLRequestParameter.h" 11 | 12 | #define kMPOAuthSignatureMethodPlaintext @"PLAINTEXT" 13 | #define kMPOAuthSignatureMethodHMACSHA1 @"HMAC-SHA1" 14 | #define kMPOAuthSignatureMethodRSASHA1 @"RSA-SHA1" 15 | 16 | @class MPOAuthURLRequest; 17 | 18 | @interface MPOAuthSignatureParameter : MPURLRequestParameter { 19 | 20 | } 21 | 22 | + (NSString *)signatureBaseStringUsingParameterString:(NSString *)inParameterString forRequest:(MPOAuthURLRequest *)inRequest; 23 | + (NSString *)HMAC_SHA1SignatureForText:(NSString *)inText usingSecret:(NSString *)inSecret; 24 | 25 | - (id)initWithText:(NSString *)inText andSecret:(NSString *)inSecret forRequest:(MPOAuthURLRequest *)inRequest usingMethod:(NSString *)inMethod; 26 | 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthAuthenticationMethod.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthAuthenticationMethod.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 09.12.19. 6 | // Copyright 2009 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | extern NSString * const MPOAuthAccessTokenURLKey; 12 | 13 | @class MPOAuthAPI; 14 | 15 | @interface MPOAuthAuthenticationMethod : NSObject { 16 | MPOAuthAPI *oauthAPI_; 17 | NSURL *oauthGetAccessTokenURL_; 18 | NSTimer *refreshTimer_; 19 | } 20 | 21 | @property (nonatomic, readwrite, assign) MPOAuthAPI *oauthAPI; 22 | @property (nonatomic, readwrite, retain) NSURL *oauthGetAccessTokenURL; 23 | 24 | - (id)initWithAPI:(MPOAuthAPI *)inAPI forURL:(NSURL *)inURL; 25 | - (id)initWithAPI:(MPOAuthAPI *)inAPI forURL:(NSURL *)inURL withConfiguration:(NSDictionary *)inConfig; 26 | - (void)authenticate; 27 | 28 | - (void)setTokenRefreshInterval:(NSTimeInterval)inTimeInterval; 29 | - (void)refreshAccessToken; 30 | @end 31 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthURLRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthURLRequest.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.05. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface MPOAuthURLRequest : NSObject { 13 | @private 14 | NSURL *_url; 15 | NSString *_httpMethod; 16 | NSURLRequest *_urlRequest; 17 | NSMutableArray *_parameters; 18 | } 19 | 20 | @property (nonatomic, readwrite, retain) NSURL *url; 21 | @property (nonatomic, readwrite, retain) NSString *HTTPMethod; 22 | @property (nonatomic, readonly, retain) NSURLRequest *urlRequest; 23 | @property (nonatomic, readwrite, retain) NSMutableArray *parameters; 24 | 25 | - (id)initWithURL:(NSURL *)inURL andParameters:(NSArray *)parameters; 26 | - (id)initWithURLRequest:(NSURLRequest *)inRequest; 27 | 28 | - (void)addParameters:(NSArray *)inParameters; 29 | 30 | - (NSMutableURLRequest*)urlRequestSignedWithSecret:(NSString *)inSecret usingMethod:(NSString *)inScheme; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010-2013 Dropbox, Inc., http://www.dropbox.com/ 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBLog.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBLog.h 3 | // Dropbox 4 | // 5 | // Created by Will Stockwell on 11/4/10. 6 | // Copyright 2010 Dropbox, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #if !defined(NS_FORMAT_FUNCTION) 12 | #define NS_FORMAT_FUNCTION(F, A) 13 | #endif 14 | 15 | typedef enum { 16 | DBLogLevelInfo = 0, 17 | DBLogLevelAnalytics, 18 | DBLogLevelWarning, 19 | DBLogLevelError, 20 | DBLogLevelFatal 21 | } DBLogLevel; 22 | 23 | typedef void DBLogCallback(DBLogLevel logLevel, NSString *format, va_list args); 24 | 25 | NSString * DBLogFilePath(void); 26 | void DBSetupLogToFile(void); 27 | 28 | NSString* DBStringFromLogLevel(DBLogLevel logLevel); 29 | 30 | 31 | void DBLogSetLevel(DBLogLevel logLevel); 32 | void DBLogSetCallback(DBLogCallback *callback); 33 | 34 | void DBLog(DBLogLevel logLevel, NSString *format, ...) NS_FORMAT_FUNCTION(2,3); 35 | void DBLogInfo(NSString *format, ...) NS_FORMAT_FUNCTION(1,2); 36 | void DBLogWarning(NSString *format, ...) NS_FORMAT_FUNCTION(1,2); 37 | void DBLogError(NSString *format, ...) NS_FORMAT_FUNCTION(1,2); 38 | void DBLogFatal(NSString *format, ...) NS_FORMAT_FUNCTION(1,2); -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthConnection.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthConnection.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.05. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol MPOAuthCredentialStore; 12 | @protocol MPOAuthParameterFactory; 13 | 14 | @class MPOAuthURLRequest; 15 | @class MPOAuthURLResponse; 16 | @class MPOAuthCredentialConcreteStore; 17 | 18 | @interface MPOAuthConnection : NSURLConnection { 19 | @private 20 | MPOAuthCredentialConcreteStore *_credentials; 21 | } 22 | 23 | @property (nonatomic, readonly) id credentials; 24 | 25 | + (MPOAuthConnection *)connectionWithRequest:(MPOAuthURLRequest *)inRequest delegate:(id)inDelegate credentials:(NSObject *)inCredentials; 26 | + (NSData *)sendSynchronousRequest:(MPOAuthURLRequest *)inRequest usingCredentials:(NSObject *)inCredentials returningResponse:(MPOAuthURLResponse **)outResponse error:(NSError **)inError; 27 | - (id)initWithRequest:(MPOAuthURLRequest *)inRequest delegate:(id)inDelegate credentials:(NSObject *)inCredentials; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /DropBlocks/DropBlocks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.digitalrickshaw.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012, Nate Petersen 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | 1. Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 2. Redistributions in binary form must reproduce the above copyright notice, 10 | this list of conditions and the following disclaimer in the documentation 11 | and/or other materials provided with the distribution. 12 | 13 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 14 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 17 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 20 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 22 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## Dropbox-iOS-SDK 5 | 6 | Copyright (c) 2010-2013 Dropbox, Inc., http://www.dropbox.com/ 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining 9 | a copy of this software and associated documentation files (the 10 | "Software"), to deal in the Software without restriction, including 11 | without limitation the rights to use, copy, modify, merge, publish, 12 | distribute, sublicense, and/or sell copies of the Software, and to 13 | permit persons to whom the Software is furnished to do so, subject to 14 | the following conditions: 15 | 16 | The above copyright notice and this permission notice shall be 17 | included in all copies or substantial portions of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 20 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 22 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 23 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 24 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 25 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | Generated by CocoaPods - http://cocoapods.org 28 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthCredentialStore.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthCredentialStore.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.06. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | extern NSString *kMPOAuthCredentialConsumerKey; 10 | extern NSString *kMPOAuthCredentialConsumerSecret; 11 | extern NSString *kMPOAuthCredentialUsername; 12 | extern NSString *kMPOAuthCredentialPassword; 13 | extern NSString *kMPOAuthCredentialRequestToken; 14 | extern NSString *kMPOAuthCredentialRequestTokenSecret; 15 | extern NSString *kMPOAuthCredentialAccessToken; 16 | extern NSString *kMPOAuthCredentialAccessTokenSecret; 17 | extern NSString *kMPOAuthCredentialSessionHandle; 18 | extern NSString *kMPOAuthCredentialRealm; 19 | 20 | @protocol MPOAuthCredentialStore 21 | 22 | @property (nonatomic, readonly) NSString *consumerKey; 23 | @property (nonatomic, readonly) NSString *consumerSecret; 24 | @property (nonatomic, readonly) NSString *username; 25 | @property (nonatomic, readonly) NSString *password; 26 | @property (nonatomic, readonly, retain) NSString *requestToken; 27 | @property (nonatomic, readonly, retain) NSString *requestTokenSecret; 28 | @property (nonatomic, readonly, retain) NSString *accessToken; 29 | @property (nonatomic, readonly, retain) NSString *accessTokenSecret; 30 | 31 | - (NSString *)credentialNamed:(NSString *)inCredentialName; 32 | - (void)discardOAuthCredentials; 33 | @end 34 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthAuthenticationMethodOAuth.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthAuthenticationMethodOAuth.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 09.12.19. 6 | // Copyright 2009 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MPOAuthAuthenticationMethod.h" 11 | #import "MPOAuthAPI.h" 12 | #import "MPOAuthAPIRequestLoader.h" 13 | 14 | extern NSString * const MPOAuthNotificationRequestTokenReceived; 15 | extern NSString * const MPOAuthNotificationRequestTokenRejected; 16 | 17 | @protocol MPOAuthAuthenticationMethodOAuthDelegate; 18 | 19 | @interface MPOAuthAuthenticationMethodOAuth : MPOAuthAuthenticationMethod { 20 | NSURL *oauthRequestTokenURL_; 21 | NSURL *oauthAuthorizeTokenURL_; 22 | BOOL oauth10aModeActive_; 23 | 24 | id delegate_; 25 | } 26 | 27 | @property (nonatomic, readwrite, assign) id delegate; 28 | 29 | @property (nonatomic, readwrite, retain) NSURL *oauthRequestTokenURL; 30 | @property (nonatomic, readwrite, retain) NSURL *oauthAuthorizeTokenURL; 31 | 32 | - (void)authenticate; 33 | 34 | @end 35 | 36 | @protocol MPOAuthAuthenticationMethodOAuthDelegate 37 | - (NSURL *)callbackURLForCompletedUserAuthorization; 38 | - (BOOL)automaticallyRequestAuthenticationFromURL:(NSURL *)inAuthURL withCallbackURL:(NSURL *)inCallbackURL; 39 | 40 | @optional 41 | - (NSString *)oauthVerifierForCompletedUserAuthorization; 42 | - (void)authenticationDidFailWithError:(NSError *)error; 43 | @end 44 | 45 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthCredentialConcreteStore.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthCredentialConcreteStore.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.11. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MPOAuthCredentialStore.h" 11 | #import "MPOAuthParameterFactory.h" 12 | 13 | @interface MPOAuthCredentialConcreteStore : NSObject { 14 | NSMutableDictionary *store_; 15 | NSURL *baseURL_; 16 | NSURL *authenticationURL_; 17 | } 18 | 19 | @property (nonatomic, readonly, retain) NSURL *baseURL; 20 | @property (nonatomic, readonly, retain) NSURL *authenticationURL; 21 | 22 | @property (nonatomic, readonly) NSString *tokenSecret; 23 | @property (nonatomic, readonly) NSString *signingKey; 24 | 25 | @property (nonatomic, readwrite, retain) NSString *requestToken; 26 | @property (nonatomic, readwrite, retain) NSString *requestTokenSecret; 27 | @property (nonatomic, readwrite, retain) NSString *accessToken; 28 | @property (nonatomic, readwrite, retain) NSString *accessTokenSecret; 29 | 30 | @property (nonatomic, readwrite, retain) NSString *sessionHandle; 31 | 32 | - (id)initWithCredentials:(NSDictionary *)inCredential; 33 | - (id)initWithCredentials:(NSDictionary *)inCredentials forBaseURL:(NSURL *)inBaseURL; 34 | - (id)initWithCredentials:(NSDictionary *)inCredentials forBaseURL:(NSURL *)inBaseURL withAuthenticationURL:(NSURL *)inAuthenticationURL; 35 | 36 | - (void)setCredential:(id)inCredential withName:(NSString *)inName; 37 | - (void)removeCredentialNamed:(NSString *)inName; 38 | 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBMetadata.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBMetadata.h 3 | // DropboxSDK 4 | // 5 | // Created by Brian Smith on 5/3/10. 6 | // Copyright 2010 Dropbox, Inc. All rights reserved. 7 | // 8 | 9 | 10 | @interface DBMetadata : NSObject { 11 | BOOL thumbnailExists; 12 | long long totalBytes; 13 | NSDate* lastModifiedDate; 14 | NSDate *clientMtime; // file's mtime for display purposes only 15 | NSString* path; 16 | BOOL isDirectory; 17 | NSArray* contents; 18 | NSString* hash; 19 | NSString* humanReadableSize; 20 | NSString* root; 21 | NSString* icon; 22 | NSString* rev; 23 | long long revision; // Deprecated; will be removed in version 2. Use rev whenever possible 24 | BOOL isDeleted; 25 | 26 | NSString *filename; 27 | } 28 | 29 | - (id)initWithDictionary:(NSDictionary*)dict; 30 | 31 | @property (nonatomic, readonly) BOOL thumbnailExists; 32 | @property (nonatomic, readonly) long long totalBytes; 33 | @property (nonatomic, readonly) NSDate* lastModifiedDate; 34 | @property (nonatomic, readonly) NSDate* clientMtime; 35 | @property (nonatomic, readonly) NSString* path; 36 | @property (nonatomic, readonly) BOOL isDirectory; 37 | @property (nonatomic, readonly) NSArray* contents; 38 | @property (nonatomic, readonly) NSString* hash; 39 | @property (nonatomic, readonly) NSString* humanReadableSize; 40 | @property (nonatomic, readonly) NSString* root; 41 | @property (nonatomic, readonly) NSString* icon; 42 | @property (nonatomic, readonly) long long revision; // Deprecated, use rev instead 43 | @property (nonatomic, readonly) NSString* rev; 44 | @property (nonatomic, readonly) BOOL isDeleted; 45 | @property (nonatomic, readonly) NSString* filename; 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBBase64Transcoder.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Base64Transcoder.h 3 | * Base64Test 4 | * 5 | * Created by Jonathan Wight on Tue Mar 18 2003. 6 | * Copyright (c) 2003 Toxic Software. All rights reserved. 7 | * 8 | * Permission is hereby granted, free of charge, to any person obtaining a copy 9 | * of this software and associated documentation files (the "Software"), to deal 10 | * in the Software without restriction, including without limitation the rights 11 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | * copies of the Software, and to permit persons to whom the Software is 13 | * furnished to do so, subject to the following conditions: 14 | * 15 | * The above copyright notice and this permission notice shall be included in 16 | * all copies or substantial portions of the Software. 17 | * 18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | * THE SOFTWARE. 25 | * 26 | */ 27 | 28 | #include 29 | #include 30 | 31 | size_t DBEstimateBas64EncodedDataSize(size_t inDataSize); 32 | size_t DBEstimateBas64DecodedDataSize(size_t inDataSize); 33 | 34 | bool DBBase64EncodeData(const void *inInputData, size_t inInputDataSize, char *outOutputData, size_t *ioOutputDataSize); 35 | bool DBBase64DecodeData(const void *inInputData, size_t inInputDataSize, void *ioOutputData, size_t *ioOutputDataSize); 36 | 37 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthAPIRequestLoader.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthAPIRequestLoader.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.05. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | extern NSString * const MPOAuthNotificationRequestTokenReceived; 12 | extern NSString * const MPOAuthNotificationRequestTokenRejected; 13 | extern NSString * const MPOAuthNotificationAccessTokenReceived; 14 | extern NSString * const MPOAuthNotificationAccessTokenRejected; 15 | extern NSString * const MPOAuthNotificationAccessTokenRefreshed; 16 | extern NSString * const MPOAuthNotificationErrorHasOccurred; 17 | 18 | @protocol MPOAuthCredentialStore; 19 | @protocol MPOAuthParameterFactory; 20 | 21 | @class MPOAuthURLRequest; 22 | @class MPOAuthURLResponse; 23 | @class MPOAuthCredentialConcreteStore; 24 | 25 | @interface MPOAuthAPIRequestLoader : NSObject { 26 | MPOAuthCredentialConcreteStore *_credentials; 27 | MPOAuthURLRequest *_oauthRequest; 28 | MPOAuthURLResponse *_oauthResponse; 29 | NSMutableData *_dataBuffer; 30 | NSString *_dataAsString; 31 | NSError *_error; 32 | id _target; 33 | SEL _action; 34 | } 35 | 36 | @property (nonatomic, readwrite, retain) id credentials; 37 | @property (nonatomic, readwrite, retain) MPOAuthURLRequest *oauthRequest; 38 | @property (nonatomic, readwrite, retain) MPOAuthURLResponse *oauthResponse; 39 | @property (nonatomic, readonly, retain) NSData *data; 40 | @property (nonatomic, readonly, retain) NSString *responseString; 41 | @property (nonatomic, readwrite, assign) id target; 42 | @property (nonatomic, readwrite, assign) SEL action; 43 | 44 | - (id)initWithURL:(NSURL *)inURL; 45 | - (id)initWithRequest:(MPOAuthURLRequest *)inRequest; 46 | 47 | - (void)loadSynchronously:(BOOL)inSynchronous; 48 | 49 | @end 50 | 51 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBSession.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBSession.h 3 | // DropboxSDK 4 | // 5 | // Created by Brian Smith on 4/8/10. 6 | // Copyright 2010 Dropbox, Inc. All rights reserved. 7 | // 8 | 9 | #import "MPOAuthCredentialConcreteStore.h" 10 | 11 | extern NSString *kDBSDKVersion; 12 | 13 | extern NSString *kDBDropboxAPIHost; 14 | extern NSString *kDBDropboxAPIContentHost; 15 | extern NSString *kDBDropboxWebHost; 16 | extern NSString *kDBDropboxAPIVersion; 17 | 18 | extern NSString *kDBRootDropbox; 19 | extern NSString *kDBRootAppFolder; 20 | 21 | extern NSString *kDBProtocolHTTPS; 22 | 23 | @protocol DBSessionDelegate; 24 | 25 | 26 | /* Creating and setting the shared DBSession should be done before any other Dropbox objects are 27 | used, perferrably in the UIApplication delegate. */ 28 | @interface DBSession : NSObject { 29 | NSDictionary *baseCredentials; 30 | NSMutableDictionary *credentialStores; 31 | MPOAuthCredentialConcreteStore *anonymousStore; 32 | NSString *root; 33 | id delegate; 34 | } 35 | 36 | + (DBSession*)sharedSession; 37 | + (void)setSharedSession:(DBSession *)session; 38 | 39 | - (id)initWithAppKey:(NSString *)key appSecret:(NSString *)secret root:(NSString *)root; 40 | - (BOOL)isLinked; // Session must be linked before creating any DBRestClient objects 41 | 42 | - (void)unlinkAll; 43 | - (void)unlinkUserId:(NSString *)userId; 44 | 45 | - (MPOAuthCredentialConcreteStore *)credentialStoreForUserId:(NSString *)userId; 46 | - (void)updateAccessToken:(NSString *)token accessTokenSecret:(NSString *)secret forUserId:(NSString *)userId; 47 | 48 | @property (nonatomic, readonly) NSString *root; 49 | @property (nonatomic, readonly) NSArray *userIds; 50 | @property (nonatomic, assign) id delegate; 51 | 52 | @end 53 | 54 | 55 | @protocol DBSessionDelegate 56 | 57 | - (void)sessionDidReceiveAuthorizationFailure:(DBSession *)session userId:(NSString *)userId; 58 | 59 | @end 60 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2010-2013 Dropbox, Inc., http://www.dropbox.com/ 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining 20 | a copy of this software and associated documentation files (the 21 | "Software"), to deal in the Software without restriction, including 22 | without limitation the rights to use, copy, modify, merge, publish, 23 | distribute, sublicense, and/or sell copies of the Software, and to 24 | permit persons to whom the Software is furnished to do so, subject to 25 | the following conditions: 26 | 27 | The above copyright notice and this permission notice shall be 28 | included in all copies or substantial portions of the Software. 29 | 30 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 31 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 32 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 33 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 34 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 35 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 36 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 37 | 38 | Title 39 | Dropbox-iOS-SDK 40 | Type 41 | PSGroupSpecifier 42 | 43 | 44 | FooterText 45 | Generated by CocoaPods - http://cocoapods.org 46 | Title 47 | 48 | Type 49 | PSGroupSpecifier 50 | 51 | 52 | StringsTable 53 | Acknowledgements 54 | Title 55 | Acknowledgements 56 | 57 | 58 | -------------------------------------------------------------------------------- /DropBlocks/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // DropBlocks 4 | // 5 | // Created by Nate Petersen on 10/9/12. 6 | // Copyright (c) 2012 Digital Rickshaw. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "DropBlocks.h" 11 | 12 | @implementation AppDelegate 13 | 14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 15 | { 16 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 17 | // Override point for customization after application launch. 18 | self.window.backgroundColor = [UIColor whiteColor]; 19 | [self.window makeKeyAndVisible]; 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application 24 | { 25 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 26 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 27 | } 28 | 29 | - (void)applicationDidEnterBackground:(UIApplication *)application 30 | { 31 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | - (void)applicationWillEnterForeground:(UIApplication *)application 36 | { 37 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 38 | } 39 | 40 | - (void)applicationDidBecomeActive:(UIApplication *)application 41 | { 42 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 43 | } 44 | 45 | - (void)applicationWillTerminate:(UIApplication *)application 46 | { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSString+DBJSON.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2009 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import 31 | 32 | /** 33 | @brief Adds JSON parsing methods to NSString 34 | 35 | This is a category on NSString that adds methods for parsing the target string. 36 | */ 37 | @interface NSString (NSString_DBJSON) 38 | 39 | 40 | /** 41 | @brief Returns the object represented in the receiver, or nil on error. 42 | 43 | Returns a a scalar object represented by the string's JSON fragment representation. 44 | 45 | @deprecated Given we bill ourselves as a "strict" JSON library, this method should be removed. 46 | */ 47 | - (id)JSONFragmentValue; 48 | 49 | /** 50 | @brief Returns the NSDictionary or NSArray represented by the current string's JSON representation. 51 | 52 | Returns the dictionary or array represented in the receiver, or nil on error. 53 | 54 | Returns the NSDictionary or NSArray represented by the current string's JSON representation. 55 | */ 56 | - (id)JSONValue; 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/JSON.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2009 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | /** 31 | @mainpage A strict JSON parser and generator for Objective-C 32 | 33 | JSON (JavaScript Object Notation) is a lightweight data-interchange 34 | format. This framework provides two apis for parsing and generating 35 | JSON. One standard object-based and a higher level api consisting of 36 | categories added to existing Objective-C classes. 37 | 38 | Learn more on the http://code.google.com/p/json-framework project site. 39 | 40 | This framework does its best to be as strict as possible, both in what it 41 | accepts and what it generates. For example, it does not support trailing commas 42 | in arrays or objects. Nor does it support embedded comments, or 43 | anything else not in the JSON specification. This is considered a feature. 44 | 45 | 46 | SBJson has been renamed to DBJson in the DropboxSDK because static libraries 47 | are unable to hide symbols and other libraries that developers use include 48 | SBJson 49 | 50 | */ 51 | 52 | #import "DBJSON.h" 53 | #import "NSObject+DBJSON.h" 54 | #import "NSString+DBJSON.h" 55 | 56 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSObject+DBJSON.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2009 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import 31 | 32 | 33 | /** 34 | @brief Adds JSON generation to Foundation classes 35 | 36 | This is a category on NSObject that adds methods for returning JSON representations 37 | of standard objects to the objects themselves. This means you can call the 38 | -JSONRepresentation method on an NSArray object and it'll do what you want. 39 | */ 40 | @interface NSObject (NSObject_DBJSON) 41 | 42 | /** 43 | @brief Returns a string containing the receiver encoded as a JSON fragment. 44 | 45 | This method is added as a category on NSObject but is only actually 46 | supported for the following objects: 47 | @li NSDictionary 48 | @li NSArray 49 | @li NSString 50 | @li NSNumber (also used for booleans) 51 | @li NSNull 52 | 53 | @deprecated Given we bill ourselves as a "strict" JSON library, this method should be removed. 54 | */ 55 | - (NSString *)JSONFragment; 56 | 57 | /** 58 | @brief Returns a string containing the receiver encoded in JSON. 59 | 60 | This method is added as a category on NSObject but is only actually 61 | supported for the following objects: 62 | @li NSDictionary 63 | @li NSArray 64 | */ 65 | - (NSString *)JSONRepresentation; 66 | 67 | @end 68 | 69 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBJSON.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007-2009 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import 31 | #import "DBJsonParser.h" 32 | #import "DBJsonWriter.h" 33 | 34 | /** 35 | @brief Facade for DBJsonWriter/DBJsonParser. 36 | 37 | Requests are forwarded to instances of DBJsonWriter and DBJsonParser. 38 | */ 39 | @interface DBJSON : DBJsonBase { 40 | 41 | @private 42 | DBJsonParser *jsonParser; 43 | DBJsonWriter *jsonWriter; 44 | } 45 | 46 | 47 | /// Return the fragment represented by the given string 48 | - (id)fragmentWithString:(NSString*)jsonrep 49 | error:(NSError**)error; 50 | 51 | /// Return the object represented by the given string 52 | - (id)objectWithString:(NSString*)jsonrep 53 | error:(NSError**)error; 54 | 55 | /// Parse the string and return the represented object (or scalar) 56 | - (id)objectWithString:(id)value 57 | allowScalar:(BOOL)x 58 | error:(NSError**)error; 59 | 60 | 61 | /// Return JSON representation of an array or dictionary 62 | - (NSString*)stringWithObject:(id)value 63 | error:(NSError**)error; 64 | 65 | /// Return JSON representation of any legal JSON value 66 | - (NSString*)stringWithFragment:(id)value 67 | error:(NSError**)error; 68 | 69 | /// Return JSON representation (or fragment) for the given object 70 | - (NSString*)stringWithObject:(id)value 71 | allowScalar:(BOOL)x 72 | error:(NSError**)error; 73 | 74 | 75 | @end 76 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBJsonBase.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2009 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import 31 | 32 | extern NSString * DBJSONErrorDomain; 33 | 34 | 35 | enum { 36 | EUNSUPPORTED = 1, 37 | EPARSENUM, 38 | EPARSE, 39 | EFRAGMENT, 40 | ECTRL, 41 | EUNICODE, 42 | EDEPTH, 43 | EESCAPE, 44 | ETRAILCOMMA, 45 | ETRAILGARBAGE, 46 | EEOF, 47 | EINPUT 48 | }; 49 | 50 | /** 51 | @brief Common base class for parsing & writing. 52 | 53 | This class contains the common error-handling code and option between the parser/writer. 54 | */ 55 | @interface DBJsonBase : NSObject { 56 | NSMutableArray *errorTrace; 57 | 58 | @protected 59 | NSUInteger depth, maxDepth; 60 | } 61 | 62 | /** 63 | @brief The maximum recursing depth. 64 | 65 | Defaults to 512. If the input is nested deeper than this the input will be deemed to be 66 | malicious and the parser returns nil, signalling an error. ("Nested too deep".) You can 67 | turn off this security feature by setting the maxDepth value to 0. 68 | */ 69 | @property NSUInteger maxDepth; 70 | 71 | /** 72 | @brief Return an error trace, or nil if there was no errors. 73 | 74 | Note that this method returns the trace of the last method that failed. 75 | You need to check the return value of the call you're making to figure out 76 | if the call actually failed, before you know call this method. 77 | */ 78 | @property(copy,readonly) NSArray* errorTrace; 79 | 80 | /// @internal for use in subclasses to add errors to the stack trace 81 | - (void)addErrorWithCode:(NSUInteger)code description:(NSString*)str; 82 | 83 | /// @internal for use in subclasess to clear the error before a new parsing attempt 84 | - (void)clearErrorTrace; 85 | 86 | @end 87 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBRestRequest.h 3 | // DropboxSDK 4 | // 5 | // Created by Brian Smith on 4/9/10. 6 | // Copyright 2010 Dropbox, Inc. All rights reserved. 7 | // 8 | 9 | 10 | @protocol DBNetworkRequestDelegate; 11 | 12 | /* DBRestRequest will download a URL either into a file that you provied the name to or it will 13 | create an NSData object with the result. When it has completed downloading the URL, it will 14 | notify the target with a selector that takes the DBRestRequest as the only parameter. */ 15 | @interface DBRequest : NSObject { 16 | NSURLRequest* request; 17 | id target; 18 | SEL selector; 19 | NSURLConnection* urlConnection; 20 | NSFileHandle* fileHandle; 21 | NSFileManager* fileManager; 22 | 23 | SEL failureSelector; 24 | SEL downloadProgressSelector; 25 | SEL uploadProgressSelector; 26 | NSString* resultFilename; 27 | NSString* tempFilename; 28 | NSDictionary* userInfo; 29 | NSString *sourcePath; 30 | 31 | NSHTTPURLResponse* response; 32 | NSDictionary* xDropboxMetadataJSON; 33 | NSInteger bytesDownloaded; 34 | CGFloat downloadProgress; 35 | CGFloat uploadProgress; 36 | NSMutableData* resultData; 37 | NSError* error; 38 | } 39 | 40 | /* Set this to get called when _any_ request starts or stops. This should hook into whatever 41 | network activity indicator system you have. */ 42 | + (void)setNetworkRequestDelegate:(id)delegate; 43 | 44 | /* This constructor downloads the URL into the resultData object */ 45 | - (id)initWithURLRequest:(NSURLRequest*)request andInformTarget:(id)target selector:(SEL)selector; 46 | 47 | /* Cancels the request and prevents it from sending additional messages to the delegate. */ 48 | - (void)cancel; 49 | 50 | /* If there is no error, it will parse the response as JSON and make sure the JSON object is the 51 | correct type. If not, it will set the error object with an error code of DBErrorInvalidResponse */ 52 | - (id)parseResponseAsType:(Class)cls; 53 | 54 | @property (nonatomic, assign) SEL failureSelector; // To send failure events to a different selector set this 55 | @property (nonatomic, assign) SEL downloadProgressSelector; // To receive download progress events set this 56 | @property (nonatomic, assign) SEL uploadProgressSelector; // To receive upload progress events set this 57 | @property (nonatomic, retain) NSString* resultFilename; // The file to put the HTTP body in, otherwise body is stored in resultData 58 | @property (nonatomic, retain) NSDictionary* userInfo; 59 | @property (nonatomic, retain) NSString *sourcePath; // Used by methods that upload to refresh the input stream 60 | 61 | @property (nonatomic, readonly) NSURLRequest* request; 62 | @property (nonatomic, readonly) NSHTTPURLResponse* response; 63 | @property (nonatomic, readonly) NSDictionary* xDropboxMetadataJSON; 64 | @property (nonatomic, readonly) NSInteger statusCode; 65 | @property (nonatomic, readonly) CGFloat downloadProgress; 66 | @property (nonatomic, readonly) CGFloat uploadProgress; 67 | @property (nonatomic, readonly) NSData* resultData; 68 | @property (nonatomic, readonly) NSString* resultString; 69 | @property (nonatomic, readonly) NSObject* resultJSON; 70 | @property (nonatomic, readonly) NSError* error; 71 | 72 | @end 73 | 74 | 75 | @protocol DBNetworkRequestDelegate 76 | 77 | - (void)networkRequestStarted; 78 | - (void)networkRequestStopped; 79 | 80 | @end 81 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBJsonParser.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2009 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import 31 | #import "DBJsonBase.h" 32 | 33 | /** 34 | @brief Options for the parser class. 35 | 36 | This exists so the DBJSON facade can implement the options in the parser without having to re-declare them. 37 | */ 38 | @protocol DBJsonParser 39 | 40 | /** 41 | @brief Return the object represented by the given string. 42 | 43 | Returns the object represented by the passed-in string or nil on error. The returned object can be 44 | a string, number, boolean, null, array or dictionary. 45 | 46 | @param repr the json string to parse 47 | */ 48 | - (id)objectWithString:(NSString *)repr; 49 | 50 | @end 51 | 52 | 53 | /** 54 | @brief The JSON parser class. 55 | 56 | JSON is mapped to Objective-C types in the following way: 57 | 58 | @li Null -> NSNull 59 | @li String -> NSMutableString 60 | @li Array -> NSMutableArray 61 | @li Object -> NSMutableDictionary 62 | @li Boolean -> NSNumber (initialised with -initWithBool:) 63 | @li Number -> NSDecimalNumber 64 | 65 | Since Objective-C doesn't have a dedicated class for boolean values, these turns into NSNumber 66 | instances. These are initialised with the -initWithBool: method, and 67 | round-trip back to JSON properly. (They won't silently suddenly become 0 or 1; they'll be 68 | represented as 'true' and 'false' again.) 69 | 70 | JSON numbers turn into NSDecimalNumber instances, 71 | as we can thus avoid any loss of precision. (JSON allows ridiculously large numbers.) 72 | 73 | */ 74 | @interface DBJsonParser : DBJsonBase { 75 | 76 | @private 77 | const char *c; 78 | } 79 | 80 | @end 81 | 82 | // don't use - exists for backwards compatibility with 2.1.x only. Will be removed in 2.3. 83 | @interface DBJsonParser (Private) 84 | - (id)fragmentWithString:(id)repr; 85 | @end 86 | 87 | 88 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthAPI.h: -------------------------------------------------------------------------------- 1 | // 2 | // MPOAuthAPI.h 3 | // MPOAuthConnection 4 | // 5 | // Created by Karl Adam on 08.12.05. 6 | // Copyright 2008 matrixPointer. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MPOAuthCredentialStore.h" 11 | #import "MPOAuthParameterFactory.h" 12 | 13 | extern NSString * const MPOAuthNotificationAccessTokenReceived; 14 | extern NSString * const MPOAuthNotificationAccessTokenRejected; 15 | extern NSString * const MPOAuthNotificationAccessTokenRefreshed; 16 | extern NSString * const MPOAuthNotificationOAuthCredentialsReady; 17 | extern NSString * const MPOAuthNotificationErrorHasOccurred; 18 | 19 | extern NSString * const MPOAuthCredentialRequestTokenKey; 20 | extern NSString * const MPOAuthCredentialRequestTokenSecretKey; 21 | extern NSString * const MPOAuthCredentialAccessTokenKey; 22 | extern NSString * const MPOAuthCredentialAccessTokenSecretKey; 23 | extern NSString * const MPOAuthCredentialSessionHandleKey; 24 | 25 | extern NSString * const MPOAuthTokenRefreshDateDefaultsKey; 26 | 27 | typedef enum { 28 | MPOAuthSignatureSchemePlainText, 29 | MPOAuthSignatureSchemeHMACSHA1, 30 | MPOAuthSignatureSchemeRSASHA1 31 | } MPOAuthSignatureScheme; 32 | 33 | typedef enum { 34 | MPOAuthAuthenticationStateUnauthenticated = 0, 35 | MPOAuthAuthenticationStateAuthenticating = 1, 36 | MPOAuthAuthenticationStateAuthenticated = 2 37 | } MPOAuthAuthenticationState; 38 | 39 | @protocol MPOAuthAPIInternalClient 40 | @end 41 | 42 | @class MPOAuthAuthenticationMethod; 43 | 44 | @interface MPOAuthAPI : NSObject { 45 | @private 46 | id credentials_; 47 | NSURL *baseURL_; 48 | NSURL *authenticationURL_; 49 | MPOAuthAuthenticationMethod *authenticationMethod_; 50 | MPOAuthSignatureScheme signatureScheme_; 51 | NSMutableArray *activeLoaders_; 52 | MPOAuthAuthenticationState oauthAuthenticationState_; 53 | } 54 | 55 | @property (nonatomic, readonly, retain) id credentials; 56 | @property (nonatomic, readonly, retain) NSURL *baseURL; 57 | @property (nonatomic, readonly, retain) NSURL *authenticationURL; 58 | @property (nonatomic, readwrite, retain) MPOAuthAuthenticationMethod *authenticationMethod; 59 | @property (nonatomic, readwrite, assign) MPOAuthSignatureScheme signatureScheme; 60 | 61 | @property (nonatomic, readonly, assign) MPOAuthAuthenticationState authenticationState; 62 | 63 | 64 | - (id)initWithCredentials:(NSDictionary *)inCredentials andBaseURL:(NSURL *)inURL; 65 | - (id)initWithCredentials:(NSDictionary *)inCredentials authenticationURL:(NSURL *)inAuthURL andBaseURL:(NSURL *)inBaseURL; 66 | - (id)initWithCredentials:(NSDictionary *)inCredentials authenticationURL:(NSURL *)inAuthURL andBaseURL:(NSURL *)inBaseURL autoStart:(BOOL)aFlag; 67 | 68 | - (void)authenticate; 69 | - (BOOL)isAuthenticated; 70 | 71 | - (void)performMethod:(NSString *)inMethod withTarget:(id)inTarget andAction:(SEL)inAction; 72 | - (void)performMethod:(NSString *)inMethod atURL:(NSURL *)inURL withParameters:(NSArray *)inParameters withTarget:(id)inTarget andAction:(SEL)inAction; 73 | - (void)performPOSTMethod:(NSString *)inMethod atURL:(NSURL *)inURL withParameters:(NSArray *)inParameters withTarget:(id)inTarget andAction:(SEL)inAction; 74 | - (void)performURLRequest:(NSURLRequest *)inRequest withTarget:(id)inTarget andAction:(SEL)inAction; 75 | 76 | - (NSData *)dataForMethod:(NSString *)inMethod; 77 | - (NSData *)dataForMethod:(NSString *)inMethod withParameters:(NSArray *)inParameters; 78 | - (NSData *)dataForURL:(NSURL *)inURL andMethod:(NSString *)inMethod withParameters:(NSArray *)inParameters; 79 | 80 | - (id)credentialNamed:(NSString *)inCredentialName; 81 | - (void)setCredential:(id)inCredential withName:(NSString *)inName; 82 | - (void)removeCredentialNamed:(NSString *)inName; 83 | 84 | - (void)discardCredentials; 85 | 86 | @end 87 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | DropBlocks 2 | ========== 3 | 4 | Overview 5 | -------- 6 | 7 | DropBlocks is a wrapper for the Dropbox iOS SDK that lets you use blocks instead of delegate callbacks. 8 | 9 | Usage 10 | ----- 11 | 12 | Instead of making a call like this: 13 | 14 | [restClient loadFile:path intoPath:destinationPath]; 15 | 16 | and then implementing these callbacks: 17 | 18 | - (void)restClient:(DBRestClient*)client loadedFile:(NSString*)destPath contentType:(NSString*)contentType metadata:(DBMetadata*)metadata { 19 | NSLog(@"Yay, my file loaded. Let me go find that progress view so I can dismiss it ..."); 20 | } 21 | 22 | - (void)restClient:(DBRestClient*)client loadProgress:(CGFloat)progress forFile:(NSString*)destPath { 23 | NSLog(@"Got some file load progress, let me go find that progress view so I can update it ..."); 24 | } 25 | 26 | - (void)restClient:(DBRestClient*)client loadFileFailedWithError:(NSError*)error { 27 | NSLog(@"Uh oh, something went wrong with the file load. Let me go figure out which one that was ..."); 28 | } 29 | 30 | With DropBlocks you do it all in one place, like so: 31 | 32 | UIProgressView* progressView = ... //make me a progressView and present it 33 | 34 | [DropBlocks loadFile:path intoPath:intoPath:destinationPath completionBlock:^(NSString* contentType, DBMetadata* metadata, NSError* error) { 35 | [progressView removeFromSuperview]; 36 | 37 | if (error) { 38 | NSLog(@"Uh oh, something went wrong with this file load. I'd better do something about that."); 39 | } else { 40 | NSLog(@"Yay, my file loaded. My work here is done."); 41 | } 42 | } progressBlock:^(CGFloat progress) { 43 | progressView.progress = progress; 44 | }]; 45 | 46 | Installation 47 | ------------ 48 | 49 | I highly recommend that you use CocoaPods to integrate DropBlocks into your app. If you aren't familiar with it, 50 | CocoaPods is an awesomely simple dependency manager for Objective-C projects. You can get more info about it [here](http://cocoapods.org). 51 | 52 | If you're using CocoaPods, all you have to do is put this line in your Podfile: 53 | 54 | pod 'DropBlocks', '0.0.3' 55 | 56 | And you're done. That will also cause the standard Dropbox SDK to be pulled into your project automatically. 57 | 58 | *** 59 | 60 | If you aren't using CocoaPods (Why not? What's your problem??) then you'll have to just grab the DropBlocks 61 | source and drop it into your project. You'll need *DropBlocks.m* and *DropBlocks.h*. You'll also have to manually 62 | integrate the standard Dropbox SDK into your project. Consult the 63 | [Dropbox SDK documentation](https://www.dropbox.com/developers/start/setup#ios) for more information about that. 64 | 65 | Setup 66 | ----- 67 | 68 | You'll need to do all the normal setup for Dropbox in your code (linking account, creating session, etc). 69 | You can find information on that in [Dropbox SDK documentation](https://www.dropbox.com/developers/start/authentication#ios). 70 | 71 | DropBlocks is meant to be a replacement for all the calls you would normally make to the DBRestClient class. 72 | 73 | Caveats 74 | ------- 75 | 76 | DropBlocks version 0.0.3 is still a beta release, though it is starting to see use in more productions apps. 77 | Some of the methods have not been thoroughly tested. 78 | Use at your own risk, and please file a bug if you encounter any problems. 79 | 80 | Additional Contributors 81 | ------- 82 | 83 | John Blanco ([ZaBlanc](https://github.com/ZaBlanc)) - Fixed file uploading and improved the callback typedefs for better auto-completion. ([#1](https://github.com/natep/DropBlocks/issues/1)). 84 | 85 | *** 86 | 87 | Ryan Tsao ([rtsao](https://github.com/rtsao)) 88 | - Fixed progress typedef. ([#3](https://github.com/natep/DropBlocks/issues/3)) 89 | - Added progress block to uploadFileChunk. ([#6](https://github.com/natep/DropBlocks/issues/6)) 90 | 91 | Contact 92 | ------- 93 | 94 | If you end up using DropBlocks in a project, I'd love to hear about it. 95 | 96 | email: [nate@digitalrickshaw.com](mailto:nate@digitalrickshaw.com) 97 | twitter: [@nate_petersen](https://twitter.com/nate_petersen) 98 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | realpath() { 12 | DIRECTORY="$(cd "${1%/*}" && pwd)" 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 63 | if [[ "${ACTION}" == "install" ]]; then 64 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 65 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 66 | fi 67 | rm -f "$RESOURCES_TO_COPY" 68 | 69 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 70 | then 71 | case "${TARGETED_DEVICE_FAMILY}" in 72 | 1,2) 73 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 74 | ;; 75 | 1) 76 | TARGET_DEVICE_ARGS="--target-device iphone" 77 | ;; 78 | 2) 79 | TARGET_DEVICE_ARGS="--target-device ipad" 80 | ;; 81 | *) 82 | TARGET_DEVICE_ARGS="--target-device mac" 83 | ;; 84 | esac 85 | 86 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 87 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 88 | while read line; do 89 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 90 | XCASSET_FILES+=("$line") 91 | fi 92 | done <<<"$OTHER_XCASSETS" 93 | 94 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 95 | fi 96 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBJsonWriter.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2009 Stig Brautaset. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of its contributors may be used 15 | to endorse or promote products derived from this software without specific 16 | prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #import 31 | #import "DBJsonBase.h" 32 | 33 | /** 34 | @brief Options for the writer class. 35 | 36 | This exists so the DBJSON facade can implement the options in the writer without having to re-declare them. 37 | */ 38 | @protocol DBJsonWriter 39 | 40 | /** 41 | @brief Whether we are generating human-readable (multiline) JSON. 42 | 43 | Set whether or not to generate human-readable JSON. The default is NO, which produces 44 | JSON without any whitespace. (Except inside strings.) If set to YES, generates human-readable 45 | JSON with linebreaks after each array value and dictionary key/value pair, indented two 46 | spaces per nesting level. 47 | */ 48 | @property BOOL humanReadable; 49 | 50 | /** 51 | @brief Whether or not to sort the dictionary keys in the output. 52 | 53 | If this is set to YES, the dictionary keys in the JSON output will be in sorted order. 54 | (This is useful if you need to compare two structures, for example.) The default is NO. 55 | */ 56 | @property BOOL sortKeys; 57 | 58 | /** 59 | @brief Return JSON representation (or fragment) for the given object. 60 | 61 | Returns a string containing JSON representation of the passed in value, or nil on error. 62 | If nil is returned and @p error is not NULL, @p *error can be interrogated to find the cause of the error. 63 | 64 | @param value any instance that can be represented as a JSON fragment 65 | 66 | */ 67 | - (NSString*)stringWithObject:(id)value; 68 | 69 | @end 70 | 71 | 72 | /** 73 | @brief The JSON writer class. 74 | 75 | Objective-C types are mapped to JSON types in the following way: 76 | 77 | @li NSNull -> Null 78 | @li NSString -> String 79 | @li NSArray -> Array 80 | @li NSDictionary -> Object 81 | @li NSNumber (-initWithBool:) -> Boolean 82 | @li NSNumber -> Number 83 | 84 | In JSON the keys of an object must be strings. NSDictionary keys need 85 | not be, but attempting to convert an NSDictionary with non-string keys 86 | into JSON will throw an exception. 87 | 88 | NSNumber instances created with the +initWithBool: method are 89 | converted into the JSON boolean "true" and "false" values, and vice 90 | versa. Any other NSNumber instances are converted to a JSON number the 91 | way you would expect. 92 | 93 | */ 94 | @interface DBJsonWriter : DBJsonBase { 95 | 96 | @private 97 | BOOL sortKeys, humanReadable; 98 | } 99 | 100 | @end 101 | 102 | // don't use - exists for backwards compatibility. Will be removed in 2.3. 103 | @interface DBJsonWriter (Private) 104 | - (NSString*)stringWithFragment:(id)value; 105 | @end 106 | 107 | /** 108 | @brief Allows generation of JSON for otherwise unsupported classes. 109 | 110 | If you have a custom class that you want to create a JSON representation for you can implement 111 | this method in your class. It should return a representation of your object defined 112 | in terms of objects that can be translated into JSON. For example, a Person 113 | object might implement it like this: 114 | 115 | @code 116 | - (id)jsonProxyObject { 117 | return [NSDictionary dictionaryWithObjectsAndKeys: 118 | name, @"name", 119 | phone, @"phone", 120 | email, @"email", 121 | nil]; 122 | } 123 | @endcode 124 | 125 | */ 126 | @interface NSObject (SBProxyForJson) 127 | - (id)proxyForJson; 128 | @end 129 | 130 | -------------------------------------------------------------------------------- /DropBlocks/Classes/DropBlocks.h: -------------------------------------------------------------------------------- 1 | // 2 | // DropBlocks.h 3 | // 4 | // Created by Nate Petersen on 10/8/12. 5 | // Copyright (c) 2012 Nate Petersen. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | #ifdef COCOAPODS 11 | #import "DropboxSDK.h" 12 | #import "DBDeltaEntry.h" 13 | #else 14 | #import 15 | #import 16 | #endif 17 | 18 | typedef void (^LoadMetadataCallback)(DBMetadata *metadata, NSError *error); 19 | typedef void (^LoadDeltaCallback)(NSArray *entries, BOOL shouldReset, NSString *cursor, BOOL hasMore, NSError *error); 20 | typedef void (^LoadStreamableURLCallback)(NSURL *url, NSError *error); 21 | typedef void (^LoadFileCallback)(NSString *contentType, DBMetadata *metadata, NSError *error); 22 | typedef void (^LoadFileProgressCallback)(CGFloat progress); 23 | typedef void (^LoadThumbnailCallback)(DBMetadata *metadata, NSError *error); 24 | typedef void (^UploadFileCallback)(NSString *destDir, DBMetadata *metadata, NSError *error); 25 | typedef void (^UploadFileProgressCallback)(CGFloat progress); 26 | typedef void (^UploadFileChunkCallback)(NSString *uploadId, unsigned long long offset, NSDate *expiresDate, NSError *error); 27 | typedef void (^UploadFileChunkProgressCallback)(CGFloat progress); 28 | typedef void (^LoadRevisionsCallback)(NSArray *revisions, NSError *error); 29 | typedef void (^RestoreFileCallback)(DBMetadata *metadata, NSError *error); 30 | typedef void (^CreateFolderCallback)(DBMetadata *metadata, NSError *error); 31 | typedef void (^DeletePathCallback)(NSError *error); 32 | typedef void (^CopyPathCallback)(DBMetadata *metadata, NSError *error); 33 | typedef void (^CreateCopyRefCallback)(NSString *copyRef, NSError *error); 34 | typedef void (^CopyFromRefCallback)(DBMetadata *metadata, NSError *error); 35 | typedef void (^MovePathCallback)(DBMetadata *metadata, NSError *error); 36 | typedef void (^LoadAccountInfoCallback)(DBAccountInfo *metadata, NSError *error); 37 | typedef void (^SearchPathCallback)(NSArray *results, NSError *error); 38 | typedef void (^LoadSharableLinkCallback)(NSString *link, NSError *error); 39 | 40 | 41 | @interface DropBlocks : NSObject 42 | 43 | + (void)cancelAllRequests; 44 | 45 | + (void)loadMetadata:(NSString*)path completionBlock:(LoadMetadataCallback)completionBlock; 46 | + (void)loadMetadata:(NSString*)path withHash:(NSString*)hash completionBlock:(LoadMetadataCallback)completionBlock; 47 | + (void)loadMetadata:(NSString*)path atRev:(NSString *)rev completionBlock:(LoadMetadataCallback)completionBlock; 48 | 49 | + (void)loadDelta:(NSString *)cursor completionBlock:(LoadDeltaCallback)completionBlock; 50 | 51 | + (void)loadFile:(NSString *)path intoPath:(NSString *)destinationPath completionBlock:(LoadFileCallback)completionBlock progressBlock:(LoadFileProgressCallback)progressBlock; 52 | + (void)loadFile:(NSString *)path atRev:(NSString *)rev intoPath:(NSString *)destinationPath completionBlock:(LoadFileCallback)completionBlock progressBlock:(LoadFileProgressCallback)progressBlock; 53 | 54 | + (void)loadThumbnail:(NSString *)path ofSize:(NSString *)size intoPath:(NSString *)destinationPath completionBlock:(LoadThumbnailCallback)completionBlock; 55 | 56 | + (void)uploadFile:(NSString *)filename toPath:(NSString *)path withParentRev:(NSString *)parentRev fromPath:(NSString *)sourcePath completionBlock:(UploadFileCallback)completionBlock progressBlock:(UploadFileProgressCallback)progressBlock; 57 | 58 | + (void)uploadFileChunk:(NSString *)uploadId offset:(unsigned long long)offset fromPath:(NSString *)localPath completionBlock:(UploadFileChunkCallback)completionBlock; 59 | 60 | + (void)uploadFileChunk:(NSString *)uploadId offset:(unsigned long long)offset fromPath:(NSString *)localPath completionBlock:(UploadFileChunkCallback)completionBlock progressBlock:(UploadFileChunkProgressCallback)progressBlock; 61 | 62 | + (void)uploadFile:(NSString *)filename toPath:(NSString *)parentFolder withParentRev:(NSString *)parentRev fromUploadId:(NSString *)uploadId completionBlock:(UploadFileCallback)completionBlock; 63 | 64 | + (void)loadRevisionsForFile:(NSString *)path completionBlock:(LoadRevisionsCallback)completionBlock; 65 | 66 | + (void)loadRevisionsForFile:(NSString *)path limit:(NSInteger)limit completionBlock:(LoadRevisionsCallback)completionBlock; 67 | 68 | + (void)restoreFile:(NSString *)path toRev:(NSString *)rev completionBlock:(RestoreFileCallback)completionBlock; 69 | 70 | + (void)createFolder:(NSString*)path completionBlock:(CreateFolderCallback)completionBlock; 71 | 72 | + (void)deletePath:(NSString*)path completionBlock:(DeletePathCallback)completionBlock; 73 | 74 | + (void)copyFrom:(NSString*)fromPath toPath:(NSString *)toPath completionBlock:(CopyPathCallback)completionBlock; 75 | 76 | + (void)createCopyRef:(NSString *)path completionBlock:(CreateCopyRefCallback)completionBlock; 77 | 78 | + (void)copyFromRef:(NSString*)copyRef toPath:(NSString *)toPath completionBlock:(CopyFromRefCallback)completionBlock; 79 | 80 | + (void)moveFrom:(NSString*)fromPath toPath:(NSString *)toPath completionBlock:(MovePathCallback)completionBlock; 81 | 82 | + (void)loadAccountInfo:(LoadAccountInfoCallback)completionBlock; 83 | 84 | + (void)searchPath:(NSString*)path forKeyword:(NSString*)keyword completionBlock:(SearchPathCallback)completionBlock; 85 | 86 | + (void)loadSharableLinkForFile:(NSString *)path shortUrl:(BOOL)createShortUrl completionBlock:(LoadSharableLinkCallback)completionBlock; 87 | 88 | + (void)loadStreamableURLForFile:(NSString *)path completionBlock:(LoadStreamableURLCallback)completionBlock; 89 | 90 | 91 | 92 | @end 93 | -------------------------------------------------------------------------------- /Pods/Dropbox-iOS-SDK/dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBRestClient.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBRestClient.h 3 | // DropboxSDK 4 | // 5 | // Created by Brian Smith on 4/9/10. 6 | // Copyright 2010 Dropbox, Inc. All rights reserved. 7 | // 8 | 9 | 10 | #import "DBSession.h" 11 | 12 | @protocol DBRestClientDelegate; 13 | @class DBAccountInfo; 14 | @class DBMetadata; 15 | 16 | @interface DBRestClient : NSObject { 17 | DBSession* session; 18 | NSString* userId; 19 | NSString* root; 20 | NSMutableSet* requests; 21 | /* Map from path to the load request. Needs to be expanded to a general framework for cancelling 22 | requests. */ 23 | NSMutableDictionary* loadRequests; 24 | NSMutableDictionary* imageLoadRequests; 25 | NSMutableDictionary* uploadRequests; 26 | id delegate; 27 | } 28 | 29 | - (id)initWithSession:(DBSession*)session; 30 | - (id)initWithSession:(DBSession *)session userId:(NSString *)userId; 31 | 32 | /* Cancels all outstanding requests. No callback for those requests will be sent */ 33 | - (void)cancelAllRequests; 34 | 35 | 36 | /* Loads metadata for the object at the given root/path and returns the result to the delegate as a 37 | dictionary */ 38 | - (void)loadMetadata:(NSString*)path withHash:(NSString*)hash; 39 | 40 | - (void)loadMetadata:(NSString*)path; 41 | 42 | /* This will load the metadata of a file at a given rev */ 43 | - (void)loadMetadata:(NSString *)path atRev:(NSString *)rev; 44 | 45 | /* Loads a list of files (represented as DBDeltaEntry objects) that have changed since the cursor was generated */ 46 | - (void)loadDelta:(NSString *)cursor; 47 | 48 | 49 | /* Loads the file contents at the given root/path and stores the result into destinationPath */ 50 | - (void)loadFile:(NSString *)path intoPath:(NSString *)destinationPath; 51 | 52 | /* This will load a file as it existed at a given rev */ 53 | - (void)loadFile:(NSString *)path atRev:(NSString *)rev intoPath:(NSString *)destPath; 54 | 55 | - (void)cancelFileLoad:(NSString*)path; 56 | 57 | 58 | - (void)loadThumbnail:(NSString *)path ofSize:(NSString *)size intoPath:(NSString *)destinationPath; 59 | - (void)cancelThumbnailLoad:(NSString*)path size:(NSString*)size; 60 | 61 | /* Uploads a file that will be named filename to the given path on the server. sourcePath is the 62 | full path of the file you want to upload. If you are modifying a file, parentRev represents the 63 | rev of the file before you modified it as returned from the server. If you are uploading a new 64 | file set parentRev to nil. */ 65 | - (void)uploadFile:(NSString *)filename toPath:(NSString *)path withParentRev:(NSString *)parentRev 66 | fromPath:(NSString *)sourcePath; 67 | 68 | - (void)cancelFileUpload:(NSString *)path; 69 | 70 | /* Avoid using this because it is very easy to overwrite conflicting changes. Provided for backwards 71 | compatibility reasons only */ 72 | - (void)uploadFile:(NSString*)filename toPath:(NSString*)path fromPath:(NSString *)sourcePath __attribute__((deprecated)); 73 | 74 | /* These calls allow you to upload files in chunks, which is better for file larger than a few megabytes. 75 | You can append bytes to the file using -[DBRestClient uploadFileChunk:offset:uploadId:] and then call 76 | -[DBRestClient uploadFile:toPath:withParentRev:fromUploadId:] to turn the bytes appended at that uploadId 77 | into an actual file in the user's Dropbox. 78 | Use a nil uploadId to start uploading a new file. */ 79 | - (void)uploadFileChunk:(NSString *)uploadId offset:(unsigned long long)offset fromPath:(NSString *)localPath; 80 | - (void)uploadFile:(NSString *)filename toPath:(NSString *)parentFolder withParentRev:(NSString *)parentRev 81 | fromUploadId:(NSString *)uploadId; 82 | 83 | 84 | /* Loads a list of up to 10 DBMetadata objects representing past revisions of the file at path */ 85 | - (void)loadRevisionsForFile:(NSString *)path; 86 | 87 | /* Same as above but with a configurable limit to number of DBMetadata objects returned, up to 1000 */ 88 | - (void)loadRevisionsForFile:(NSString *)path limit:(NSInteger)limit; 89 | 90 | /* Restores a file at path as it existed at the given rev and returns the metadata of the restored 91 | file after restoration */ 92 | - (void)restoreFile:(NSString *)path toRev:(NSString *)rev; 93 | 94 | /* Creates a folder at the given root/path */ 95 | - (void)createFolder:(NSString*)path; 96 | 97 | - (void)deletePath:(NSString*)path; 98 | 99 | - (void)copyFrom:(NSString*)fromPath toPath:(NSString *)toPath; 100 | 101 | - (void)createCopyRef:(NSString *)path; // Used to copy between Dropboxes 102 | - (void)copyFromRef:(NSString*)copyRef toPath:(NSString *)toPath; // Takes copy ref created by above call 103 | 104 | - (void)moveFrom:(NSString*)fromPath toPath:(NSString *)toPath; 105 | 106 | - (void)loadAccountInfo; 107 | 108 | - (void)searchPath:(NSString*)path forKeyword:(NSString*)keyword; 109 | 110 | - (void)loadSharableLinkForFile:(NSString *)path; 111 | - (void)loadSharableLinkForFile:(NSString *)path shortUrl:(BOOL)createShortUrl; 112 | 113 | - (void)loadStreamableURLForFile:(NSString *)path; 114 | 115 | - (NSUInteger)requestCount; 116 | 117 | @property (nonatomic, assign) id delegate; 118 | 119 | @end 120 | 121 | 122 | 123 | 124 | /* The delegate provides allows the user to get the result of the calls made on the DBRestClient. 125 | Right now, the error parameter of failed calls may be nil and [error localizedDescription] does 126 | not contain an error message appropriate to show to the user. */ 127 | @protocol DBRestClientDelegate 128 | 129 | @optional 130 | 131 | - (void)restClient:(DBRestClient*)client loadedMetadata:(DBMetadata*)metadata; 132 | - (void)restClient:(DBRestClient*)client metadataUnchangedAtPath:(NSString*)path; 133 | - (void)restClient:(DBRestClient*)client loadMetadataFailedWithError:(NSError*)error; 134 | // [error userInfo] contains the root and path of the call that failed 135 | 136 | - (void)restClient:(DBRestClient*)client loadedDeltaEntries:(NSArray *)entries reset:(BOOL)shouldReset cursor:(NSString *)cursor hasMore:(BOOL)hasMore; 137 | - (void)restClient:(DBRestClient*)client loadDeltaFailedWithError:(NSError *)error; 138 | 139 | - (void)restClient:(DBRestClient*)client loadedAccountInfo:(DBAccountInfo*)info; 140 | - (void)restClient:(DBRestClient*)client loadAccountInfoFailedWithError:(NSError*)error; 141 | 142 | - (void)restClient:(DBRestClient*)client loadedFile:(NSString*)destPath; 143 | // Implement the following callback instead of the previous if you care about the value of the 144 | // Content-Type HTTP header and the file metadata. Only one will be called per successful response. 145 | - (void)restClient:(DBRestClient*)client loadedFile:(NSString*)destPath contentType:(NSString*)contentType metadata:(DBMetadata*)metadata; 146 | - (void)restClient:(DBRestClient*)client loadProgress:(CGFloat)progress forFile:(NSString*)destPath; 147 | - (void)restClient:(DBRestClient*)client loadFileFailedWithError:(NSError*)error; 148 | // [error userInfo] contains the destinationPath 149 | 150 | 151 | - (void)restClient:(DBRestClient*)client loadedThumbnail:(NSString*)destPath metadata:(DBMetadata*)metadata; 152 | - (void)restClient:(DBRestClient*)client loadThumbnailFailedWithError:(NSError*)error; 153 | 154 | - (void)restClient:(DBRestClient*)client uploadedFile:(NSString*)destPath from:(NSString*)srcPath 155 | metadata:(DBMetadata*)metadata; 156 | - (void)restClient:(DBRestClient*)client uploadProgress:(CGFloat)progress 157 | forFile:(NSString*)destPath from:(NSString*)srcPath; 158 | - (void)restClient:(DBRestClient*)client uploadFileFailedWithError:(NSError*)error; 159 | // [error userInfo] contains the sourcePath 160 | 161 | - (void)restClient:(DBRestClient *)client uploadedFileChunk:(NSString *)uploadId newOffset:(unsigned long long)offset 162 | fromFile:(NSString *)localPath expires:(NSDate *)expiresDate; 163 | - (void)restClient:(DBRestClient *)client uploadFileChunkFailedWithError:(NSError *)error; 164 | - (void)restClient:(DBRestClient *)client uploadFileChunkProgress:(CGFloat)progress 165 | forFile:(NSString *)uploadId offset:(unsigned long long)offset fromPath:(NSString *)localPath; 166 | 167 | - (void)restClient:(DBRestClient *)client uploadedFile:(NSString *)destPath fromUploadId:(NSString *)uploadId 168 | metadata:(DBMetadata *)metadata; 169 | - (void)restClient:(DBRestClient *)client uploadFromUploadIdFailedWithError:(NSError *)error; 170 | 171 | // Deprecated upload callback 172 | - (void)restClient:(DBRestClient*)client uploadedFile:(NSString*)destPath from:(NSString*)srcPath; 173 | 174 | // Deprecated download callbacks 175 | - (void)restClient:(DBRestClient*)client loadedFile:(NSString*)destPath contentType:(NSString*)contentType; 176 | - (void)restClient:(DBRestClient*)client loadedThumbnail:(NSString*)destPath; 177 | 178 | - (void)restClient:(DBRestClient*)client loadedRevisions:(NSArray *)revisions forFile:(NSString *)path; 179 | - (void)restClient:(DBRestClient*)client loadRevisionsFailedWithError:(NSError *)error; 180 | 181 | - (void)restClient:(DBRestClient*)client restoredFile:(DBMetadata *)fileMetadata; 182 | - (void)restClient:(DBRestClient*)client restoreFileFailedWithError:(NSError *)error; 183 | 184 | - (void)restClient:(DBRestClient*)client createdFolder:(DBMetadata*)folder; 185 | // Folder is the metadata for the newly created folder 186 | - (void)restClient:(DBRestClient*)client createFolderFailedWithError:(NSError*)error; 187 | // [error userInfo] contains the root and path 188 | 189 | - (void)restClient:(DBRestClient*)client deletedPath:(NSString *)path; 190 | - (void)restClient:(DBRestClient*)client deletePathFailedWithError:(NSError*)error; 191 | // [error userInfo] contains the root and path 192 | 193 | - (void)restClient:(DBRestClient*)client copiedPath:(NSString *)fromPath to:(DBMetadata *)to; 194 | - (void)restClient:(DBRestClient*)client copyPathFailedWithError:(NSError*)error; 195 | // [error userInfo] contains the root and path 196 | 197 | - (void)restClient:(DBRestClient*)client createdCopyRef:(NSString *)copyRef forPath:(NSString *)path; 198 | - (void)restClient:(DBRestClient*)client createCopyRefFailedWithError:(NSError *)error; 199 | 200 | // Deprecated copy ref callback 201 | - (void)restClient:(DBRestClient*)client createdCopyRef:(NSString *)copyRef; 202 | 203 | - (void)restClient:(DBRestClient*)client copiedRef:(NSString *)copyRef to:(DBMetadata *)to; 204 | - (void)restClient:(DBRestClient*)client copyFromRefFailedWithError:(NSError*)error; 205 | 206 | - (void)restClient:(DBRestClient*)client movedPath:(NSString *)from_path to:(DBMetadata *)result; 207 | - (void)restClient:(DBRestClient*)client movePathFailedWithError:(NSError*)error; 208 | // [error userInfo] contains the root and path 209 | 210 | - (void)restClient:(DBRestClient*)restClient loadedSearchResults:(NSArray*)results 211 | forPath:(NSString*)path keyword:(NSString*)keyword; 212 | // results is a list of DBMetadata * objects 213 | - (void)restClient:(DBRestClient*)restClient searchFailedWithError:(NSError*)error; 214 | 215 | - (void)restClient:(DBRestClient*)restClient loadedSharableLink:(NSString*)link 216 | forFile:(NSString*)path; 217 | - (void)restClient:(DBRestClient*)restClient loadSharableLinkFailedWithError:(NSError*)error; 218 | 219 | - (void)restClient:(DBRestClient*)restClient loadedStreamableURL:(NSURL*)url forFile:(NSString*)path; 220 | - (void)restClient:(DBRestClient*)restClient loadStreamableURLFailedWithError:(NSError*)error; 221 | 222 | 223 | @end 224 | 225 | 226 | -------------------------------------------------------------------------------- /DropBlocks.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 9A6166EE1624F65600311E19 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A6166ED1624F65600311E19 /* UIKit.framework */; }; 11 | 9A6166F01624F65600311E19 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A6166EF1624F65600311E19 /* Foundation.framework */; }; 12 | 9A6166F21624F65600311E19 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A6166F11624F65600311E19 /* CoreGraphics.framework */; }; 13 | 9A6166F81624F65600311E19 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9A6166F61624F65600311E19 /* InfoPlist.strings */; }; 14 | 9A6166FA1624F65600311E19 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A6166F91624F65600311E19 /* main.m */; }; 15 | 9A6166FE1624F65600311E19 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A6166FD1624F65600311E19 /* AppDelegate.m */; }; 16 | 9A6167001624F65600311E19 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 9A6166FF1624F65600311E19 /* Default.png */; }; 17 | 9A6167021624F65600311E19 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 9A6167011624F65600311E19 /* Default@2x.png */; }; 18 | 9A6167041624F65600311E19 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 9A6167031624F65600311E19 /* Default-568h@2x.png */; }; 19 | 9A6167141624F6EA00311E19 /* DropBlocks.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A6167131624F6EA00311E19 /* DropBlocks.m */; }; 20 | 9A6167211624FB0D00311E19 /* DropBlocks.podspec in Resources */ = {isa = PBXBuildFile; fileRef = 9A61671E1624FB0D00311E19 /* DropBlocks.podspec */; }; 21 | 9A6167221624FB0D00311E19 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 9A61671F1624FB0D00311E19 /* LICENSE */; }; 22 | 9A6167231624FB0D00311E19 /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = 9A6167201624FB0D00311E19 /* Podfile */; }; 23 | 9AE76B04162E57950026CBDE /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 9AE76B03162E57950026CBDE /* README.md */; }; 24 | 9CEFE3F31D1E49A2A5EAAEBC /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 286B19289CA845DDBF5A6D31 /* libPods.a */; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXFileReference section */ 28 | 286B19289CA845DDBF5A6D31 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | 560B541E61741189386A0325 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = ""; }; 30 | 9A6166E91624F65600311E19 /* DropBlocks.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DropBlocks.app; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 9A6166ED1624F65600311E19 /* UIKit.framework */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 32 | 9A6166EF1624F65600311E19 /* Foundation.framework */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 33 | 9A6166F11624F65600311E19 /* CoreGraphics.framework */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 34 | 9A6166F51624F65600311E19 /* DropBlocks-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "DropBlocks-Info.plist"; sourceTree = ""; }; 35 | 9A6166F71624F65600311E19 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 36 | 9A6166F91624F65600311E19 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 37 | 9A6166FB1624F65600311E19 /* DropBlocks-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DropBlocks-Prefix.pch"; sourceTree = ""; }; 38 | 9A6166FC1624F65600311E19 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 39 | 9A6166FD1624F65600311E19 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 40 | 9A6166FF1624F65600311E19 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; 41 | 9A6167011624F65600311E19 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; 42 | 9A6167031624F65600311E19 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; 43 | 9A6167121624F6EA00311E19 /* DropBlocks.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DropBlocks.h; sourceTree = ""; }; 44 | 9A6167131624F6EA00311E19 /* DropBlocks.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DropBlocks.m; sourceTree = ""; }; 45 | 9A61671E1624FB0D00311E19 /* DropBlocks.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DropBlocks.podspec; sourceTree = ""; }; 46 | 9A61671F1624FB0D00311E19 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 47 | 9A6167201624FB0D00311E19 /* Podfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Podfile; sourceTree = ""; }; 48 | 9AE76B03162E57950026CBDE /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README.md; sourceTree = ""; }; 49 | B972FF23724FE24DACF246AE /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 9A6166E61624F65600311E19 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 9A6166EE1624F65600311E19 /* UIKit.framework in Frameworks */, 58 | 9A6166F01624F65600311E19 /* Foundation.framework in Frameworks */, 59 | 9A6166F21624F65600311E19 /* CoreGraphics.framework in Frameworks */, 60 | 9CEFE3F31D1E49A2A5EAAEBC /* libPods.a in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXFrameworksBuildPhase section */ 65 | 66 | /* Begin PBXGroup section */ 67 | 4419E91547C15FE898D3FEA8 /* Pods */ = { 68 | isa = PBXGroup; 69 | children = ( 70 | 560B541E61741189386A0325 /* Pods.debug.xcconfig */, 71 | B972FF23724FE24DACF246AE /* Pods.release.xcconfig */, 72 | ); 73 | name = Pods; 74 | sourceTree = ""; 75 | }; 76 | 9A6166DE1624F65600311E19 = { 77 | isa = PBXGroup; 78 | children = ( 79 | 9A6166F31624F65600311E19 /* DropBlocks */, 80 | 9A6166EC1624F65600311E19 /* Frameworks */, 81 | 9A6166EA1624F65600311E19 /* Products */, 82 | 9A61671C1624FAF600311E19 /* Text Files */, 83 | 4419E91547C15FE898D3FEA8 /* Pods */, 84 | ); 85 | sourceTree = ""; 86 | }; 87 | 9A6166EA1624F65600311E19 /* Products */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | 9A6166E91624F65600311E19 /* DropBlocks.app */, 91 | ); 92 | name = Products; 93 | sourceTree = ""; 94 | }; 95 | 9A6166EC1624F65600311E19 /* Frameworks */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 9A6166ED1624F65600311E19 /* UIKit.framework */, 99 | 9A6166EF1624F65600311E19 /* Foundation.framework */, 100 | 9A6166F11624F65600311E19 /* CoreGraphics.framework */, 101 | 286B19289CA845DDBF5A6D31 /* libPods.a */, 102 | ); 103 | name = Frameworks; 104 | sourceTree = ""; 105 | }; 106 | 9A6166F31624F65600311E19 /* DropBlocks */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 9A6166FC1624F65600311E19 /* AppDelegate.h */, 110 | 9A6166FD1624F65600311E19 /* AppDelegate.m */, 111 | 9A61670A1624F68000311E19 /* Classes */, 112 | 9A6166F41624F65600311E19 /* Supporting Files */, 113 | ); 114 | path = DropBlocks; 115 | sourceTree = ""; 116 | }; 117 | 9A6166F41624F65600311E19 /* Supporting Files */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 9A6166F51624F65600311E19 /* DropBlocks-Info.plist */, 121 | 9A6166F61624F65600311E19 /* InfoPlist.strings */, 122 | 9A6166F91624F65600311E19 /* main.m */, 123 | 9A6166FB1624F65600311E19 /* DropBlocks-Prefix.pch */, 124 | 9A6166FF1624F65600311E19 /* Default.png */, 125 | 9A6167011624F65600311E19 /* Default@2x.png */, 126 | 9A6167031624F65600311E19 /* Default-568h@2x.png */, 127 | ); 128 | name = "Supporting Files"; 129 | sourceTree = ""; 130 | }; 131 | 9A61670A1624F68000311E19 /* Classes */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 9A6167121624F6EA00311E19 /* DropBlocks.h */, 135 | 9A6167131624F6EA00311E19 /* DropBlocks.m */, 136 | ); 137 | path = Classes; 138 | sourceTree = ""; 139 | }; 140 | 9A61671C1624FAF600311E19 /* Text Files */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 9A61671E1624FB0D00311E19 /* DropBlocks.podspec */, 144 | 9A61671F1624FB0D00311E19 /* LICENSE */, 145 | 9A6167201624FB0D00311E19 /* Podfile */, 146 | 9AE76B03162E57950026CBDE /* README.md */, 147 | ); 148 | name = "Text Files"; 149 | sourceTree = ""; 150 | }; 151 | /* End PBXGroup section */ 152 | 153 | /* Begin PBXNativeTarget section */ 154 | 9A6166E81624F65600311E19 /* DropBlocks */ = { 155 | isa = PBXNativeTarget; 156 | buildConfigurationList = 9A6167071624F65600311E19 /* Build configuration list for PBXNativeTarget "DropBlocks" */; 157 | buildPhases = ( 158 | 9A6166E51624F65600311E19 /* Sources */, 159 | 9A6166E61624F65600311E19 /* Frameworks */, 160 | 9A6166E71624F65600311E19 /* Resources */, 161 | C480C36A0B5C44F6B6AC7E12 /* Copy Pods Resources */, 162 | ); 163 | buildRules = ( 164 | ); 165 | dependencies = ( 166 | ); 167 | name = DropBlocks; 168 | productName = DropBlocks; 169 | productReference = 9A6166E91624F65600311E19 /* DropBlocks.app */; 170 | productType = "com.apple.product-type.application"; 171 | }; 172 | /* End PBXNativeTarget section */ 173 | 174 | /* Begin PBXProject section */ 175 | 9A6166E01624F65600311E19 /* Project object */ = { 176 | isa = PBXProject; 177 | attributes = { 178 | LastUpgradeCheck = 0450; 179 | ORGANIZATIONNAME = "Digital Rickshaw"; 180 | }; 181 | buildConfigurationList = 9A6166E31624F65600311E19 /* Build configuration list for PBXProject "DropBlocks" */; 182 | compatibilityVersion = "Xcode 3.2"; 183 | developmentRegion = English; 184 | hasScannedForEncodings = 0; 185 | knownRegions = ( 186 | en, 187 | ); 188 | mainGroup = 9A6166DE1624F65600311E19; 189 | productRefGroup = 9A6166EA1624F65600311E19 /* Products */; 190 | projectDirPath = ""; 191 | projectRoot = ""; 192 | targets = ( 193 | 9A6166E81624F65600311E19 /* DropBlocks */, 194 | ); 195 | }; 196 | /* End PBXProject section */ 197 | 198 | /* Begin PBXResourcesBuildPhase section */ 199 | 9A6166E71624F65600311E19 /* Resources */ = { 200 | isa = PBXResourcesBuildPhase; 201 | buildActionMask = 2147483647; 202 | files = ( 203 | 9A6166F81624F65600311E19 /* InfoPlist.strings in Resources */, 204 | 9A6167001624F65600311E19 /* Default.png in Resources */, 205 | 9A6167021624F65600311E19 /* Default@2x.png in Resources */, 206 | 9A6167041624F65600311E19 /* Default-568h@2x.png in Resources */, 207 | 9A6167211624FB0D00311E19 /* DropBlocks.podspec in Resources */, 208 | 9A6167221624FB0D00311E19 /* LICENSE in Resources */, 209 | 9A6167231624FB0D00311E19 /* Podfile in Resources */, 210 | 9AE76B04162E57950026CBDE /* README.md in Resources */, 211 | ); 212 | runOnlyForDeploymentPostprocessing = 0; 213 | }; 214 | /* End PBXResourcesBuildPhase section */ 215 | 216 | /* Begin PBXShellScriptBuildPhase section */ 217 | C480C36A0B5C44F6B6AC7E12 /* Copy Pods Resources */ = { 218 | isa = PBXShellScriptBuildPhase; 219 | buildActionMask = 2147483647; 220 | files = ( 221 | ); 222 | inputPaths = ( 223 | ); 224 | name = "Copy Pods Resources"; 225 | outputPaths = ( 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | shellPath = /bin/sh; 229 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; 230 | }; 231 | /* End PBXShellScriptBuildPhase section */ 232 | 233 | /* Begin PBXSourcesBuildPhase section */ 234 | 9A6166E51624F65600311E19 /* Sources */ = { 235 | isa = PBXSourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | 9A6166FA1624F65600311E19 /* main.m in Sources */, 239 | 9A6166FE1624F65600311E19 /* AppDelegate.m in Sources */, 240 | 9A6167141624F6EA00311E19 /* DropBlocks.m in Sources */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | /* End PBXSourcesBuildPhase section */ 245 | 246 | /* Begin PBXVariantGroup section */ 247 | 9A6166F61624F65600311E19 /* InfoPlist.strings */ = { 248 | isa = PBXVariantGroup; 249 | children = ( 250 | 9A6166F71624F65600311E19 /* en */, 251 | ); 252 | name = InfoPlist.strings; 253 | sourceTree = ""; 254 | }; 255 | /* End PBXVariantGroup section */ 256 | 257 | /* Begin XCBuildConfiguration section */ 258 | 9A6167051624F65600311E19 /* Debug */ = { 259 | isa = XCBuildConfiguration; 260 | buildSettings = { 261 | ALWAYS_SEARCH_USER_PATHS = NO; 262 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 263 | CLANG_CXX_LIBRARY = "libc++"; 264 | CLANG_ENABLE_OBJC_ARC = YES; 265 | CLANG_WARN_EMPTY_BODY = YES; 266 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 267 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 268 | COPY_PHASE_STRIP = NO; 269 | GCC_C_LANGUAGE_STANDARD = gnu99; 270 | GCC_DYNAMIC_NO_PIC = NO; 271 | GCC_OPTIMIZATION_LEVEL = 0; 272 | GCC_PREPROCESSOR_DEFINITIONS = ( 273 | "DEBUG=1", 274 | "$(inherited)", 275 | ); 276 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 277 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 278 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 279 | GCC_WARN_UNUSED_VARIABLE = YES; 280 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 281 | SDKROOT = iphoneos; 282 | }; 283 | name = Debug; 284 | }; 285 | 9A6167061624F65600311E19 /* Release */ = { 286 | isa = XCBuildConfiguration; 287 | buildSettings = { 288 | ALWAYS_SEARCH_USER_PATHS = NO; 289 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 290 | CLANG_CXX_LIBRARY = "libc++"; 291 | CLANG_ENABLE_OBJC_ARC = YES; 292 | CLANG_WARN_EMPTY_BODY = YES; 293 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 294 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 295 | COPY_PHASE_STRIP = YES; 296 | GCC_C_LANGUAGE_STANDARD = gnu99; 297 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 298 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 301 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; 302 | SDKROOT = iphoneos; 303 | VALIDATE_PRODUCT = YES; 304 | }; 305 | name = Release; 306 | }; 307 | 9A6167081624F65600311E19 /* Debug */ = { 308 | isa = XCBuildConfiguration; 309 | baseConfigurationReference = 560B541E61741189386A0325 /* Pods.debug.xcconfig */; 310 | buildSettings = { 311 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 312 | GCC_PREFIX_HEADER = "DropBlocks/DropBlocks-Prefix.pch"; 313 | INFOPLIST_FILE = "DropBlocks/DropBlocks-Info.plist"; 314 | ONLY_ACTIVE_ARCH = YES; 315 | PRODUCT_NAME = "$(TARGET_NAME)"; 316 | WRAPPER_EXTENSION = app; 317 | }; 318 | name = Debug; 319 | }; 320 | 9A6167091624F65600311E19 /* Release */ = { 321 | isa = XCBuildConfiguration; 322 | baseConfigurationReference = B972FF23724FE24DACF246AE /* Pods.release.xcconfig */; 323 | buildSettings = { 324 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 325 | GCC_PREFIX_HEADER = "DropBlocks/DropBlocks-Prefix.pch"; 326 | INFOPLIST_FILE = "DropBlocks/DropBlocks-Info.plist"; 327 | PRODUCT_NAME = "$(TARGET_NAME)"; 328 | WRAPPER_EXTENSION = app; 329 | }; 330 | name = Release; 331 | }; 332 | /* End XCBuildConfiguration section */ 333 | 334 | /* Begin XCConfigurationList section */ 335 | 9A6166E31624F65600311E19 /* Build configuration list for PBXProject "DropBlocks" */ = { 336 | isa = XCConfigurationList; 337 | buildConfigurations = ( 338 | 9A6167051624F65600311E19 /* Debug */, 339 | 9A6167061624F65600311E19 /* Release */, 340 | ); 341 | defaultConfigurationIsVisible = 0; 342 | defaultConfigurationName = Release; 343 | }; 344 | 9A6167071624F65600311E19 /* Build configuration list for PBXNativeTarget "DropBlocks" */ = { 345 | isa = XCConfigurationList; 346 | buildConfigurations = ( 347 | 9A6167081624F65600311E19 /* Debug */, 348 | 9A6167091624F65600311E19 /* Release */, 349 | ); 350 | defaultConfigurationIsVisible = 0; 351 | defaultConfigurationName = Release; 352 | }; 353 | /* End XCConfigurationList section */ 354 | }; 355 | rootObject = 9A6166E01624F65600311E19 /* Project object */; 356 | } 357 | -------------------------------------------------------------------------------- /DropBlocks/Classes/DropBlocks.m: -------------------------------------------------------------------------------- 1 | // 2 | // DropBlocks.m 3 | // 4 | // Created by Nate Petersen on 10/8/12. 5 | // Copyright (c) 2012 Nate Petersen. All rights reserved. 6 | // 7 | 8 | #import "DropBlocks.h" 9 | 10 | static NSMutableSet* activeWrappers = nil; 11 | 12 | @interface DropBlocks () 13 | 14 | @property(nonatomic, strong) DBRestClient* restClient; 15 | @property(nonatomic, copy) id callback; 16 | @property(nonatomic, copy) id secondaryCallback; 17 | 18 | @end 19 | 20 | @implementation DropBlocks 21 | 22 | + (void)initialize { 23 | activeWrappers = [[NSMutableSet alloc] init]; 24 | } 25 | 26 | - (id)init { 27 | if ((self = [super init])) { 28 | self.restClient = [[DBRestClient alloc] initWithSession:[DBSession sharedSession]]; 29 | self.restClient.delegate = self; 30 | } 31 | 32 | return self; 33 | } 34 | 35 | + (DropBlocks*)newInstanceWithCallback:(id)callback { 36 | DropBlocks* db = [[DropBlocks alloc] init]; 37 | db.callback = callback; 38 | [activeWrappers addObject:db]; 39 | 40 | return db; 41 | } 42 | 43 | + (void)cancelAllRequests { 44 | for (DropBlocks* db in activeWrappers) { 45 | [db.restClient cancelAllRequests]; 46 | } 47 | 48 | [activeWrappers removeAllObjects]; 49 | } 50 | 51 | /* 52 | * Loads metadata for the object at the given root/path. Results are handled by the provided 53 | * completion block. 54 | * - If the error is non-nil, the Dropbox SDK reported an error. 55 | * - If there is no error but the metadata object is nil, that means that the metadata was unchanged. 56 | * - Otherwise a metadata object should be returned. 57 | */ 58 | + (void)loadMetadata:(NSString*)path completionBlock:(LoadMetadataCallback)completionBlock { 59 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient loadMetadata:path]; 60 | } 61 | 62 | + (void)loadMetadata:(NSString*)path withHash:(NSString*)hash completionBlock:(LoadMetadataCallback)completionBlock { 63 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient loadMetadata:path withHash:hash]; 64 | } 65 | 66 | + (void)loadMetadata:(NSString*)path atRev:(NSString *)rev completionBlock:(LoadMetadataCallback)completionBlock { 67 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient loadMetadata:path atRev:rev]; 68 | } 69 | 70 | + (void)loadDelta:(NSString *)cursor completionBlock:(LoadDeltaCallback)completionBlock { 71 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient loadDelta:cursor]; 72 | } 73 | 74 | + (void)loadFile:(NSString *)path intoPath:(NSString *)destinationPath completionBlock:(LoadFileCallback)completionBlock progressBlock:(LoadFileProgressCallback)progressBlock { 75 | DropBlocks* db = [DropBlocks newInstanceWithCallback:completionBlock]; 76 | db.secondaryCallback = progressBlock; 77 | [db.restClient loadFile:path intoPath:destinationPath]; 78 | } 79 | 80 | + (void)loadFile:(NSString *)path atRev:(NSString *)rev intoPath:(NSString *)destinationPath completionBlock:(LoadFileCallback)completionBlock progressBlock:(LoadFileProgressCallback)progressBlock { 81 | DropBlocks* db = [DropBlocks newInstanceWithCallback:completionBlock]; 82 | db.secondaryCallback = progressBlock; 83 | [db.restClient loadFile:path atRev:rev intoPath:destinationPath]; 84 | } 85 | 86 | 87 | //- (void)cancelFileLoad:(NSString*)path; 88 | 89 | 90 | + (void)loadThumbnail:(NSString *)path ofSize:(NSString *)size intoPath:(NSString *)destinationPath completionBlock:(LoadThumbnailCallback)completionBlock { 91 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient loadThumbnail:path ofSize:size intoPath:destinationPath]; 92 | } 93 | 94 | 95 | //- (void)cancelThumbnailLoad:(NSString*)path size:(NSString*)size; 96 | 97 | 98 | + (void)uploadFile:(NSString *)filename toPath:(NSString *)path withParentRev:(NSString *)parentRev fromPath:(NSString *)sourcePath completionBlock:(UploadFileCallback)completionBlock progressBlock:(UploadFileProgressCallback)progressBlock { 99 | DropBlocks* db = [DropBlocks newInstanceWithCallback:completionBlock]; 100 | db.secondaryCallback = progressBlock; 101 | [db.restClient uploadFile:filename toPath:path withParentRev:parentRev fromPath:sourcePath]; 102 | } 103 | 104 | 105 | //- (void)cancelFileUpload:(NSString *)path; 106 | // 107 | ///* Avoid using this because it is very easy to overwrite conflicting changes. Provided for backwards 108 | // compatibility reasons only */ 109 | //- (void)uploadFile:(NSString*)filename toPath:(NSString*)path fromPath:(NSString *)sourcePath __attribute__((deprecated)); 110 | 111 | + (void)uploadFileChunk:(NSString *)uploadId offset:(unsigned long long)offset fromPath:(NSString *)localPath completionBlock:(UploadFileChunkCallback)completionBlock { 112 | [self uploadFileChunk:uploadId offset:offset fromPath:localPath completionBlock:completionBlock progressBlock:nil]; 113 | } 114 | 115 | + (void)uploadFileChunk:(NSString *)uploadId offset:(unsigned long long)offset fromPath:(NSString *)localPath completionBlock:(UploadFileChunkCallback)completionBlock progressBlock:(UploadFileChunkProgressCallback)progressBlock { 116 | DropBlocks* db = [DropBlocks newInstanceWithCallback:completionBlock]; 117 | db.secondaryCallback = progressBlock; 118 | [db.restClient uploadFileChunk:uploadId offset:offset fromPath:localPath]; 119 | } 120 | 121 | + (void)uploadFile:(NSString *)filename toPath:(NSString *)parentFolder withParentRev:(NSString *)parentRev fromUploadId:(NSString *)uploadId completionBlock:(UploadFileCallback)completionBlock { 122 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient uploadFile:filename toPath:parentFolder withParentRev:parentRev fromUploadId:uploadId]; 123 | } 124 | 125 | + (void)loadRevisionsForFile:(NSString *)path completionBlock:(LoadRevisionsCallback)completionBlock { 126 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient loadRevisionsForFile:path]; 127 | } 128 | 129 | + (void)loadRevisionsForFile:(NSString *)path limit:(NSInteger)limit completionBlock:(LoadRevisionsCallback)completionBlock { 130 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient loadRevisionsForFile:path limit:limit]; 131 | } 132 | 133 | + (void)restoreFile:(NSString *)path toRev:(NSString *)rev completionBlock:(RestoreFileCallback)completionBlock { 134 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient restoreFile:path toRev:rev]; 135 | } 136 | 137 | + (void)createFolder:(NSString*)path completionBlock:(CreateFolderCallback)completionBlock { 138 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient createFolder:path]; 139 | } 140 | 141 | + (void)deletePath:(NSString*)path completionBlock:(DeletePathCallback)completionBlock { 142 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient deletePath:path]; 143 | } 144 | 145 | + (void)copyFrom:(NSString*)fromPath toPath:(NSString *)toPath completionBlock:(CopyPathCallback)completionBlock { 146 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient copyFrom:fromPath toPath:toPath]; 147 | } 148 | 149 | + (void)createCopyRef:(NSString *)path completionBlock:(CreateCopyRefCallback)completionBlock { 150 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient createCopyRef:path]; 151 | } 152 | 153 | + (void)copyFromRef:(NSString*)copyRef toPath:(NSString *)toPath completionBlock:(CopyFromRefCallback)completionBlock { 154 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient copyFromRef:copyRef toPath:toPath]; 155 | } 156 | 157 | + (void)moveFrom:(NSString*)fromPath toPath:(NSString *)toPath completionBlock:(MovePathCallback)completionBlock { 158 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient moveFrom:fromPath toPath:toPath]; 159 | } 160 | 161 | + (void)loadAccountInfo:(LoadAccountInfoCallback)completionBlock { 162 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient loadAccountInfo]; 163 | } 164 | 165 | + (void)searchPath:(NSString*)path forKeyword:(NSString*)keyword completionBlock:(SearchPathCallback)completionBlock { 166 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient searchPath:path forKeyword:keyword]; 167 | } 168 | 169 | + (void)loadSharableLinkForFile:(NSString *)path shortUrl:(BOOL)createShortUrl completionBlock:(LoadSharableLinkCallback)completionBlock { 170 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient loadSharableLinkForFile:path shortUrl:createShortUrl]; 171 | } 172 | 173 | + (void)loadStreamableURLForFile:(NSString *)path completionBlock:(LoadStreamableURLCallback)completionBlock { 174 | [[DropBlocks newInstanceWithCallback:completionBlock].restClient loadStreamableURLForFile:path]; 175 | } 176 | 177 | - (void)cleanup { 178 | //this seems to be necessary for some reason, or else DBRestClient blows up because things got dealloced 179 | dispatch_async(dispatch_get_main_queue(), ^{ 180 | [activeWrappers removeObject:self]; 181 | }); 182 | } 183 | 184 | #pragma mark - Standard Dropbox callbacks 185 | 186 | - (void)restClient:(DBRestClient*)client loadedMetadata:(DBMetadata*)metadata { 187 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 188 | DropBlocks* strongSelf = self; 189 | LoadMetadataCallback handler = strongSelf.callback; 190 | handler(metadata, nil); 191 | [strongSelf cleanup]; 192 | } 193 | 194 | - (void)restClient:(DBRestClient*)client metadataUnchangedAtPath:(NSString*)path { 195 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 196 | DropBlocks* strongSelf = self; 197 | LoadMetadataCallback handler = strongSelf.callback; 198 | handler(nil, nil); 199 | [strongSelf cleanup]; 200 | } 201 | 202 | - (void)restClient:(DBRestClient*)client loadMetadataFailedWithError:(NSError*)error { 203 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 204 | DropBlocks* strongSelf = self; 205 | LoadMetadataCallback handler = strongSelf.callback; 206 | handler(nil, error); 207 | [strongSelf cleanup]; 208 | } 209 | 210 | - (void)restClient:(DBRestClient*)client loadedDeltaEntries:(NSArray *)entries reset:(BOOL)shouldReset cursor:(NSString *)cursor hasMore:(BOOL)hasMore { 211 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 212 | DropBlocks* strongSelf = self; 213 | LoadDeltaCallback handler = strongSelf.callback; 214 | handler(entries, shouldReset, cursor, hasMore, nil); 215 | [strongSelf cleanup]; 216 | } 217 | 218 | - (void)restClient:(DBRestClient*)client loadDeltaFailedWithError:(NSError *)error { 219 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 220 | DropBlocks* strongSelf = self; 221 | LoadDeltaCallback handler = strongSelf.callback; 222 | handler(nil, NO, nil, NO, error); 223 | [strongSelf cleanup]; 224 | } 225 | 226 | - (void)restClient:(DBRestClient*)restClient loadedStreamableURL:(NSURL*)url forFile:(NSString*)path { 227 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 228 | DropBlocks* strongSelf = self; 229 | LoadStreamableURLCallback handler = strongSelf.callback; 230 | handler(url, nil); 231 | [strongSelf cleanup]; 232 | } 233 | 234 | - (void)restClient:(DBRestClient*)restClient loadStreamableURLFailedWithError:(NSError*)error { 235 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 236 | DropBlocks* strongSelf = self; 237 | LoadStreamableURLCallback handler = strongSelf.callback; 238 | handler(nil, error); 239 | [strongSelf cleanup]; 240 | } 241 | 242 | - (void)restClient:(DBRestClient*)client loadedFile:(NSString*)destPath contentType:(NSString*)contentType metadata:(DBMetadata*)metadata { 243 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 244 | DropBlocks* strongSelf = self; 245 | LoadFileCallback handler = strongSelf.callback; 246 | handler(contentType, metadata, nil); 247 | [strongSelf cleanup]; 248 | } 249 | 250 | - (void)restClient:(DBRestClient*)client loadProgress:(CGFloat)progress forFile:(NSString*)destPath { 251 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 252 | DropBlocks* strongSelf = self; 253 | LoadFileProgressCallback handler = strongSelf.secondaryCallback; 254 | 255 | if (handler) { 256 | handler(progress); 257 | } 258 | } 259 | 260 | - (void)restClient:(DBRestClient*)client loadFileFailedWithError:(NSError*)error { 261 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 262 | DropBlocks* strongSelf = self; 263 | LoadFileCallback handler = strongSelf.callback; 264 | handler(nil, nil, error); 265 | [strongSelf cleanup]; 266 | } 267 | 268 | - (void)restClient:(DBRestClient*)client loadedThumbnail:(NSString*)destPath metadata:(DBMetadata*)metadata { 269 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 270 | DropBlocks* strongSelf = self; 271 | LoadThumbnailCallback handler = strongSelf.callback; 272 | handler(metadata, nil); 273 | [strongSelf cleanup]; 274 | } 275 | 276 | - (void)restClient:(DBRestClient*)client loadThumbnailFailedWithError:(NSError*)error { 277 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 278 | DropBlocks* strongSelf = self; 279 | LoadThumbnailCallback handler = strongSelf.callback; 280 | handler(nil, error); 281 | [strongSelf cleanup]; 282 | } 283 | 284 | - (void)restClient:(DBRestClient*)client uploadedFile:(NSString*)destPath from:(NSString*)srcPath 285 | metadata:(DBMetadata*)metadata { 286 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 287 | DropBlocks* strongSelf = self; 288 | UploadFileCallback handler = strongSelf.callback; 289 | handler(destPath, metadata, nil); 290 | [strongSelf cleanup]; 291 | } 292 | 293 | - (void)restClient:(DBRestClient*)client uploadProgress:(CGFloat)progress 294 | forFile:(NSString*)destPath from:(NSString*)srcPath { 295 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 296 | DropBlocks* strongSelf = self; 297 | UploadFileProgressCallback handler = strongSelf.secondaryCallback; 298 | 299 | if (handler) { 300 | handler(progress); 301 | } 302 | } 303 | 304 | - (void)restClient:(DBRestClient*)client uploadFileFailedWithError:(NSError*)error { 305 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 306 | DropBlocks* strongSelf = self; 307 | UploadFileCallback handler = strongSelf.callback; 308 | handler(nil, nil, error); 309 | [strongSelf cleanup]; 310 | } 311 | 312 | - (void)restClient:(DBRestClient *)client uploadedFileChunk:(NSString *)uploadId newOffset:(unsigned long long)offset 313 | fromFile:(NSString *)localPath expires:(NSDate *)expiresDate { 314 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 315 | DropBlocks* strongSelf = self; 316 | UploadFileChunkCallback handler = strongSelf.callback; 317 | handler(uploadId, offset, expiresDate, nil); 318 | [strongSelf cleanup]; 319 | } 320 | 321 | - (void)restClient:(DBRestClient *)client uploadFileChunkFailedWithError:(NSError *)error { 322 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 323 | DropBlocks* strongSelf = self; 324 | UploadFileChunkCallback handler = strongSelf.callback; 325 | handler(nil, 0, nil, error); 326 | [strongSelf cleanup]; 327 | } 328 | 329 | - (void)restClient:(DBRestClient *)client uploadFileChunkProgress:(CGFloat)progress 330 | forFile:(NSString *)uploadId offset:(unsigned long long)offset fromPath:(NSString *)localPath { 331 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 332 | DropBlocks* strongSelf = self; 333 | UploadFileProgressCallback handler = strongSelf.secondaryCallback; 334 | 335 | if (handler) { 336 | handler(progress); 337 | } 338 | 339 | } 340 | 341 | - (void)restClient:(DBRestClient *)client uploadedFile:(NSString *)destPath fromUploadId:(NSString *)uploadId 342 | metadata:(DBMetadata *)metadata { 343 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 344 | DropBlocks* strongSelf = self; 345 | UploadFileCallback handler = strongSelf.callback; 346 | handler(destPath, metadata, nil); 347 | [strongSelf cleanup]; 348 | } 349 | 350 | - (void)restClient:(DBRestClient *)client uploadFromUploadIdFailedWithError:(NSError *)error { 351 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 352 | DropBlocks* strongSelf = self; 353 | UploadFileCallback handler = strongSelf.callback; 354 | handler(nil, nil, error); 355 | [strongSelf cleanup]; 356 | } 357 | 358 | - (void)restClient:(DBRestClient*)client loadedRevisions:(NSArray *)revisions forFile:(NSString *)path { 359 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 360 | DropBlocks* strongSelf = self; 361 | LoadRevisionsCallback handler = strongSelf.callback; 362 | handler(revisions, nil); 363 | [strongSelf cleanup]; 364 | } 365 | 366 | - (void)restClient:(DBRestClient*)client loadRevisionsFailedWithError:(NSError *)error { 367 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 368 | DropBlocks* strongSelf = self; 369 | LoadRevisionsCallback handler = strongSelf.callback; 370 | handler(nil, error); 371 | [strongSelf cleanup]; 372 | } 373 | 374 | - (void)restClient:(DBRestClient*)client restoredFile:(DBMetadata *)fileMetadata { 375 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 376 | DropBlocks* strongSelf = self; 377 | RestoreFileCallback handler = strongSelf.callback; 378 | handler(fileMetadata, nil); 379 | [strongSelf cleanup]; 380 | } 381 | 382 | - (void)restClient:(DBRestClient*)client restoreFileFailedWithError:(NSError *)error { 383 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 384 | DropBlocks* strongSelf = self; 385 | RestoreFileCallback handler = strongSelf.callback; 386 | handler(nil, error); 387 | [strongSelf cleanup]; 388 | } 389 | 390 | - (void)restClient:(DBRestClient*)client createdFolder:(DBMetadata*)folder { 391 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 392 | DropBlocks* strongSelf = self; 393 | CreateFolderCallback handler = strongSelf.callback; 394 | handler(folder, nil); 395 | [strongSelf cleanup]; 396 | } 397 | 398 | - (void)restClient:(DBRestClient*)client createFolderFailedWithError:(NSError*)error { 399 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 400 | DropBlocks* strongSelf = self; 401 | CreateFolderCallback handler = strongSelf.callback; 402 | handler(nil, error); 403 | [strongSelf cleanup]; 404 | } 405 | 406 | - (void)restClient:(DBRestClient*)client deletedPath:(NSString *)path { 407 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 408 | DropBlocks* strongSelf = self; 409 | DeletePathCallback handler = strongSelf.callback; 410 | handler(nil); 411 | [strongSelf cleanup]; 412 | } 413 | 414 | - (void)restClient:(DBRestClient*)client deletePathFailedWithError:(NSError*)error { 415 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 416 | DropBlocks* strongSelf = self; 417 | DeletePathCallback handler = strongSelf.callback; 418 | handler(error); 419 | [strongSelf cleanup]; 420 | } 421 | 422 | - (void)restClient:(DBRestClient*)client copiedPath:(NSString *)fromPath to:(DBMetadata *)to { 423 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 424 | DropBlocks* strongSelf = self; 425 | CopyPathCallback handler = strongSelf.callback; 426 | handler(to, nil); 427 | [strongSelf cleanup]; 428 | } 429 | 430 | - (void)restClient:(DBRestClient*)client copyPathFailedWithError:(NSError*)error { 431 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 432 | DropBlocks* strongSelf = self; 433 | CopyPathCallback handler = strongSelf.callback; 434 | handler(nil, error); 435 | [strongSelf cleanup]; 436 | } 437 | 438 | - (void)restClient:(DBRestClient*)client createdCopyRef:(NSString *)copyRef { 439 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 440 | DropBlocks* strongSelf = self; 441 | CreateCopyRefCallback handler = strongSelf.callback; 442 | handler(copyRef, nil); 443 | [strongSelf cleanup]; 444 | } 445 | 446 | - (void)restClient:(DBRestClient*)client createCopyRefFailedWithError:(NSError *)error { 447 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 448 | DropBlocks* strongSelf = self; 449 | CreateCopyRefCallback handler = strongSelf.callback; 450 | handler(nil, error); 451 | [strongSelf cleanup]; 452 | } 453 | 454 | - (void)restClient:(DBRestClient*)client copiedRef:(NSString *)copyRef to:(DBMetadata *)to { 455 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 456 | DropBlocks* strongSelf = self; 457 | CopyFromRefCallback handler = strongSelf.callback; 458 | handler(to, nil); 459 | [strongSelf cleanup]; 460 | } 461 | 462 | - (void)restClient:(DBRestClient*)client copyFromRefFailedWithError:(NSError*)error { 463 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 464 | DropBlocks* strongSelf = self; 465 | CopyFromRefCallback handler = strongSelf.callback; 466 | handler(nil, error); 467 | 468 | } 469 | 470 | - (void)restClient:(DBRestClient*)client movedPath:(NSString *)from_path to:(DBMetadata *)result { 471 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 472 | DropBlocks* strongSelf = self; 473 | MovePathCallback handler = strongSelf.callback; 474 | handler(result, nil); 475 | [strongSelf cleanup]; 476 | } 477 | 478 | - (void)restClient:(DBRestClient*)client movePathFailedWithError:(NSError*)error { 479 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 480 | DropBlocks* strongSelf = self; 481 | MovePathCallback handler = strongSelf.callback; 482 | handler(nil, error); 483 | [strongSelf cleanup]; 484 | } 485 | 486 | - (void)restClient:(DBRestClient*)client loadedAccountInfo:(DBAccountInfo*)info { 487 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 488 | DropBlocks* strongSelf = self; 489 | LoadAccountInfoCallback handler = strongSelf.callback; 490 | handler(info, nil); 491 | [strongSelf cleanup]; 492 | } 493 | 494 | - (void)restClient:(DBRestClient*)client loadAccountInfoFailedWithError:(NSError*)error { 495 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 496 | DropBlocks* strongSelf = self; 497 | LoadAccountInfoCallback handler = strongSelf.callback; 498 | handler(nil, error); 499 | [strongSelf cleanup]; 500 | } 501 | 502 | - (void)restClient:(DBRestClient*)restClient loadedSearchResults:(NSArray*)results forPath:(NSString*)path keyword:(NSString*)keyword { 503 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 504 | DropBlocks* strongSelf = self; 505 | SearchPathCallback handler = strongSelf.callback; 506 | handler(results, nil); 507 | [strongSelf cleanup]; 508 | } 509 | 510 | - (void)restClient:(DBRestClient*)restClient searchFailedWithError:(NSError*)error { 511 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 512 | DropBlocks* strongSelf = self; 513 | SearchPathCallback handler = strongSelf.callback; 514 | handler(nil, error); 515 | [strongSelf cleanup]; 516 | } 517 | 518 | - (void)restClient:(DBRestClient*)restClient loadedSharableLink:(NSString*)link forFile:(NSString*)path { 519 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 520 | DropBlocks* strongSelf = self; 521 | LoadSharableLinkCallback handler = strongSelf.callback; 522 | handler(link, nil); 523 | [strongSelf cleanup]; 524 | } 525 | 526 | - (void)restClient:(DBRestClient*)restClient loadSharableLinkFailedWithError:(NSError*)error { 527 | //we can run into dealloc problems unless we keep a strong reference to ourselves till the method is done 528 | DropBlocks* strongSelf = self; 529 | LoadSharableLinkCallback handler = strongSelf.callback; 530 | handler(nil, error); 531 | [strongSelf cleanup]; 532 | } 533 | 534 | @end 535 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 19EE21561281E5F5C0B5A85CFDC1A411 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 636BC752E7946EF6919A00D1F8EAE693 /* Foundation.framework */; }; 11 | B991A49F4C12A4F8462C02B69D83DB11 /* Pods-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = F544E664EA23C82471AAB47D479D781B /* Pods-dummy.m */; }; 12 | /* End PBXBuildFile section */ 13 | 14 | /* Begin PBXFileReference section */ 15 | 0091AB1D7303D7D691678153BC692E59 /* DBJsonBase.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBJsonBase.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBJsonBase.h"; sourceTree = ""; }; 16 | 039B5D6B0F0C209CA1433634F21E3CD1 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.debug.xcconfig; sourceTree = ""; }; 17 | 0774E1F82B19D38F5E33F849621F4388 /* NSObject+DBJSON.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSObject+DBJSON.h"; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSObject+DBJSON.h"; sourceTree = ""; }; 18 | 0CA186229449F9C2B31753B05B439D08 /* MPURLRequestParameter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPURLRequestParameter.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPURLRequestParameter.h"; sourceTree = ""; }; 19 | 0D17E411663350B3FB6C0EFD0FF674D5 /* DBJsonParser.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBJsonParser.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBJsonParser.h"; sourceTree = ""; }; 20 | 0F89F06D53FD2E86ED0B881EE92FA740 /* DBLog.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBLog.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBLog.h"; sourceTree = ""; }; 21 | 15A529C27057E4A57D259CBC6E6CE49C /* Pods-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-acknowledgements.markdown"; sourceTree = ""; }; 22 | 25874A10CB2CF04DB338E52FB2CBA276 /* DBDeltaEntry.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBDeltaEntry.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBDeltaEntry.h"; sourceTree = ""; }; 23 | 2911C90045EF579F81BD9E92797F5CF3 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.release.xcconfig; sourceTree = ""; }; 24 | 2A7623457C67508028B5E7276F93E911 /* MPOAuthCredentialConcreteStore.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuthCredentialConcreteStore.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthCredentialConcreteStore.h"; sourceTree = ""; }; 25 | 3D164DB84AEB49109007DB9373D28392 /* DBAccountInfo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBAccountInfo.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBAccountInfo.h"; sourceTree = ""; }; 26 | 46F45A66B1F14D33ABD42751F15BFCD9 /* MPOAuthAPIRequestLoader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuthAPIRequestLoader.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthAPIRequestLoader.h"; sourceTree = ""; }; 27 | 4F4FE88EBCD01B15DA865AA31ECF25B7 /* MPDebug.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPDebug.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPDebug.h"; sourceTree = ""; }; 28 | 55CC077BEA36ECEF097AE436BEC1D954 /* NSURL+MPURLParameterAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSURL+MPURLParameterAdditions.h"; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSURL+MPURLParameterAdditions.h"; sourceTree = ""; }; 29 | 5BDD140C632E59CF7447B3E556F5DDD2 /* NSString+URLEscapingAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSString+URLEscapingAdditions.h"; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSString+URLEscapingAdditions.h"; sourceTree = ""; }; 30 | 636BC752E7946EF6919A00D1F8EAE693 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 31 | 641AE05DD55E5E6AC1590CD7B4A18F97 /* Pods-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-resources.sh"; sourceTree = ""; }; 32 | 652C8265C3CCB407B89E125A60FD6E14 /* MPOAuthSignatureParameter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuthSignatureParameter.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthSignatureParameter.h"; sourceTree = ""; }; 33 | 6C4F06EA9F7B57593F6FEAC7ADC75AA7 /* MPOAuthCredentialConcreteStore+KeychainAdditions.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "MPOAuthCredentialConcreteStore+KeychainAdditions.h"; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthCredentialConcreteStore+KeychainAdditions.h"; sourceTree = ""; }; 34 | 6F153A02E777E99BD1BBA451D4E1B416 /* DBJSON.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBJSON.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBJSON.h"; sourceTree = ""; }; 35 | 76E553CCE4EF8DE31176B9E49CF92B92 /* DBRestClient.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBRestClient.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBRestClient.h"; sourceTree = ""; }; 36 | 7D6221570BDA35F4E747AFD3BF436EE3 /* DBBase64Transcoder.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBBase64Transcoder.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBBase64Transcoder.h"; sourceTree = ""; }; 37 | 80F51A1BD35C9AA8D1FD43A3F2A8D851 /* MPOAuthParameterFactory.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuthParameterFactory.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthParameterFactory.h"; sourceTree = ""; }; 38 | 867014394ED056F250B5C0B91A8D4200 /* NSString+DBJSON.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSString+DBJSON.h"; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSString+DBJSON.h"; sourceTree = ""; }; 39 | A141BA1B728BDF8CADB5491B6ABB1679 /* MPOAuthURLRequest.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuthURLRequest.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthURLRequest.h"; sourceTree = ""; }; 40 | AEEDA5F6291892906F3CBBF39B8BC98F /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | B26B9CB27EF060A56C3282874257B3F2 /* DBRequest.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBRequest.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBRequest.h"; sourceTree = ""; }; 42 | B54B58E771B09694455FAD1D5507350B /* MPOAuthCredentialStore.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuthCredentialStore.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthCredentialStore.h"; sourceTree = ""; }; 43 | B67BAF198AA1E3DA9FAE1E96DA7EDFB6 /* MPOAuthConnection.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuthConnection.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthConnection.h"; sourceTree = ""; }; 44 | B7EED869177024C9BE3CC256F14544E1 /* DBSession.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBSession.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBSession.h"; sourceTree = ""; }; 45 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 46 | BE77C41B12F52E886E539FC8EA16F123 /* DBQuota.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBQuota.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBQuota.h"; sourceTree = ""; }; 47 | BF59BC15D23E1E1912C8F334E7236813 /* Pods-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-acknowledgements.plist"; sourceTree = ""; }; 48 | C3FBB695A02BA6D57F0B00F456C2F1F5 /* DropboxSDK.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DropboxSDK.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DropboxSDK.h"; sourceTree = ""; }; 49 | CDB54B75E3FE110A2CE44C663F26E0CC /* DBError.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBError.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBError.h"; sourceTree = ""; }; 50 | CE6962B16B0E2DFF981E9870093C241C /* DBMetadata.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBMetadata.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBMetadata.h"; sourceTree = ""; }; 51 | D2CF246FD266A6615D9F6FDD7EF2B648 /* NSDictionary+Dropbox.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSDictionary+Dropbox.h"; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSDictionary+Dropbox.h"; sourceTree = ""; }; 52 | D3878093F1300FD0479FD7F3658E3831 /* NSString+Dropbox.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSString+Dropbox.h"; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSString+Dropbox.h"; sourceTree = ""; }; 53 | D512690B97A967FD7023DA1385FDC790 /* JSON.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = JSON.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/JSON.h"; sourceTree = ""; }; 54 | D7DAA0F3401C8A43EFA244DAA7148FFE /* MPOAuthAuthenticationMethod.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuthAuthenticationMethod.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthAuthenticationMethod.h"; sourceTree = ""; }; 55 | E0A2E7AD971CD321A423355A144767FC /* DBJsonWriter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DBJsonWriter.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBJsonWriter.h"; sourceTree = ""; }; 56 | E6E0EB6119D45D15B227D96A8E1CC08E /* MPOAuthAuthenticationMethodOAuth.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuthAuthenticationMethodOAuth.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthAuthenticationMethodOAuth.h"; sourceTree = ""; }; 57 | EDC6491860B91B15DC4676B3BB6B02B5 /* MPOAuth.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuth.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuth.h"; sourceTree = ""; }; 58 | F17E8EE112CED687F8846B4F29583329 /* NSURLResponse+Encoding.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSURLResponse+Encoding.h"; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/NSURLResponse+Encoding.h"; sourceTree = ""; }; 59 | F3FD17207CD418FD875C4036EBF43D3B /* MPOAuthURLResponse.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuthURLResponse.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthURLResponse.h"; sourceTree = ""; }; 60 | F544E664EA23C82471AAB47D479D781B /* Pods-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-dummy.m"; sourceTree = ""; }; 61 | F58C8B0F57FB82C815BCBA0FA99B76B1 /* DBSession+iOS.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "DBSession+iOS.h"; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/DBSession+iOS.h"; sourceTree = ""; }; 62 | F9AF45C0538DFC3BA2FF0A2F36599D21 /* MPOAuthAPI.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = MPOAuthAPI.h; path = "dropbox-ios-sdk-1.3.13/DropboxSDK.framework/Headers/MPOAuthAPI.h"; sourceTree = ""; }; 63 | /* End PBXFileReference section */ 64 | 65 | /* Begin PBXFrameworksBuildPhase section */ 66 | 2E78C4AC537A1782BCFD134B2B8940E0 /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | 19EE21561281E5F5C0B5A85CFDC1A411 /* Foundation.framework in Frameworks */, 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | /* End PBXFrameworksBuildPhase section */ 75 | 76 | /* Begin PBXGroup section */ 77 | 107F4F336E5C898276DB80E2172D58F1 /* Dropbox-iOS-SDK */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 3D164DB84AEB49109007DB9373D28392 /* DBAccountInfo.h */, 81 | 7D6221570BDA35F4E747AFD3BF436EE3 /* DBBase64Transcoder.h */, 82 | 25874A10CB2CF04DB338E52FB2CBA276 /* DBDeltaEntry.h */, 83 | CDB54B75E3FE110A2CE44C663F26E0CC /* DBError.h */, 84 | 6F153A02E777E99BD1BBA451D4E1B416 /* DBJSON.h */, 85 | 0091AB1D7303D7D691678153BC692E59 /* DBJsonBase.h */, 86 | 0D17E411663350B3FB6C0EFD0FF674D5 /* DBJsonParser.h */, 87 | E0A2E7AD971CD321A423355A144767FC /* DBJsonWriter.h */, 88 | 0F89F06D53FD2E86ED0B881EE92FA740 /* DBLog.h */, 89 | CE6962B16B0E2DFF981E9870093C241C /* DBMetadata.h */, 90 | BE77C41B12F52E886E539FC8EA16F123 /* DBQuota.h */, 91 | B26B9CB27EF060A56C3282874257B3F2 /* DBRequest.h */, 92 | 76E553CCE4EF8DE31176B9E49CF92B92 /* DBRestClient.h */, 93 | B7EED869177024C9BE3CC256F14544E1 /* DBSession.h */, 94 | F58C8B0F57FB82C815BCBA0FA99B76B1 /* DBSession+iOS.h */, 95 | C3FBB695A02BA6D57F0B00F456C2F1F5 /* DropboxSDK.h */, 96 | D512690B97A967FD7023DA1385FDC790 /* JSON.h */, 97 | 4F4FE88EBCD01B15DA865AA31ECF25B7 /* MPDebug.h */, 98 | EDC6491860B91B15DC4676B3BB6B02B5 /* MPOAuth.h */, 99 | F9AF45C0538DFC3BA2FF0A2F36599D21 /* MPOAuthAPI.h */, 100 | 46F45A66B1F14D33ABD42751F15BFCD9 /* MPOAuthAPIRequestLoader.h */, 101 | D7DAA0F3401C8A43EFA244DAA7148FFE /* MPOAuthAuthenticationMethod.h */, 102 | E6E0EB6119D45D15B227D96A8E1CC08E /* MPOAuthAuthenticationMethodOAuth.h */, 103 | B67BAF198AA1E3DA9FAE1E96DA7EDFB6 /* MPOAuthConnection.h */, 104 | 2A7623457C67508028B5E7276F93E911 /* MPOAuthCredentialConcreteStore.h */, 105 | 6C4F06EA9F7B57593F6FEAC7ADC75AA7 /* MPOAuthCredentialConcreteStore+KeychainAdditions.h */, 106 | B54B58E771B09694455FAD1D5507350B /* MPOAuthCredentialStore.h */, 107 | 80F51A1BD35C9AA8D1FD43A3F2A8D851 /* MPOAuthParameterFactory.h */, 108 | 652C8265C3CCB407B89E125A60FD6E14 /* MPOAuthSignatureParameter.h */, 109 | A141BA1B728BDF8CADB5491B6ABB1679 /* MPOAuthURLRequest.h */, 110 | F3FD17207CD418FD875C4036EBF43D3B /* MPOAuthURLResponse.h */, 111 | 0CA186229449F9C2B31753B05B439D08 /* MPURLRequestParameter.h */, 112 | D2CF246FD266A6615D9F6FDD7EF2B648 /* NSDictionary+Dropbox.h */, 113 | 0774E1F82B19D38F5E33F849621F4388 /* NSObject+DBJSON.h */, 114 | 867014394ED056F250B5C0B91A8D4200 /* NSString+DBJSON.h */, 115 | D3878093F1300FD0479FD7F3658E3831 /* NSString+Dropbox.h */, 116 | 5BDD140C632E59CF7447B3E556F5DDD2 /* NSString+URLEscapingAdditions.h */, 117 | 55CC077BEA36ECEF097AE436BEC1D954 /* NSURL+MPURLParameterAdditions.h */, 118 | F17E8EE112CED687F8846B4F29583329 /* NSURLResponse+Encoding.h */, 119 | ); 120 | path = "Dropbox-iOS-SDK"; 121 | sourceTree = ""; 122 | }; 123 | 53F661C0CA7190D2CF05023FB33D61E4 /* iOS */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 636BC752E7946EF6919A00D1F8EAE693 /* Foundation.framework */, 127 | ); 128 | name = iOS; 129 | sourceTree = ""; 130 | }; 131 | 7DB346D0F39D3F0E887471402A8071AB = { 132 | isa = PBXGroup; 133 | children = ( 134 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, 135 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 136 | 9BCED93DBADE5A374D149B90417C9C4C /* Pods */, 137 | CCA510CFBEA2D207524CDA0D73C3B561 /* Products */, 138 | D2411A5FE7F7A004607BED49990C37F4 /* Targets Support Files */, 139 | ); 140 | sourceTree = ""; 141 | }; 142 | 952EEBFAF8F7E620423C9F156F25A506 /* Pods */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 15A529C27057E4A57D259CBC6E6CE49C /* Pods-acknowledgements.markdown */, 146 | BF59BC15D23E1E1912C8F334E7236813 /* Pods-acknowledgements.plist */, 147 | F544E664EA23C82471AAB47D479D781B /* Pods-dummy.m */, 148 | 641AE05DD55E5E6AC1590CD7B4A18F97 /* Pods-resources.sh */, 149 | 039B5D6B0F0C209CA1433634F21E3CD1 /* Pods.debug.xcconfig */, 150 | 2911C90045EF579F81BD9E92797F5CF3 /* Pods.release.xcconfig */, 151 | ); 152 | name = Pods; 153 | path = "Target Support Files/Pods"; 154 | sourceTree = ""; 155 | }; 156 | 9BCED93DBADE5A374D149B90417C9C4C /* Pods */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 107F4F336E5C898276DB80E2172D58F1 /* Dropbox-iOS-SDK */, 160 | ); 161 | name = Pods; 162 | sourceTree = ""; 163 | }; 164 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 165 | isa = PBXGroup; 166 | children = ( 167 | 53F661C0CA7190D2CF05023FB33D61E4 /* iOS */, 168 | ); 169 | name = Frameworks; 170 | sourceTree = ""; 171 | }; 172 | CCA510CFBEA2D207524CDA0D73C3B561 /* Products */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | AEEDA5F6291892906F3CBBF39B8BC98F /* libPods.a */, 176 | ); 177 | name = Products; 178 | sourceTree = ""; 179 | }; 180 | D2411A5FE7F7A004607BED49990C37F4 /* Targets Support Files */ = { 181 | isa = PBXGroup; 182 | children = ( 183 | 952EEBFAF8F7E620423C9F156F25A506 /* Pods */, 184 | ); 185 | name = "Targets Support Files"; 186 | sourceTree = ""; 187 | }; 188 | /* End PBXGroup section */ 189 | 190 | /* Begin PBXNativeTarget section */ 191 | 1469924FC52F60B0068FA24EEFCB3EFC /* Pods */ = { 192 | isa = PBXNativeTarget; 193 | buildConfigurationList = 5C358AA8BB91700063133597D41C4E0E /* Build configuration list for PBXNativeTarget "Pods" */; 194 | buildPhases = ( 195 | 60DB2522D6809309FA2F3B04848E7536 /* Sources */, 196 | 2E78C4AC537A1782BCFD134B2B8940E0 /* Frameworks */, 197 | ); 198 | buildRules = ( 199 | ); 200 | dependencies = ( 201 | ); 202 | name = Pods; 203 | productName = Pods; 204 | productReference = AEEDA5F6291892906F3CBBF39B8BC98F /* libPods.a */; 205 | productType = "com.apple.product-type.library.static"; 206 | }; 207 | /* End PBXNativeTarget section */ 208 | 209 | /* Begin PBXProject section */ 210 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 211 | isa = PBXProject; 212 | attributes = { 213 | LastSwiftUpdateCheck = 0700; 214 | LastUpgradeCheck = 0700; 215 | }; 216 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 217 | compatibilityVersion = "Xcode 3.2"; 218 | developmentRegion = English; 219 | hasScannedForEncodings = 0; 220 | knownRegions = ( 221 | en, 222 | ); 223 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 224 | productRefGroup = CCA510CFBEA2D207524CDA0D73C3B561 /* Products */; 225 | projectDirPath = ""; 226 | projectRoot = ""; 227 | targets = ( 228 | 1469924FC52F60B0068FA24EEFCB3EFC /* Pods */, 229 | ); 230 | }; 231 | /* End PBXProject section */ 232 | 233 | /* Begin PBXSourcesBuildPhase section */ 234 | 60DB2522D6809309FA2F3B04848E7536 /* Sources */ = { 235 | isa = PBXSourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | B991A49F4C12A4F8462C02B69D83DB11 /* Pods-dummy.m in Sources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | /* End PBXSourcesBuildPhase section */ 243 | 244 | /* Begin XCBuildConfiguration section */ 245 | 58FB81DAEDB38D05BAD33920A5B5D63D /* Release */ = { 246 | isa = XCBuildConfiguration; 247 | buildSettings = { 248 | ALWAYS_SEARCH_USER_PATHS = NO; 249 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 250 | CLANG_CXX_LIBRARY = "libc++"; 251 | CLANG_ENABLE_MODULES = YES; 252 | CLANG_ENABLE_OBJC_ARC = YES; 253 | CLANG_WARN_BOOL_CONVERSION = YES; 254 | CLANG_WARN_CONSTANT_CONVERSION = YES; 255 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 256 | CLANG_WARN_EMPTY_BODY = YES; 257 | CLANG_WARN_ENUM_CONVERSION = YES; 258 | CLANG_WARN_INT_CONVERSION = YES; 259 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | COPY_PHASE_STRIP = YES; 263 | ENABLE_NS_ASSERTIONS = NO; 264 | GCC_C_LANGUAGE_STANDARD = gnu99; 265 | GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; 266 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 267 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 268 | GCC_WARN_UNDECLARED_SELECTOR = YES; 269 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 270 | GCC_WARN_UNUSED_FUNCTION = YES; 271 | GCC_WARN_UNUSED_VARIABLE = YES; 272 | IPHONEOS_DEPLOYMENT_TARGET = 4.3; 273 | STRIP_INSTALLED_PRODUCT = NO; 274 | SYMROOT = "${SRCROOT}/../build"; 275 | VALIDATE_PRODUCT = YES; 276 | }; 277 | name = Release; 278 | }; 279 | 59433FEC8314E63801FA0A27AB72DB7B /* Debug */ = { 280 | isa = XCBuildConfiguration; 281 | baseConfigurationReference = 039B5D6B0F0C209CA1433634F21E3CD1 /* Pods.debug.xcconfig */; 282 | buildSettings = { 283 | ENABLE_STRICT_OBJC_MSGSEND = YES; 284 | IPHONEOS_DEPLOYMENT_TARGET = 4.3; 285 | MTL_ENABLE_DEBUG_INFO = YES; 286 | OTHER_LDFLAGS = ""; 287 | OTHER_LIBTOOLFLAGS = ""; 288 | PODS_ROOT = "$(SRCROOT)"; 289 | PRODUCT_NAME = "$(TARGET_NAME)"; 290 | SDKROOT = iphoneos; 291 | SKIP_INSTALL = YES; 292 | }; 293 | name = Debug; 294 | }; 295 | B4B07803AB510FBB2D0AC9D2E485ACD5 /* Release */ = { 296 | isa = XCBuildConfiguration; 297 | baseConfigurationReference = 2911C90045EF579F81BD9E92797F5CF3 /* Pods.release.xcconfig */; 298 | buildSettings = { 299 | ENABLE_STRICT_OBJC_MSGSEND = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 4.3; 301 | MTL_ENABLE_DEBUG_INFO = NO; 302 | OTHER_LDFLAGS = ""; 303 | OTHER_LIBTOOLFLAGS = ""; 304 | PODS_ROOT = "$(SRCROOT)"; 305 | PRODUCT_NAME = "$(TARGET_NAME)"; 306 | SDKROOT = iphoneos; 307 | SKIP_INSTALL = YES; 308 | }; 309 | name = Release; 310 | }; 311 | BEF1BC204DE94B02454F00D0FC406B16 /* Debug */ = { 312 | isa = XCBuildConfiguration; 313 | buildSettings = { 314 | ALWAYS_SEARCH_USER_PATHS = NO; 315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 316 | CLANG_CXX_LIBRARY = "libc++"; 317 | CLANG_ENABLE_MODULES = YES; 318 | CLANG_ENABLE_OBJC_ARC = YES; 319 | CLANG_WARN_BOOL_CONVERSION = YES; 320 | CLANG_WARN_CONSTANT_CONVERSION = YES; 321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 322 | CLANG_WARN_EMPTY_BODY = YES; 323 | CLANG_WARN_ENUM_CONVERSION = YES; 324 | CLANG_WARN_INT_CONVERSION = YES; 325 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 326 | CLANG_WARN_UNREACHABLE_CODE = YES; 327 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 328 | COPY_PHASE_STRIP = NO; 329 | GCC_C_LANGUAGE_STANDARD = gnu99; 330 | GCC_DYNAMIC_NO_PIC = NO; 331 | GCC_OPTIMIZATION_LEVEL = 0; 332 | GCC_PREPROCESSOR_DEFINITIONS = ( 333 | "DEBUG=1", 334 | "$(inherited)", 335 | ); 336 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 338 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 339 | GCC_WARN_UNDECLARED_SELECTOR = YES; 340 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 341 | GCC_WARN_UNUSED_FUNCTION = YES; 342 | GCC_WARN_UNUSED_VARIABLE = YES; 343 | IPHONEOS_DEPLOYMENT_TARGET = 4.3; 344 | ONLY_ACTIVE_ARCH = YES; 345 | STRIP_INSTALLED_PRODUCT = NO; 346 | SYMROOT = "${SRCROOT}/../build"; 347 | }; 348 | name = Debug; 349 | }; 350 | /* End XCBuildConfiguration section */ 351 | 352 | /* Begin XCConfigurationList section */ 353 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 354 | isa = XCConfigurationList; 355 | buildConfigurations = ( 356 | BEF1BC204DE94B02454F00D0FC406B16 /* Debug */, 357 | 58FB81DAEDB38D05BAD33920A5B5D63D /* Release */, 358 | ); 359 | defaultConfigurationIsVisible = 0; 360 | defaultConfigurationName = Release; 361 | }; 362 | 5C358AA8BB91700063133597D41C4E0E /* Build configuration list for PBXNativeTarget "Pods" */ = { 363 | isa = XCConfigurationList; 364 | buildConfigurations = ( 365 | 59433FEC8314E63801FA0A27AB72DB7B /* Debug */, 366 | B4B07803AB510FBB2D0AC9D2E485ACD5 /* Release */, 367 | ); 368 | defaultConfigurationIsVisible = 0; 369 | defaultConfigurationName = Release; 370 | }; 371 | /* End XCConfigurationList section */ 372 | }; 373 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 374 | } 375 | --------------------------------------------------------------------------------