├── Images ├── DBRouletteView.png ├── OAuthFlowInit.png ├── InfoPlistExample.png ├── DBRouletteAuthView.png ├── DBRouletteViewMacOS.png ├── OAuthFlowApproval.png └── DBRouletteAuthViewMacOS.png ├── Examples └── DBRoulette │ ├── iOS │ ├── CarthageProject │ │ └── DBRoulette │ │ │ ├── Cartfile.resolved │ │ │ ├── Cartfile │ │ │ └── DBRoulette │ │ │ ├── PhotoViewController.h │ │ │ ├── AppDelegate.h │ │ │ ├── ViewController.h │ │ │ ├── main.m │ │ │ ├── Assets.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ ├── Base.lproj │ │ │ └── LaunchScreen.storyboard │ │ │ └── Info.plist │ ├── SubprojectProject │ │ └── DBRoulette │ │ │ ├── Cartfile.resolved │ │ │ ├── Cartfile │ │ │ └── DBRoulette │ │ │ ├── PhotoViewController.h │ │ │ ├── AppDelegate.h │ │ │ ├── ViewController.h │ │ │ ├── main.m │ │ │ ├── Base.lproj │ │ │ └── LaunchScreen.storyboard │ │ │ ├── Assets.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Info.plist │ └── CocoaPodsProject │ │ └── DBRoulette │ │ ├── Podfile │ │ ├── DBRoulette │ │ ├── PhotoViewController.h │ │ ├── AppDelegate.h │ │ ├── ViewController.h │ │ ├── main.m │ │ ├── Assets.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Base.lproj │ │ │ └── LaunchScreen.storyboard │ │ └── Info.plist │ │ └── Podfile.lock │ └── macOS │ └── CarthageProject │ └── DBRoulette │ ├── Cartfile.resolved │ ├── Cartfile │ └── DBRoulette │ ├── main.m │ ├── PhotoViewController.h │ ├── AppDelegate.h │ ├── ViewController.h │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ └── Info.plist ├── Format ├── UmbrellaHeader.h ├── format_files.sh └── jazzy.json ├── .gitmodules ├── Source └── ObjectiveDropboxOfficial │ ├── ObjectiveDropboxOfficial.xcodeproj │ └── en.lproj │ │ └── Localizable.strings │ ├── Platform │ ├── ObjectiveDropboxOfficial_macOS │ │ ├── DBSDKImports-macOS.h │ │ ├── Info.plist │ │ └── DBOAuthDesktop-macOS.h │ └── ObjectiveDropboxOfficial_iOS │ │ ├── DBSDKImports-iOS.h │ │ ├── DBOAuthMobileManager-iOS.h │ │ ├── Info.plist │ │ ├── DBLoadingViewController.m │ │ └── DBOAuthMobile-iOS.h │ ├── Shared │ ├── Handwritten │ │ ├── OAuth │ │ │ ├── DBOAuthResultCompletion.h │ │ │ ├── DBLoadingStatusDelegate.h │ │ │ ├── DBAccessTokenProvider.h │ │ │ ├── DBOAuthConstants.m │ │ │ ├── DBAccessToken+NSSecureCoding.m │ │ │ ├── DBScopeRequest.m │ │ │ ├── DBScopeRequest.h │ │ │ └── DBSDKKeychain.h │ │ ├── Resources │ │ │ ├── DBSDKConstants.h │ │ │ ├── DBSDKConstants.m │ │ │ ├── DBCustomTasks.m │ │ │ ├── DBCustomTasks.h │ │ │ └── DBCustomDatatypes.m │ │ ├── DBAppClient.m │ │ ├── DBSDKImportsShared.h │ │ ├── Networking │ │ │ ├── DBURLSessionTaskResponseBlockWrapper.m │ │ │ └── DBSessionData.m │ │ └── DBAppClient.h │ └── Generated │ │ ├── Routes │ │ ├── RouteObjects │ │ │ ├── DBOPENIDRouteObjects.h │ │ │ ├── DBACCOUNTRouteObjects.h │ │ │ ├── DBCHECKRouteObjects.h │ │ │ ├── DBAUTHRouteObjects.h │ │ │ ├── DBTEAMLOGRouteObjects.h │ │ │ ├── DBCONTACTSRouteObjects.h │ │ │ ├── DBUSERSRouteObjects.h │ │ │ ├── DBOPENIDRouteObjects.m │ │ │ ├── DBFILEREQUESTSRouteObjects.h │ │ │ ├── DBACCOUNTRouteObjects.m │ │ │ └── DBCHECKRouteObjects.m │ │ ├── DBAUTHUserAuthRoutes.m │ │ ├── DBOPENIDUserAuthRoutes.m │ │ ├── DBACCOUNTUserAuthRoutes.m │ │ ├── DBAUTHAppAuthRoutes.m │ │ ├── DBCHECKAppAuthRoutes.m │ │ ├── DBCHECKUserAuthRoutes.m │ │ ├── DBCONTACTSUserAuthRoutes.m │ │ ├── DBAUTHUserAuthRoutes.h │ │ ├── DBACCOUNTUserAuthRoutes.h │ │ ├── DBOPENIDUserAuthRoutes.h │ │ ├── DBAUTHAppAuthRoutes.h │ │ └── DBCONTACTSUserAuthRoutes.h │ │ ├── Client │ │ ├── DBTeamBaseClient.m │ │ ├── DBAppBaseClient.m │ │ ├── DBTeamBaseClient.h │ │ ├── DBAppBaseClient.h │ │ └── DBUserBaseClient.m │ │ ├── Resources │ │ ├── DBStoneBase.m │ │ ├── DBSerializableProtocol.h │ │ └── DBStoneValidators.h │ │ └── ApiObjects │ │ ├── Files │ │ └── Headers │ │ │ ├── DBFILESFileOpsResult.h │ │ │ ├── DBFILESGetTagsArg.h │ │ │ ├── DBFILESFileLock.h │ │ │ ├── DBFILESLockFileArg.h │ │ │ ├── DBFILESSymlinkInfo.h │ │ │ └── DBFILESUnlockFileArg.h │ │ ├── Openid │ │ └── Headers │ │ │ └── DBOPENIDUserInfoArgs.h │ │ ├── TeamLog │ │ └── Headers │ │ │ ├── DBTEAMLOGFileAddDetails.h │ │ │ ├── DBTEAMLOGFileEditDetails.h │ │ │ ├── DBTEAMLOGGroupMovedDetails.h │ │ │ ├── DBTEAMLOGNoteSharedDetails.h │ │ │ ├── DBTEAMLOGTfaResetDetails.h │ │ │ ├── DBTEAMLOGFileDeleteDetails.h │ │ │ ├── DBTEAMLOGFileRevertDetails.h │ │ │ ├── DBTEAMLOGFilePreviewDetails.h │ │ │ ├── DBTEAMLOGFileRestoreDetails.h │ │ │ ├── DBTEAMLOGNoteAclLinkDetails.h │ │ │ ├── DBTEAMLOGCreateFolderDetails.h │ │ │ ├── DBTEAMLOGPasswordResetDetails.h │ │ │ ├── DBTEAMLOGFileDownloadDetails.h │ │ │ ├── DBTEAMLOGLogoutType.h │ │ │ ├── DBTEAMLOGPasswordChangeDetails.h │ │ │ ├── DBTEAMLOGFileAddType.h │ │ │ ├── DBTEAMLOGSsoRemoveCertDetails.h │ │ │ ├── DBTEAMLOGOpenNoteSharedDetails.h │ │ │ ├── DBTEAMLOGEmmErrorType.h │ │ │ ├── DBTEAMLOGFileCopyType.h │ │ │ ├── DBTEAMLOGFileEditType.h │ │ │ ├── DBTEAMLOGFileMoveType.h │ │ │ ├── DBTEAMLOGSsoErrorType.h │ │ │ └── DBTEAMLOGTfaResetType.h │ │ └── Paper │ │ └── Headers │ │ └── DBPAPERRefPaperDoc.h │ └── Headers │ ├── Umbrella │ ├── ObjectiveDropboxOfficialLib.h │ └── ObjectiveDropboxOfficial.h │ ├── PlatformInternal │ └── iOS │ │ └── DBLoadingViewController.h │ └── Internal │ ├── Networking │ ├── DBGlobalErrorResponseHandler+Internal.h │ ├── DBURLSessionTaskResponseBlockWrapper.h │ ├── DBHandlerTypesInternal.h │ ├── DBTasks+Protected.h │ ├── DBURLSessionTaskWithTokenRefresh.h │ ├── DBURLSessionTask.h │ └── DBSDKReachability.h │ ├── OAuth │ ├── DBScopeRequest+Protected.h │ ├── DBAccessToken+NSSecureCoding.h │ ├── DBOAuthConstants.h │ ├── DBAccessTokenProvider+Internal.h │ ├── DBOAuthUtils.h │ ├── DBOAuthManager+Protected.h │ └── DBOAuthPKCESession.h │ ├── DBClientsManager+Protected.h │ └── Resources │ ├── DBChunkInputStream.h │ └── DBSDKSystem.h ├── TestObjectiveDropbox ├── TestObjectiveDropbox_macOS │ ├── main.m │ ├── AppDelegate.h │ ├── ViewController.h │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ └── Info.plist ├── TestObjectiveDropbox_iOS │ ├── AppDelegate.h │ ├── main.m │ ├── TestObjectiveDropbox_iOS.entitlements │ ├── ViewController.h │ ├── Base.lproj │ │ └── LaunchScreen.storyboard │ └── Assets.xcassets │ │ └── AppIcon.appiconset │ │ └── Contents.json ├── Podfile.lock ├── TestObjectiveDropbox_iOSTests │ ├── TestAuthTokenGenerator.h │ └── Info.plist ├── IntegrationTests │ └── TestAppType.h ├── Podfile └── TestObjectiveDropbox_macOSTests │ └── Info.plist ├── update_repo_check.sh ├── .gitignore ├── LICENSE └── ObjectiveDropboxOfficial.podspec /Images/DBRouletteView.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dropbox/dropbox-sdk-obj-c/master/Images/DBRouletteView.png -------------------------------------------------------------------------------- /Images/OAuthFlowInit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dropbox/dropbox-sdk-obj-c/master/Images/OAuthFlowInit.png -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CarthageProject/DBRoulette/Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "dropbox/dropbox-sdk-obj-c" "7.0.0" 2 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/SubprojectProject/DBRoulette/Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "dropbox/dropbox-sdk-obj-c" "6.0.0" 2 | -------------------------------------------------------------------------------- /Examples/DBRoulette/macOS/CarthageProject/DBRoulette/Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "dropbox/dropbox-sdk-obj-c" "6.0.0" 2 | -------------------------------------------------------------------------------- /Images/InfoPlistExample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dropbox/dropbox-sdk-obj-c/master/Images/InfoPlistExample.png -------------------------------------------------------------------------------- /Images/DBRouletteAuthView.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dropbox/dropbox-sdk-obj-c/master/Images/DBRouletteAuthView.png -------------------------------------------------------------------------------- /Images/DBRouletteViewMacOS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dropbox/dropbox-sdk-obj-c/master/Images/DBRouletteViewMacOS.png -------------------------------------------------------------------------------- /Images/OAuthFlowApproval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dropbox/dropbox-sdk-obj-c/master/Images/OAuthFlowApproval.png -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CocoaPodsProject/DBRoulette/Podfile: -------------------------------------------------------------------------------- 1 | target 'DBRoulette' do 2 | pod 'ObjectiveDropboxOfficial' 3 | end -------------------------------------------------------------------------------- /Format/UmbrellaHeader.h: -------------------------------------------------------------------------------- 1 | #import "DBSDKImportsShared.h" 2 | #import "DBSDKImports-iOS.h" 3 | #import "DBSDKImports-macOS.h" 4 | -------------------------------------------------------------------------------- /Images/DBRouletteAuthViewMacOS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dropbox/dropbox-sdk-obj-c/master/Images/DBRouletteAuthViewMacOS.png -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CarthageProject/DBRoulette/Cartfile: -------------------------------------------------------------------------------- 1 | # ObjectiveDropboxOfficial 2 | github "https://github.com/dropbox/dropbox-sdk-obj-c" ~> 7.0.0 3 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/SubprojectProject/DBRoulette/Cartfile: -------------------------------------------------------------------------------- 1 | # ObjectiveDropboxOfficial 2 | github "https://github.com/dropbox/dropbox-sdk-obj-c" ~> 6.0.0 -------------------------------------------------------------------------------- /Examples/DBRoulette/macOS/CarthageProject/DBRoulette/Cartfile: -------------------------------------------------------------------------------- 1 | # ObjectiveDropboxOfficial 2 | github "https://github.com/dropbox/dropbox-sdk-obj-c" ~> 6.0.0 -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "stone"] 2 | path = stone 3 | url = https://github.com/dropbox/stone.git 4 | [submodule "spec"] 5 | path = spec 6 | url = https://github.com/dropbox/dropbox-api-spec.git 7 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.xcodeproj/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dropbox/dropbox-sdk-obj-c/master/Source/ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.xcodeproj/en.lproj/Localizable.strings -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_macOS/DBSDKImports-macOS.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBClientsManager+DesktopAuth-macOS.h" 6 | #import "DBOAuthDesktop-macOS.h" 7 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_macOS/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // TestObjectiveDropbox_macOS 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | int main(int argc, const char *argv[]) { return NSApplicationMain(argc, argv); } 11 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_macOS/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // TestObjectiveDropbox_macOS 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface AppDelegate : NSObject 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CarthageProject/DBRoulette/DBRoulette/PhotoViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // PhotoViewController.h 3 | // DBRoulette 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface PhotoViewController : UIViewController 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CocoaPodsProject/DBRoulette/DBRoulette/PhotoViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // PhotoViewController.h 3 | // DBRoulette 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface PhotoViewController : UIViewController 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/SubprojectProject/DBRoulette/DBRoulette/PhotoViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // PhotoViewController.h 3 | // DBRoulette 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface PhotoViewController : UIViewController 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_macOS/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // TestObjectiveDropbox_macOS 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface ViewController : NSViewController 11 | 12 | - (void)checkButtons; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Examples/DBRoulette/macOS/CarthageProject/DBRoulette/DBRoulette/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DBRoulette 4 | // 5 | // Created by Stephen Cobbe on 2/27/17. 6 | // Copyright © 2017 Dropbox. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | return NSApplicationMain(argc, argv); 13 | } 14 | -------------------------------------------------------------------------------- /Examples/DBRoulette/macOS/CarthageProject/DBRoulette/DBRoulette/PhotoViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // PhotoViewController.h 3 | // DBRoulette 4 | // 5 | // Created by Stephen Cobbe on 2/27/17. 6 | // Copyright © 2017 Dropbox. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface PhotoViewController : NSViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_iOS/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // TestObjectiveDropbox_iOS 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property(strong, nonatomic) UIWindow *window; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Examples/DBRoulette/macOS/CarthageProject/DBRoulette/DBRoulette/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // DBRoulette 4 | // 5 | // Created by Stephen Cobbe on 2/27/17. 6 | // Copyright © 2017 Dropbox. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : NSObject 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Examples/DBRoulette/macOS/CarthageProject/DBRoulette/DBRoulette/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // DBRoulette 4 | // 5 | // Created by Stephen Cobbe on 2/27/17. 6 | // Copyright © 2017 Dropbox. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : NSViewController 12 | 13 | - (void)checkButtons; 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBOAuthResultCompletion.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | @class DBOAuthResult; 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | /// Callback block for oauth result. 12 | typedef void (^DBOAuthCompletion)(DBOAuthResult *_Nullable); 13 | 14 | NS_ASSUME_NONNULL_END 15 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_iOS/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // TestObjectiveDropbox_iOS 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import "AppDelegate.h" 9 | #import 10 | 11 | int main(int argc, char *argv[]) { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CarthageProject/DBRoulette/DBRoulette/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // DBRoulette 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property(strong, nonatomic) UIWindow *window; 13 | 14 | @property(nonatomic) BOOL authSuccessful; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CocoaPodsProject/DBRoulette/DBRoulette/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // DBRoulette 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property(strong, nonatomic) UIWindow *window; 13 | 14 | @property(nonatomic) BOOL authSuccessful; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/SubprojectProject/DBRoulette/DBRoulette/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // DBRoulette 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property(strong, nonatomic) UIWindow *window; 13 | 14 | @property(nonatomic) BOOL authSuccessful; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CarthageProject/DBRoulette/DBRoulette/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // DBRoulette 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | static BOOL showPhotoView = NO; 11 | 12 | @interface ViewController : UIViewController 13 | 14 | @property (nonatomic) BOOL authSuccessful; 15 | 16 | - (void)checkButtons; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CocoaPodsProject/DBRoulette/DBRoulette/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // DBRoulette 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | static BOOL showPhotoView = NO; 11 | 12 | @interface ViewController : UIViewController 13 | 14 | @property (nonatomic) BOOL authSuccessful; 15 | 16 | - (void)checkButtons; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ObjectiveDropboxOfficial (7.0.0) 3 | 4 | DEPENDENCIES: 5 | - ObjectiveDropboxOfficial (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ObjectiveDropboxOfficial: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | ObjectiveDropboxOfficial: cf39e37372f59c270aad869604dce20f11b877f5 13 | 14 | PODFILE CHECKSUM: 34ac610e6620890c744476957559b5cef359d526 15 | 16 | COCOAPODS: 1.11.3 17 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/SubprojectProject/DBRoulette/DBRoulette/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // DBRoulette 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | static BOOL showPhotoView = NO; 11 | 12 | @interface ViewController : UIViewController 13 | 14 | @property (nonatomic) BOOL authSuccessful; 15 | 16 | - (void)checkButtons; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Umbrella/ObjectiveDropboxOfficialLib.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Umbrella import for importing as a library 5 | /// 6 | 7 | #import "TargetConditionals.h" 8 | 9 | #import "DBSDKImportsShared.h" 10 | 11 | #if TARGET_OS_IPHONE 12 | #import "DBSDKImports-iOS.h" 13 | #elif TARGET_OS_MAC 14 | #import "DBSDKImports-macOS.h" 15 | #endif 16 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_iOS/DBSDKImports-iOS.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBClientsManager+MobileAuth-iOS.h" 6 | #import "DBLoadingStatusDelegate.h" 7 | #import "DBOAuthMobile-iOS.h" 8 | #import "DBOAuthMobileManager-iOS.h" 9 | 10 | /// OpenWith 11 | #import "DBOfficialAppConnector-iOS.h" 12 | #import "DBOpenWithInfo-iOS.h" 13 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CocoaPodsProject/DBRoulette/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ObjectiveDropboxOfficial (6.0.0) 3 | 4 | DEPENDENCIES: 5 | - ObjectiveDropboxOfficial 6 | 7 | SPEC REPOS: 8 | trunk: 9 | - ObjectiveDropboxOfficial 10 | 11 | SPEC CHECKSUMS: 12 | ObjectiveDropboxOfficial: bca5b00db1989dd1999c04a70ac4f5e782cc1e54 13 | 14 | PODFILE CHECKSUM: 4d2f0f91f48989221c9f8ec5525875a7a6320274 15 | 16 | COCOAPODS: 1.10.1 17 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_iOS/TestObjectiveDropbox_iOS.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | keychain-access-groups 6 | 7 | $(AppIdentifierPrefix)com.dropbox.TestObjectiveDropbox-iOS 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_iOS/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // TestObjectiveDropbox_iOS 4 | // 5 | // Copyright © 2016 Dropbox. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @class DBOpenWithInfo; 11 | 12 | @interface ViewController : UIViewController 13 | 14 | - (void)checkButtons; 15 | 16 | - (void)setOpenWithInfoNSURL:(DBOpenWithInfo * _Nonnull)openWithInfoNSURL; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CarthageProject/DBRoulette/DBRoulette/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DBRoulette 4 | // 5 | // Created by Stephen Cobbe on 9/13/16. 6 | // Copyright © 2016 Dropbox. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CocoaPodsProject/DBRoulette/DBRoulette/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DBRoulette 4 | // 5 | // Created by Stephen Cobbe on 9/5/16. 6 | // Copyright © 2016 Dropbox. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import 11 | 12 | int main(int argc, char *argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/SubprojectProject/DBRoulette/DBRoulette/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DBRoulette 4 | // 5 | // Created by Stephen Cobbe on 9/13/16. 6 | // Copyright © 2016 Dropbox. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_iOSTests/TestAuthTokenGenerator.h: -------------------------------------------------------------------------------- 1 | @class DBAccessToken; 2 | 3 | @interface TestAuthTokenGenerator : NSObject 4 | + (nonnull NSString *)environmentVariableForKey:(nonnull NSString *)key; 5 | 6 | + (nullable DBAccessToken *)refreshToken:(nullable NSString *)refreshToken 7 | apiKey:(nullable NSString *)apiKey 8 | scopes:(nonnull NSArray*)scopes; 9 | @end 10 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/Resources/DBSDKConstants.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | /// Constants for the SDK should go here. 6 | 7 | #import 8 | 9 | extern NSString *const kDBSDKVersion; 10 | extern NSString *const kDBSDKDefaultUserAgentPrefix; 11 | extern NSString *const kDBSDKForegroundSessionId; 12 | extern NSString *const kDBSDKBackgroundSessionId; 13 | extern NSString *const kDBSDKCSRFKey; 14 | -------------------------------------------------------------------------------- /update_repo_check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Release checklist 4 | # 5 | # 0. Check on DBApp, Chime, Paper. Run analyzer. 6 | # 1. Make sure test data is reset 7 | # 2. Run generator 8 | # 3. Check test project, run unit tests 9 | # 4. Check pod spec lint 10 | # 5. Increment version with script 11 | # 6. Update Carthage example project 12 | # 7. Push to CocoaPods 13 | # 14 | 15 | cat TestObjectiveDropbox/IntegrationTests/TestData.m 16 | 17 | # python generate_base_client.py 18 | 19 | # pod spec lint 20 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_iOS/DBOAuthMobileManager-iOS.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | #import "DBOAuthManager.h" 8 | 9 | @protocol DBSharedApplication; 10 | 11 | #pragma mark - OAuth manager base (iOS) 12 | 13 | /// 14 | /// Platform-specific (iOS) manager for performing OAuth linking. 15 | /// 16 | @interface DBOAuthMobileManager : DBOAuthManager 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | ## Build generated 3 | build/ 4 | DerivedData/ 5 | xcuserdata/ 6 | 7 | ## Various settings 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | 17 | ## Other 18 | *.moved-aside 19 | *.xcuserstate 20 | *.xcworkspace 21 | 22 | # macOS 23 | *.DS_Store 24 | 25 | # Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | # CocoaPods 32 | Pods/ 33 | 34 | # Carthage 35 | Carthage/ 36 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/IntegrationTests/TestAppType.h: -------------------------------------------------------------------------------- 1 | // 2 | // TestAppType.h 3 | // TestObjectiveDropbox 4 | // 5 | // Created by Stephen Cobbe on 2/16/17. 6 | // Copyright © 2017 Dropbox. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef NS_ENUM(NSInteger, ApiAppPermissionType) { 12 | FullDropboxScoped, 13 | FullDropboxScopedForTeamTesting, 14 | }; 15 | 16 | /// Toggle this variable depending on which set of tests you are running. 17 | static ApiAppPermissionType appPermission = (ApiAppPermissionType)FullDropboxScoped; 18 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target "TestObjectiveDropbox_iOS" do 4 | platform :ios, '12.0' 5 | pod 'ObjectiveDropboxOfficial', :path => '../' 6 | target "TestObjectiveDropbox_iOSTests" do 7 | pod 'ObjectiveDropboxOfficial', :path => '../' 8 | end 9 | end 10 | 11 | target "TestObjectiveDropbox_macOS" do 12 | platform :osx, '10.13' 13 | pod 'ObjectiveDropboxOfficial', :path => '../' 14 | target "TestObjectiveDropbox_macOSTests" do 15 | pod 'ObjectiveDropboxOfficial', :path => '../' 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/PlatformInternal/iOS/DBLoadingViewController.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | #import 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface DBLoadingViewController : UIViewController 11 | 12 | - (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE; 13 | 14 | - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil 15 | bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/Resources/DBSDKConstants.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | /// Constants for the SDK should go here. 6 | 7 | #import 8 | 9 | #import "DBSDKConstants.h" 10 | 11 | NSString *const kDBSDKVersion = @"7.4.1"; 12 | NSString *const kDBSDKDefaultUserAgentPrefix = @"OfficialDropboxObjCSDKv2"; 13 | NSString *const kDBSDKForegroundSessionId = @"com.dropbox.dropbox_sdk_obj_c_foreground"; 14 | NSString *const kDBSDKBackgroundSessionId = @"com.dropbox.dropbox_sdk_obj_c_background"; 15 | NSString *const kDBSDKCSRFKey = @"kDBSDKCSRFKeyObjCSDK"; 16 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/Networking/DBGlobalErrorResponseHandler+Internal.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | #import "DBGlobalErrorResponseHandler.h" 8 | 9 | @class DBTask; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface DBGlobalErrorResponseHandler (Internal) 14 | 15 | + (void)executeRegisteredResponseBlocksWithRouteError:(id _Nullable)routeError 16 | networkError:(nullable DBRequestError *)networkError 17 | restartTask:(DBTask *)restartTask; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/OAuth/DBScopeRequest+Protected.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBScopeRequest.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface DBScopeRequest (Protected) 10 | 11 | /// String value of DBScopeType. 12 | @property (nonatomic, readonly, copy) NSString *scopeType; 13 | /// Boolean indicating whether to keep all previously granted scopes. 14 | @property (nonatomic, readonly, assign) BOOL includeGrantedScopes; 15 | 16 | /// String representation of the scopes, used in URL query. Nil if no scopes requested. 17 | - (nullable NSString *)scopeString; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBOPENIDRouteObjects.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | @class DBRoute; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// 14 | /// Stone route objects for the Openid namespace. Each route in the Openid 15 | /// namespace has its own static object, which contains information about the 16 | /// route. 17 | /// 18 | @interface DBOPENIDRouteObjects : NSObject 19 | 20 | /// Accessor method for the userinfo route object. 21 | + (DBRoute *)DBOPENIDUserinfo; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBACCOUNTRouteObjects.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | @class DBRoute; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// 14 | /// Stone route objects for the Account namespace. Each route in the Account 15 | /// namespace has its own static object, which contains information about the 16 | /// route. 17 | /// 18 | @interface DBACCOUNTRouteObjects : NSObject 19 | 20 | /// Accessor method for the setProfilePhoto route object. 21 | + (DBRoute *)DBACCOUNTSetProfilePhoto; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBLoadingStatusDelegate.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /// Protocol for handling loading status during auth flow. 10 | /// Implementing class could show custom UX to reflect loading status. 11 | @protocol DBLoadingStatusDelegate 12 | 13 | /// Called when auth flow is loading/waiting for some data. e.g. Waiting for a network request to finish. 14 | - (void)showLoading; 15 | 16 | /// Called when auth flow finishes loading/waiting. e.g. A network request finished. 17 | - (void)dismissLoading; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/Resources/DBCustomTasks.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBCustomTasks.h" 6 | #import "DBCustomDatatypes.h" 7 | #import "DBTasksStorage.h" 8 | 9 | @implementation DBBatchUploadTask { 10 | DBBatchUploadData *_uploadData; 11 | } 12 | 13 | - (instancetype)initWithUploadData:(DBBatchUploadData *)uploadData { 14 | self = [super init]; 15 | if (self) { 16 | _uploadData = uploadData; 17 | } 18 | return self; 19 | } 20 | 21 | - (void)cancel { 22 | _uploadData.cancel = YES; 23 | [_uploadData.taskStorage cancelAllTasks]; 24 | } 25 | 26 | - (BOOL)uploadsInProgress { 27 | return [_uploadData.taskStorage tasksInProgress]; 28 | } 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBCHECKRouteObjects.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | @class DBRoute; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// 14 | /// Stone route objects for the Check namespace. Each route in the Check 15 | /// namespace has its own static object, which contains information about the 16 | /// route. 17 | /// 18 | @interface DBCHECKRouteObjects : NSObject 19 | 20 | /// Accessor method for the app route object. 21 | + (DBRoute *)DBCHECKApp; 22 | 23 | /// Accessor method for the user route object. 24 | + (DBRoute *)DBCHECKUser; 25 | 26 | @end 27 | 28 | NS_ASSUME_NONNULL_END 29 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBAccessTokenProvider.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBOAuthResultCompletion.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /// Protocol for objects that provide an access token and offer a way to refresh (short-lived) token. 10 | @protocol DBAccessTokenProvider 11 | 12 | /// Returns an access token for making user auth API calls. 13 | @property (nonatomic, readonly) NSString *accessToken; 14 | 15 | /// This refreshes the access token if it's expired or about to expire. 16 | /// The refresh result will be passed back via the completion block. 17 | - (void)refreshAccessTokenIfNecessary:(DBOAuthCompletion)completion; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBAUTHRouteObjects.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | @class DBRoute; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// 14 | /// Stone route objects for the Auth namespace. Each route in the Auth namespace 15 | /// has its own static object, which contains information about the route. 16 | /// 17 | @interface DBAUTHRouteObjects : NSObject 18 | 19 | /// Accessor method for the tokenFromOauth1 route object. 20 | + (DBRoute *)DBAUTHTokenFromOauth1; 21 | 22 | /// Accessor method for the tokenRevoke route object. 23 | + (DBRoute *)DBAUTHTokenRevoke; 24 | 25 | @end 26 | 27 | NS_ASSUME_NONNULL_END 28 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/OAuth/DBAccessToken+NSSecureCoding.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBOAuthManager.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface DBAccessToken (NSSecureCoding) 10 | 11 | /// Attempts to create a DBAccessToken by decoding the given data. 12 | /// @param data The data to decode. 13 | /// @return DBAccessToken object if success, otherwise nil. 14 | + (nullable DBAccessToken *)createTokenFromData:(NSData *)data; 15 | 16 | /// Attempts to convert the given `DBAccessToken` to an `NSData` object. 17 | /// @param token The token to encode. 18 | /// @return NSData object if success, otherwise nil. 19 | + (nullable NSData *)covertTokenToData:(DBAccessToken *)token; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBTEAMLOGRouteObjects.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | @class DBRoute; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// 14 | /// Stone route objects for the TeamLog namespace. Each route in the TeamLog 15 | /// namespace has its own static object, which contains information about the 16 | /// route. 17 | /// 18 | @interface DBTEAMLOGRouteObjects : NSObject 19 | 20 | /// Accessor method for the getEvents route object. 21 | + (DBRoute *)DBTEAMLOGGetEvents; 22 | 23 | /// Accessor method for the getEventsContinue route object. 24 | + (DBRoute *)DBTEAMLOGGetEventsContinue; 25 | 26 | @end 27 | 28 | NS_ASSUME_NONNULL_END 29 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_iOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_macOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Client/DBTeamBaseClient.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBTeamBaseClient.h" 8 | #import "DBFILEPROPERTIESTeamAuthRoutes.h" 9 | #import "DBTEAMLOGTeamAuthRoutes.h" 10 | #import "DBTEAMTeamAuthRoutes.h" 11 | #import "DBTransportClientProtocol.h" 12 | 13 | @implementation DBTeamBaseClient 14 | 15 | - (instancetype)initWithTransportClient:(id)client { 16 | self = [super init]; 17 | if (self) { 18 | _transportClient = client; 19 | _filePropertiesRoutes = [[DBFILEPROPERTIESTeamAuthRoutes alloc] init:client]; 20 | _teamRoutes = [[DBTEAMTeamAuthRoutes alloc] init:client]; 21 | _teamLogRoutes = [[DBTEAMLOGTeamAuthRoutes alloc] init:client]; 22 | } 23 | return self; 24 | } 25 | @end 26 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBCONTACTSRouteObjects.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | @class DBRoute; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// 14 | /// Stone route objects for the Contacts namespace. Each route in the Contacts 15 | /// namespace has its own static object, which contains information about the 16 | /// route. 17 | /// 18 | @interface DBCONTACTSRouteObjects : NSObject 19 | 20 | /// Accessor method for the deleteManualContacts route object. 21 | + (DBRoute *)DBCONTACTSDeleteManualContacts; 22 | 23 | /// Accessor method for the deleteManualContactsBatch route object. 24 | + (DBRoute *)DBCONTACTSDeleteManualContactsBatch; 25 | 26 | @end 27 | 28 | NS_ASSUME_NONNULL_END 29 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBAUTHUserAuthRoutes.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBAUTHUserAuthRoutes.h" 8 | #import "DBAUTHRouteObjects.h" 9 | #import "DBAUTHTokenFromOAuth1Arg.h" 10 | #import "DBAUTHTokenFromOAuth1Error.h" 11 | #import "DBAUTHTokenFromOAuth1Result.h" 12 | #import "DBRequestErrors.h" 13 | #import "DBStoneBase.h" 14 | #import "DBTransportClientProtocol.h" 15 | 16 | @implementation DBAUTHUserAuthRoutes 17 | 18 | - (instancetype)init:(id)client { 19 | self = [super init]; 20 | if (self) { 21 | _client = client; 22 | } 23 | return self; 24 | } 25 | 26 | - (DBRpcTask *)tokenRevoke { 27 | DBRoute *route = DBAUTHRouteObjects.DBAUTHTokenRevoke; 28 | return [self.client requestRpc:route arg:nil]; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/DBClientsManager+Protected.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | #import "DBClientsManager.h" 8 | 9 | @class DBOAuthManager; 10 | @class DBTransportDefaultConfig; 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface DBClientsManager (Protected) 15 | 16 | + (void)setupWithOAuthManager:(DBOAuthManager *)oAuthManager 17 | transportConfig:(DBTransportDefaultConfig *)transportConfig; 18 | 19 | + (void)setupWithOAuthManagerTeam:(DBOAuthManager *)oAuthManager 20 | transportConfig:(DBTransportDefaultConfig *)transportConfig; 21 | 22 | + (void)setTransportConfig:(DBTransportDefaultConfig *)transportConfig; 23 | 24 | + (DBTransportDefaultConfig *)transportConfig; 25 | 26 | + (void)setAppKey:(NSString *)appKey; 27 | 28 | @end 29 | 30 | NS_ASSUME_NONNULL_END 31 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/OAuth/DBOAuthConstants.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | /// Constant strings for keys of URL queries and responses in auth flow. 8 | 9 | extern NSString *const kDBCodeChallengeKey; 10 | extern NSString *const kDBCodeChallengeMethodKey; 11 | extern NSString *const kDBTokenAccessTypeKey; 12 | extern NSString *const kDBResponseTypeKey; 13 | extern NSString *const kDBScopeKey; 14 | extern NSString *const kDBIncludeGrantedScopesKey; 15 | extern NSString *const kDBStateKey; 16 | extern NSString *const kDBExtraQueryParamsKey; 17 | extern NSString *const kDBOauthCodeKey; 18 | extern NSString *const kDBOauthTokenKey; 19 | extern NSString *const kDBOauthSecretKey; 20 | extern NSString *const kDBUidKey; 21 | extern NSString *const kDBErrorKey; 22 | extern NSString *const kDBErrorDescriptionKey; 23 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/DBAppClient.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBAppClient.h" 6 | #import "DBTransportDefaultClient.h" 7 | #import "DBTransportDefaultConfig.h" 8 | 9 | @implementation DBAppClient 10 | 11 | - (instancetype)initWithAppKey:(NSString *)appKey appSecret:(NSString *)appSecret { 12 | DBTransportDefaultConfig *transportConfig = 13 | [[DBTransportDefaultConfig alloc] initWithAppKey:appKey appSecret:appSecret]; 14 | return [self initWithTransportConfig:transportConfig]; 15 | } 16 | 17 | - (instancetype)initWithTransportConfig:(DBTransportDefaultConfig *)transportConfig { 18 | DBTransportDefaultClient *transportClient = 19 | [[DBTransportDefaultClient alloc] initWithAccessToken:nil tokenUid:nil transportConfig:transportConfig]; 20 | return [super initWithTransportClient:transportClient]; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Client/DBAppBaseClient.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBAppBaseClient.h" 8 | #import "DBAUTHAppAuthRoutes.h" 9 | #import "DBCHECKAppAuthRoutes.h" 10 | #import "DBFILESAppAuthRoutes.h" 11 | #import "DBSHARINGAppAuthRoutes.h" 12 | #import "DBTransportClientProtocol.h" 13 | 14 | @implementation DBAppBaseClient 15 | 16 | - (instancetype)initWithTransportClient:(id)client { 17 | self = [super init]; 18 | if (self) { 19 | _transportClient = client; 20 | _authRoutes = [[DBAUTHAppAuthRoutes alloc] init:client]; 21 | _checkRoutes = [[DBCHECKAppAuthRoutes alloc] init:client]; 22 | _filesRoutes = [[DBFILESAppAuthRoutes alloc] init:client]; 23 | _sharingRoutes = [[DBSHARINGAppAuthRoutes alloc] init:client]; 24 | } 25 | return self; 26 | } 27 | @end 28 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBOAuthConstants.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBOAuthConstants.h" 6 | 7 | NSString *const kDBCodeChallengeKey = @"code_challenge"; 8 | NSString *const kDBCodeChallengeMethodKey = @"code_challenge_method"; 9 | NSString *const kDBTokenAccessTypeKey = @"token_access_type"; 10 | NSString *const kDBResponseTypeKey = @"response_type"; 11 | NSString *const kDBScopeKey = @"scope"; 12 | NSString *const kDBIncludeGrantedScopesKey = @"include_granted_scopes"; 13 | NSString *const kDBStateKey = @"state"; 14 | NSString *const kDBExtraQueryParamsKey = @"extra_query_params"; 15 | NSString *const kDBOauthCodeKey = @"oauth_code"; 16 | NSString *const kDBOauthTokenKey = @"oauth_token"; 17 | NSString *const kDBOauthSecretKey = @"oauth_token_secret"; 18 | NSString *const kDBUidKey = @"uid"; 19 | NSString *const kDBErrorKey = @"error"; 20 | NSString *const kDBErrorDescriptionKey = @"error_description"; 21 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBOPENIDUserAuthRoutes.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBOPENIDUserAuthRoutes.h" 8 | #import "DBOPENIDOpenIdError.h" 9 | #import "DBOPENIDRouteObjects.h" 10 | #import "DBOPENIDUserInfoArgs.h" 11 | #import "DBOPENIDUserInfoError.h" 12 | #import "DBOPENIDUserInfoResult.h" 13 | #import "DBRequestErrors.h" 14 | #import "DBStoneBase.h" 15 | #import "DBTransportClientProtocol.h" 16 | 17 | @implementation DBOPENIDUserAuthRoutes 18 | 19 | - (instancetype)init:(id)client { 20 | self = [super init]; 21 | if (self) { 22 | _client = client; 23 | } 24 | return self; 25 | } 26 | 27 | - (DBRpcTask *)userinfo { 28 | DBRoute *route = DBOPENIDRouteObjects.DBOPENIDUserinfo; 29 | DBOPENIDUserInfoArgs *arg = [[DBOPENIDUserInfoArgs alloc] initDefault]; 30 | return [self.client requestRpc:route arg:arg]; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Format/format_files.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # e.g. `format_files.sh ` 4 | # 5 | 6 | set -euo pipefail 7 | 8 | exit_with_message() { 9 | local message=$1 10 | local retcode="${2:-0}" 11 | 12 | echo 1>&2 "$message" 13 | exit "$retcode" 14 | } 15 | 16 | exit_with_clang_format_install_message() { 17 | exit_with_message "Skipping code formatting. Please install clang-format version 7 or greater: 'brew install clang-format'" 18 | } 19 | 20 | if ! [ -x "$(command -v clang-format)" ]; then 21 | exit_with_clang_format_install_message 22 | fi 23 | 24 | if ! [ "$(uname -s)" == "Darwin" ]; then 25 | exit 0 26 | fi 27 | 28 | clang_format_version="$(clang-format --version | cut -f3 -w | tail)" 29 | clang_format_version_major=$(awk -F. '{print $1}' <<<"$clang_format_version") 30 | if [ "$clang_format_version_major" -lt 7 ]; then 31 | exit_with_clang_format_install_message 32 | fi 33 | 34 | srcs_path=$1 35 | find "$srcs_path" -type f -name "*[.h|.m]" -exec clang-format -i -style=file "{}" \; 36 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ObjectiveDropboxOfficial 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 7.4.1 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(CURRENT_PROJECT_VERSION) 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_macOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 7.4.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSHumanReadableCopyright 24 | Copyright © 2016 Dropbox. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBACCOUNTUserAuthRoutes.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBACCOUNTUserAuthRoutes.h" 8 | #import "DBACCOUNTPhotoSourceArg.h" 9 | #import "DBACCOUNTRouteObjects.h" 10 | #import "DBACCOUNTSetProfilePhotoArg.h" 11 | #import "DBACCOUNTSetProfilePhotoError.h" 12 | #import "DBACCOUNTSetProfilePhotoResult.h" 13 | #import "DBRequestErrors.h" 14 | #import "DBStoneBase.h" 15 | #import "DBTransportClientProtocol.h" 16 | 17 | @implementation DBACCOUNTUserAuthRoutes 18 | 19 | - (instancetype)init:(id)client { 20 | self = [super init]; 21 | if (self) { 22 | _client = client; 23 | } 24 | return self; 25 | } 26 | 27 | - (DBRpcTask *)setProfilePhoto:(DBACCOUNTPhotoSourceArg *)photo { 28 | DBRoute *route = DBACCOUNTRouteObjects.DBACCOUNTSetProfilePhoto; 29 | DBACCOUNTSetProfilePhotoArg *arg = [[DBACCOUNTSetProfilePhotoArg alloc] initWithPhoto:photo]; 30 | return [self.client requestRpc:route arg:arg]; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBAUTHAppAuthRoutes.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBAUTHAppAuthRoutes.h" 8 | #import "DBAUTHRouteObjects.h" 9 | #import "DBAUTHTokenFromOAuth1Arg.h" 10 | #import "DBAUTHTokenFromOAuth1Error.h" 11 | #import "DBAUTHTokenFromOAuth1Result.h" 12 | #import "DBRequestErrors.h" 13 | #import "DBStoneBase.h" 14 | #import "DBTransportClientProtocol.h" 15 | 16 | @implementation DBAUTHAppAuthRoutes 17 | 18 | - (instancetype)init:(id)client { 19 | self = [super init]; 20 | if (self) { 21 | _client = client; 22 | } 23 | return self; 24 | } 25 | 26 | - (DBRpcTask *)tokenFromOauth1:(NSString *)oauth1Token oauth1TokenSecret:(NSString *)oauth1TokenSecret { 27 | DBRoute *route = DBAUTHRouteObjects.DBAUTHTokenFromOauth1; 28 | DBAUTHTokenFromOAuth1Arg *arg = 29 | [[DBAUTHTokenFromOAuth1Arg alloc] initWithOauth1Token:oauth1Token oauth1TokenSecret:oauth1TokenSecret]; 30 | return [self.client requestRpc:route arg:arg]; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBCHECKAppAuthRoutes.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBCHECKAppAuthRoutes.h" 8 | #import "DBCHECKEchoArg.h" 9 | #import "DBCHECKEchoResult.h" 10 | #import "DBCHECKRouteObjects.h" 11 | #import "DBRequestErrors.h" 12 | #import "DBStoneBase.h" 13 | #import "DBTransportClientProtocol.h" 14 | 15 | @implementation DBCHECKAppAuthRoutes 16 | 17 | - (instancetype)init:(id)client { 18 | self = [super init]; 19 | if (self) { 20 | _client = client; 21 | } 22 | return self; 23 | } 24 | 25 | - (DBRpcTask *)app { 26 | DBRoute *route = DBCHECKRouteObjects.DBCHECKApp; 27 | DBCHECKEchoArg *arg = [[DBCHECKEchoArg alloc] initDefault]; 28 | return [self.client requestRpc:route arg:arg]; 29 | } 30 | 31 | - (DBRpcTask *)app:(NSString *)query { 32 | DBRoute *route = DBCHECKRouteObjects.DBCHECKApp; 33 | DBCHECKEchoArg *arg = [[DBCHECKEchoArg alloc] initWithQuery:query]; 34 | return [self.client requestRpc:route arg:arg]; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBCHECKUserAuthRoutes.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBCHECKUserAuthRoutes.h" 8 | #import "DBCHECKEchoArg.h" 9 | #import "DBCHECKEchoResult.h" 10 | #import "DBCHECKRouteObjects.h" 11 | #import "DBRequestErrors.h" 12 | #import "DBStoneBase.h" 13 | #import "DBTransportClientProtocol.h" 14 | 15 | @implementation DBCHECKUserAuthRoutes 16 | 17 | - (instancetype)init:(id)client { 18 | self = [super init]; 19 | if (self) { 20 | _client = client; 21 | } 22 | return self; 23 | } 24 | 25 | - (DBRpcTask *)user { 26 | DBRoute *route = DBCHECKRouteObjects.DBCHECKUser; 27 | DBCHECKEchoArg *arg = [[DBCHECKEchoArg alloc] initDefault]; 28 | return [self.client requestRpc:route arg:arg]; 29 | } 30 | 31 | - (DBRpcTask *)user:(NSString *)query { 32 | DBRoute *route = DBCHECKRouteObjects.DBCHECKUser; 33 | DBCHECKEchoArg *arg = [[DBCHECKEchoArg alloc] initWithQuery:query]; 34 | return [self.client requestRpc:route arg:arg]; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBUSERSRouteObjects.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | @class DBRoute; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// 14 | /// Stone route objects for the Users namespace. Each route in the Users 15 | /// namespace has its own static object, which contains information about the 16 | /// route. 17 | /// 18 | @interface DBUSERSRouteObjects : NSObject 19 | 20 | /// Accessor method for the featuresGetValues route object. 21 | + (DBRoute *)DBUSERSFeaturesGetValues; 22 | 23 | /// Accessor method for the getAccount route object. 24 | + (DBRoute *)DBUSERSGetAccount; 25 | 26 | /// Accessor method for the getAccountBatch route object. 27 | + (DBRoute *)DBUSERSGetAccountBatch; 28 | 29 | /// Accessor method for the getCurrentAccount route object. 30 | + (DBRoute *)DBUSERSGetCurrentAccount; 31 | 32 | /// Accessor method for the getSpaceUsage route object. 33 | + (DBRoute *)DBUSERSGetSpaceUsage; 34 | 35 | @end 36 | 37 | NS_ASSUME_NONNULL_END 38 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBAccessToken+NSSecureCoding.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBAccessToken+NSSecureCoding.h" 6 | #import "DBOAuthManager.h" 7 | 8 | @implementation DBAccessToken (NSSecureCoding) 9 | 10 | + (DBAccessToken *)createTokenFromData:(NSData *)data { 11 | DBAccessToken *token = nil; 12 | if (@available(iOS 11.0, macOS 10.13, *)) { 13 | token = [NSKeyedUnarchiver unarchivedObjectOfClass:[DBAccessToken class] fromData:data error:NULL]; 14 | } else { 15 | id object = [NSKeyedUnarchiver unarchiveObjectWithData:data]; 16 | if ([object isKindOfClass:[DBAccessToken class]]) { 17 | token = object; 18 | } 19 | } 20 | return token; 21 | } 22 | 23 | + (NSData *)covertTokenToData:(DBAccessToken *)token { 24 | NSData *data = nil; 25 | if (@available(iOS 11.0, macOS 10.13, *)) { 26 | data = [NSKeyedArchiver archivedDataWithRootObject:token requiringSecureCoding:YES error:NULL]; 27 | } else { 28 | data = [NSKeyedArchiver archivedDataWithRootObject:token]; 29 | } 30 | return data; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/Resources/DBChunkInputStream.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// Copyright (c) 2011 BJ Homer. All rights reserved. 4 | /// 5 | /// Based on example from @bjhomer https://github.com/bjhomer/HSCountingInputStream 6 | /// 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | /// 13 | /// Subclass of `NSInputStream` to enforce "bounds" on file stream, for 14 | /// chunk uploading. 15 | /// 16 | @interface DBChunkInputStream : NSInputStream 17 | 18 | /// 19 | /// DBChunkInputStream full constructor. 20 | /// 21 | /// @param fileUrl The file to stream. 22 | /// @param startBytes The starting position of the file stream, relative 23 | /// to the beginning of the file. 24 | /// @param endBytes The ending position of the file stream, relative 25 | /// to the beginning of the file. 26 | /// 27 | /// @return An initialized DBChunkInputStream instance. 28 | /// 29 | - (instancetype)initWithFileUrl:(NSURL *)fileUrl startBytes:(NSUInteger)startBytes endBytes:(NSUInteger)endBytes; 30 | 31 | @end 32 | 33 | NS_ASSUME_NONNULL_END 34 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Resources/DBStoneBase.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBStoneBase.h" 6 | 7 | @implementation DBRoute 8 | 9 | - (instancetype)init:(NSString *)name 10 | namespace_:(NSString *)namespace_ 11 | deprecated:(NSNumber *)deprecated 12 | resultType:(Class)resultType 13 | errorType:(Class)errorType 14 | attrs:(NSDictionary *)attrs 15 | dataStructSerialBlock:(id (^)(id))dataStructSerialBlock 16 | dataStructDeserialBlock:(id (^)(id))dataStructDeserialBlock { 17 | self = [self init]; 18 | if (self != nil) { 19 | _name = name; 20 | _namespace_ = namespace_; 21 | _deprecated = deprecated; 22 | _resultType = resultType; 23 | _errorType = errorType; 24 | _attrs = attrs; 25 | _dataStructSerialBlock = dataStructSerialBlock; 26 | _dataStructDeserialBlock = dataStructDeserialBlock; 27 | } 28 | return self; 29 | } 30 | 31 | @end 32 | 33 | @implementation DBNilObject 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2021 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 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/Networking/DBURLSessionTaskResponseBlockWrapper.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBHandlerTypesInternal.h" 6 | #import 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | /// Response handler for DBURLSessionTask. 11 | @interface DBURLSessionTaskResponseBlockWrapper : NSObject 12 | 13 | @property (nonatomic, strong, readonly, nullable) DBRpcResponseBlockStorage rpcResponseBlock; 14 | @property (nonatomic, strong, readonly, nullable) DBUploadResponseBlockStorage uploadResponseBlock; 15 | @property (nonatomic, strong, readonly, nullable) DBDownloadResponseBlockStorage downloadResponseBlock; 16 | 17 | /// Handler wrapper for RPC tasks. 18 | + (DBURLSessionTaskResponseBlockWrapper *)withRpcResponseBlock:(DBRpcResponseBlockStorage)responseBlock; 19 | /// Handler wrapper for upload tasks. 20 | + (DBURLSessionTaskResponseBlockWrapper *)withUploadResponseBlock:(DBUploadResponseBlockStorage)responseBlock; 21 | /// Handler wrapper for download tasks. 22 | + (DBURLSessionTaskResponseBlockWrapper *)withDownloadResponseBlock:(DBDownloadResponseBlockStorage)responseBlock; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/OAuth/DBAccessTokenProvider+Internal.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBAccessTokenProvider.h" 6 | #import "DBOAuthManager.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | /// Wrapper for legacy long-lived access token. 11 | @interface DBLongLivedAccessTokenProvider : NSObject 12 | 13 | - (instancetype)init NS_UNAVAILABLE; 14 | 15 | /// Designated initializer. 16 | /// 17 | /// @param tokenString An access token string. 18 | - (instancetype)initWithTokenString:(NSString *)tokenString NS_DESIGNATED_INITIALIZER; 19 | 20 | @end 21 | 22 | /// Wrapper for short-lived token. 23 | @interface DBShortLivedAccessTokenProvider : NSObject 24 | 25 | - (instancetype)init NS_UNAVAILABLE; 26 | 27 | /// Designated initializer. 28 | /// 29 | /// @param token A `DBAccessToken` represents a short-lived token. 30 | /// @param tokenRefresher Helper object that refreshes a token over network. 31 | - (instancetype)initWithToken:(DBAccessToken *)token 32 | tokenRefresher:(id)tokenRefresher NS_DESIGNATED_INITIALIZER; 33 | 34 | @end 35 | 36 | NS_ASSUME_NONNULL_END 37 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Umbrella/ObjectiveDropboxOfficial.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Umbrella import for importing as a framework 5 | /// 6 | 7 | #import "TargetConditionals.h" 8 | 9 | #import 10 | #import 11 | 12 | #if TARGET_OS_IPHONE 13 | #import 14 | #import 15 | #elif TARGET_OS_MAC 16 | #import 17 | #import 18 | #endif 19 | 20 | //! Project version number for ObjectiveDropboxOfficial. 21 | FOUNDATION_EXPORT double ObjectiveDropboxOfficialVersionNumber; 22 | 23 | //! Project version string for ObjectiveDropboxOfficial. 24 | FOUNDATION_EXPORT const unsigned char ObjectiveDropboxOfficialVersionString[]; 25 | 26 | // In this header, you should import all the public headers of your framework using statements like #import 27 | // 28 | 29 | #import 30 | 31 | #if TARGET_OS_IPHONE 32 | #import 33 | #elif TARGET_OS_MAC 34 | #import 35 | #endif 36 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_macOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "size" : "128x128", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "size" : "256x256", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "size" : "256x256", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "size" : "512x512", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "size" : "512x512", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /Examples/DBRoulette/macOS/CarthageProject/DBRoulette/DBRoulette/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "size" : "128x128", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "size" : "256x256", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "size" : "256x256", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "size" : "512x512", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "size" : "512x512", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/Networking/DBHandlerTypesInternal.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// For internal use inside the SDK. 5 | /// 6 | 7 | #import 8 | 9 | @class DBRequestError; 10 | 11 | // Storage blocks 12 | 13 | typedef BOOL (^DBRpcResponseBlockStorage)(NSData *_Nullable, NSURLResponse *_Nullable, NSError *_Nullable); 14 | 15 | typedef BOOL (^DBUploadResponseBlockStorage)(NSData *_Nullable, NSURLResponse *_Nullable, NSError *_Nullable); 16 | 17 | typedef BOOL (^DBDownloadResponseBlockStorage)(NSURL *_Nullable, NSURLResponse *_Nullable, NSError *_Nullable); 18 | 19 | // Internal implementation response blocks 20 | 21 | typedef void (^DBRpcResponseBlockImpl)(id _Nullable, id _Nullable, DBRequestError *_Nullable); 22 | 23 | typedef void (^DBUploadResponseBlockImpl)(id _Nullable, id _Nullable, DBRequestError *_Nullable); 24 | 25 | typedef void (^DBDownloadUrlResponseBlockImpl)(id _Nullable, id _Nullable, DBRequestError *_Nullable, NSURL *_Nullable); 26 | 27 | typedef void (^DBDownloadDataResponseBlockImpl)(id _Nullable, id _Nullable, DBRequestError *_Nullable, 28 | NSData *_Nullable); 29 | typedef void (^DBCleanupBlock)(void); 30 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBCONTACTSUserAuthRoutes.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBCONTACTSUserAuthRoutes.h" 8 | #import "DBCONTACTSDeleteManualContactsArg.h" 9 | #import "DBCONTACTSDeleteManualContactsError.h" 10 | #import "DBCONTACTSRouteObjects.h" 11 | #import "DBRequestErrors.h" 12 | #import "DBStoneBase.h" 13 | #import "DBTransportClientProtocol.h" 14 | 15 | @implementation DBCONTACTSUserAuthRoutes 16 | 17 | - (instancetype)init:(id)client { 18 | self = [super init]; 19 | if (self) { 20 | _client = client; 21 | } 22 | return self; 23 | } 24 | 25 | - (DBRpcTask *)deleteManualContacts { 26 | DBRoute *route = DBCONTACTSRouteObjects.DBCONTACTSDeleteManualContacts; 27 | return [self.client requestRpc:route arg:nil]; 28 | } 29 | 30 | - (DBRpcTask *)deleteManualContactsBatch:(NSArray *)emailAddresses { 31 | DBRoute *route = DBCONTACTSRouteObjects.DBCONTACTSDeleteManualContactsBatch; 32 | DBCONTACTSDeleteManualContactsArg *arg = 33 | [[DBCONTACTSDeleteManualContactsArg alloc] initWithEmailAddresses:emailAddresses]; 34 | return [self.client requestRpc:route arg:arg]; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBScopeRequest.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBScopeRequest.h" 6 | 7 | @interface DBScopeRequest () 8 | 9 | @property (nonatomic, readonly) NSString *scopeType; 10 | @property (nonatomic, readonly, assign) BOOL includeGrantedScopes; 11 | @property (nonatomic, readonly) NSArray *scopes; 12 | 13 | @end 14 | 15 | @implementation DBScopeRequest 16 | 17 | - (instancetype)initWithScopeType:(DBScopeType)scopeType 18 | scopes:(NSArray *)scopes 19 | includeGrantedScopes:(BOOL)includeGrantedScopes { 20 | self = [super init]; 21 | if (self) { 22 | _scopeType = [DBScopeRequest stringFromScopeType:scopeType]; 23 | _scopes = scopes; 24 | _includeGrantedScopes = includeGrantedScopes; 25 | } 26 | return self; 27 | } 28 | 29 | - (NSString *)scopeString { 30 | if (_scopes.count == 0) { 31 | return nil; 32 | } else { 33 | return [_scopes componentsJoinedByString:@" "]; 34 | } 35 | } 36 | 37 | + (NSString *)stringFromScopeType:(DBScopeType)scopeType { 38 | switch (scopeType) { 39 | case DBScopeTypeTeam: 40 | return @"team"; 41 | case DBScopeTypeUser: 42 | return @"user"; 43 | } 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBScopeRequest.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | typedef NS_ENUM(NSUInteger, DBScopeType) { 10 | DBScopeTypeTeam = 0, 11 | DBScopeTypeUser, 12 | }; 13 | 14 | /// Contains the information of requested scopes. 15 | @interface DBScopeRequest : NSObject 16 | 17 | - (instancetype)init NS_UNAVAILABLE; 18 | 19 | /// 20 | /// Designated Initializer. 21 | /// 22 | /// @param scopeType Type of the requested scopes. 23 | /// @param scopes A list of scope returned by Dropbox server. Each scope correspond to a group of API endpoints. 24 | /// To call one API endpoint you have to obtains the scope first otherwise you will get HTTP 401. 25 | /// @param includeGrantedScopes If false, Dropbox will give you the scopes in scopes array. 26 | /// Otherwise Dropbox server will return a token with all scopes user previously granted your app 27 | /// together with the new scopes. 28 | - (instancetype)initWithScopeType:(DBScopeType)scopeType 29 | scopes:(NSArray *)scopes 30 | includeGrantedScopes:(BOOL)includeGrantedScopes NS_DESIGNATED_INITIALIZER; 31 | 32 | @end 33 | 34 | NS_ASSUME_NONNULL_END 35 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/DBSDKImportsShared.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | /// Import generated shared files 6 | 7 | #import "DBSDKImportsGenerated.h" 8 | 9 | /// Import handwritten shared files 10 | 11 | #import "DBAppClient.h" 12 | #import "DBClientsManager.h" 13 | #import "DBTeamClient.h" 14 | #import "DBUserClient.h" 15 | 16 | /// Networking 17 | #import "DBGlobalErrorResponseHandler.h" 18 | #import "DBHandlerTypes.h" 19 | #import "DBRequestErrors.h" 20 | #import "DBTasks.h" 21 | #import "DBTasksStorage.h" 22 | #import "DBTransportBaseClient.h" 23 | #import "DBTransportBaseConfig.h" 24 | #import "DBTransportClientProtocol.h" 25 | #import "DBTransportDefaultClient.h" 26 | #import "DBTransportDefaultConfig.h" 27 | 28 | /// OAuth 29 | #import "DBOAuthManager.h" 30 | #import "DBOAuthResult.h" 31 | #import "DBOAuthResultCompletion.h" 32 | #import "DBSDKKeychain.h" 33 | #import "DBScopeRequest.h" 34 | #import "DBSharedApplicationProtocol.h" 35 | 36 | /// Resources 37 | #import "DBCustomDatatypes.h" 38 | #import "DBCustomRoutes.h" 39 | #import "DBCustomTasks.h" 40 | #import "DBSDKConstants.h" 41 | 42 | /// "Generated" Resources 43 | #import "DBSerializableProtocol.h" 44 | #import "DBStoneBase.h" 45 | #import "DBStoneSerializers.h" 46 | #import "DBStoneValidators.h" 47 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Resources/DBSerializableProtocol.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /// 10 | /// Protocol which all Obj-C SDK API route objects must implement, otherwise a compiler-warning 11 | /// is generated. 12 | /// 13 | @protocol DBSerializable 14 | 15 | /// 16 | /// Class method which returns a json-compatible dictionary representation of the 17 | /// supplied object. 18 | /// 19 | /// @param instance An instance of the API object to be serialized. 20 | /// 21 | /// @return A serialized, json-compatible dictionary representation of the API object. 22 | /// 23 | + (nullable NSDictionary *)serialize:(id)instance; 24 | 25 | /// 26 | /// Class method which returns an instantiation of the supplied object as represented 27 | /// by a json-compatible dictionary. 28 | /// 29 | /// @param dict A dictionary representation of the API object to be serialized. 30 | /// 31 | /// @return A deserialized, instantiation of the API object. 32 | /// 33 | + (id)deserialize:(NSDictionary *)dict; 34 | 35 | /// 36 | /// Description method. 37 | /// 38 | /// @return A human-readable representation of the current object. 39 | /// 40 | - (NSString *)description; 41 | 42 | @end 43 | 44 | NS_ASSUME_NONNULL_END 45 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/OAuth/DBOAuthUtils.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | @class DBOAuthPKCESession; 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | /// Contains utility methods used in auth flow. e.g. method to construct URL query. 12 | @interface DBOAuthUtils : NSObject 13 | 14 | /// Creates URL query items needed by PKCE code flow. 15 | + (NSArray *)createPkceCodeFlowParamsForAuthSession:(DBOAuthPKCESession *)authSession; 16 | 17 | /// Extracts auth response parameters from URL and removes percent encoding. 18 | /// Response parameters from DAuth via the Dropbox app are in the query component. 19 | + (NSDictionary *)extractDAuthResponseFromUrl:(NSURL *)url; 20 | 21 | /// Extracts auth response parameters from URL and removes percent encoding. 22 | /// Response parameters OAuth 2 code flow (RFC6749 4.1.2) are in the query component. 23 | + (NSDictionary *)extractOAuthResponseFromCodeFlowUrl:(NSURL *)url; 24 | 25 | /// Extracts auth response parameters from URL and removes percent encoding. 26 | /// Response parameters from OAuth 2 token flow (RFC6749 4.2.2) are in the fragment component. 27 | + (NSDictionary *)extractOAuthResponseFromTokenFlowUrl:(NSURL *)url; 28 | 29 | @end 30 | 31 | NS_ASSUME_NONNULL_END 32 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/Resources/DBSDKSystem.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// Copyright (c) 2011 BJ Homer. All rights reserved. 4 | /// 5 | 6 | /* 7 | * System Versioning Preprocessor Macros 8 | */ 9 | 10 | #define SYSTEM_VERSION_EQUAL_TO(v) \ 11 | ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame) 12 | #define SYSTEM_VERSION_GREATER_THAN(v) \ 13 | ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending) 14 | #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) \ 15 | ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) 16 | #define SYSTEM_VERSION_LESS_THAN(v) \ 17 | ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending) 18 | #define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) \ 19 | ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending) 20 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBSDKKeychain.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | #import "DBHandlerTypes.h" 8 | 9 | @class DBAccessToken; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// 14 | /// Keychain class for storing OAuth tokens. 15 | /// 16 | @interface DBSDKKeychain : NSObject 17 | 18 | /// Stores DBAccessToken in the keychain. 19 | + (BOOL)storeAccessToken:(DBAccessToken *)accessToken; 20 | 21 | /// Retrieves a DBAccessToken from the corresponding key (uid) from the keychain. 22 | + (nullable DBAccessToken *)retrieveTokenWithUid:(NSString *)uid; 23 | 24 | /// Retrieves all token uids from the keychain. 25 | + (NSArray *)retrieveAllTokenIds; 26 | 27 | /// Deletes the stored token value for a key (uid). 28 | + (BOOL)deleteTokenWithUid:(NSString *)uid; 29 | 30 | /// Deletes all key / value pairs in the keychain. 31 | + (BOOL)clearAllTokens; 32 | 33 | /// Checks if performing a v1 token migration is necessary, and if so, performs it. 34 | + (BOOL)checkAndPerformV1TokenMigration:(DBTokenMigrationResponseBlock)responseBlock 35 | queue:(nullable NSOperationQueue *)queue 36 | appKey:(NSString *)appKey 37 | appSecret:(NSString *)appSecret; 38 | 39 | @end 40 | 41 | NS_ASSUME_NONNULL_END 42 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBAUTHUserAuthRoutes.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBTasks.h" 10 | 11 | @class DBAUTHTokenFromOAuth1Error; 12 | @class DBAUTHTokenFromOAuth1Result; 13 | @class DBNilObject; 14 | 15 | @protocol DBTransportClient; 16 | 17 | /// 18 | /// Routes for the `Auth` namespace 19 | /// 20 | 21 | NS_ASSUME_NONNULL_BEGIN 22 | 23 | @interface DBAUTHUserAuthRoutes : NSObject 24 | 25 | /// An instance of the networking client that each route will use to submit a 26 | /// request. 27 | @property (nonatomic, readonly) id client; 28 | 29 | /// Initializes the `DBAUTHUserAuthRoutes` namespace container object with a 30 | /// networking client. 31 | - (instancetype)init:(id)client; 32 | 33 | /// 34 | /// Disables the access token used to authenticate the call. If there is a corresponding refresh token for the access 35 | /// token, this disables that refresh token, as well as any other access tokens for that refresh token. 36 | /// 37 | /// 38 | /// @return Through the response callback, the caller will receive a `void` object on success or a `void` object on 39 | /// failure. 40 | /// 41 | - (DBRpcTask *)tokenRevoke; 42 | 43 | @end 44 | 45 | NS_ASSUME_NONNULL_END 46 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/Networking/DBTasks+Protected.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBHandlerTypesInternal.h" 6 | #import "DBTasks.h" 7 | #import 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @class DBRoute; 12 | 13 | @interface DBRpcTask (Protected) 14 | 15 | - (DBRpcResponseBlockStorage)storageBlockWithResponseBlock:(DBRpcResponseBlockImpl)responseBlock 16 | cleanupBlock:(DBCleanupBlock)cleanupBlock; 17 | 18 | @end 19 | 20 | @interface DBUploadTask (Protected) 21 | 22 | - (DBUploadResponseBlockStorage)storageBlockWithResponseBlock:(DBUploadResponseBlockImpl)responseBlock 23 | cleanupBlock:(DBCleanupBlock)cleanupBlock; 24 | 25 | @end 26 | 27 | @interface DBDownloadUrlTask (Protected) 28 | 29 | - (DBDownloadResponseBlockStorage)storageBlockWithResponseBlock:(DBDownloadUrlResponseBlockImpl)responseBlock 30 | cleanupBlock:(DBCleanupBlock)cleanupBlock; 31 | 32 | @end 33 | 34 | @interface DBDownloadDataTask (Protected) 35 | 36 | - (DBDownloadResponseBlockStorage)storageBlockWithResponseBlock:(DBDownloadDataResponseBlockImpl)responseBlock 37 | cleanupBlock:(DBCleanupBlock)cleanupBlock; 38 | 39 | @end 40 | 41 | NS_ASSUME_NONNULL_END 42 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/Networking/DBURLSessionTaskWithTokenRefresh.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBTasks.h" 6 | #import "DBURLSessionTask.h" 7 | #import 8 | 9 | @protocol DBAccessTokenProvider; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// A class that wraps a network request that calls Dropbox API. 14 | /// This class will first attempt to refresh the access token and conditionally proceed to the actual API call. 15 | @interface DBURLSessionTaskWithTokenRefresh : NSObject 16 | 17 | - (instancetype)init NS_UNAVAILABLE; 18 | 19 | /// Designated Initializer. 20 | /// 21 | /// @param taskCreationBlock The block that creates the actual API request. 22 | /// @param taskDelegate The delegate used manage request handler code. 23 | /// @param urlSession The `NSURLSession` used to make the API network request. 24 | /// @param tokenProvider The `DBAccessTokenProvider` object to perform token refresh. 25 | /// 26 | - (instancetype)initWithTaskCreationBlock:(DBURLSessionTaskCreationBlock)taskCreationBlock 27 | taskDelegate:(nullable DBDelegate *)taskDelegate 28 | urlSession:(NSURLSession *)urlSession 29 | tokenProvider:(id)tokenProvider NS_DESIGNATED_INITIALIZER; 30 | 31 | @end 32 | 33 | NS_ASSUME_NONNULL_END 34 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/OAuth/DBOAuthManager+Protected.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | #import "DBOAuthManager.h" 8 | #import "DBOAuthResultCompletion.h" 9 | 10 | @protocol DBAccessTokenProvider; 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface DBOAuthManager (Protected) 15 | 16 | /// Extracts auth result from the url. 17 | /// @param url The redirect url which may contain auth result data. 18 | /// @param completion The completion block to pass back auth result. 19 | - (void)extractAuthResultFromRedirectURL:(NSURL *)url completion:(DBOAuthCompletion)completion; 20 | 21 | /// Completes the last step of OAuth code flow to exchange an access token with auth code. 22 | /// @param authCode OAuth code from auth response. 23 | /// @param codeVerifier Code verifier generated for the auth flow. 24 | - (void)finishPkceOAuthWithAuthCode:(NSString *)authCode 25 | codeVerifier:(NSString *)codeVerifier 26 | completion:(DBOAuthCompletion)completion; 27 | 28 | /// Creates a `DBAccessTokenProvider` that wraps short-lived token for token refresh 29 | /// or a static access token provider for long-live token. 30 | /// @param token The `DBAccessToken` object. 31 | - (id)accessTokenProviderForToken:(DBAccessToken *)token; 32 | 33 | @end 34 | 35 | NS_ASSUME_NONNULL_END 36 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Client/DBTeamBaseClient.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBFILEPROPERTIESTeamAuthRoutes.h" 8 | #import "DBRequestErrors.h" 9 | #import "DBTEAMLOGTeamAuthRoutes.h" 10 | #import "DBTEAMTeamAuthRoutes.h" 11 | #import "DBTasks.h" 12 | #import 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | @protocol DBTransportClient; 17 | 18 | /// 19 | /// Base client object that contains an instance field for each namespace, each 20 | /// of which contains references to all routes within that namespace. 21 | /// Fully-implemented API clients will inherit this class. 22 | /// 23 | @interface DBTeamBaseClient : NSObject { 24 | 25 | @protected 26 | id _transportClient; 27 | } 28 | 29 | /// Routes within the `fileProperties` namespace. 30 | @property (nonatomic, readonly) DBFILEPROPERTIESTeamAuthRoutes *filePropertiesRoutes; 31 | 32 | /// Routes within the `team` namespace. 33 | @property (nonatomic, readonly) DBTEAMTeamAuthRoutes *teamRoutes; 34 | 35 | /// Routes within the `teamLog` namespace. 36 | @property (nonatomic, readonly) DBTEAMLOGTeamAuthRoutes *teamLogRoutes; 37 | 38 | /// Initializes the `DBTeamBaseClient` object with a networking client. 39 | - (instancetype)initWithTransportClient:(id)client; 40 | 41 | @end 42 | 43 | NS_ASSUME_NONNULL_END 44 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CarthageProject/DBRoulette/DBRoulette/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_iOS/DBLoadingViewController.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBLoadingViewController.h" 6 | 7 | @interface DBLoadingViewController () 8 | 9 | @property (nonatomic, readwrite, strong) UIActivityIndicatorView *loadingSpinner; 10 | 11 | @end 12 | 13 | @implementation DBLoadingViewController 14 | 15 | - (instancetype)init { 16 | self = [super initWithNibName:nil bundle:nil]; 17 | if (self) { 18 | if (@available(iOS 13.0, *)) { 19 | _loadingSpinner = 20 | [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleLarge]; 21 | } else { 22 | _loadingSpinner = 23 | [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; 24 | } 25 | } 26 | return self; 27 | } 28 | 29 | - (void)viewDidLoad { 30 | [super viewDidLoad]; 31 | UIView *view = self.view; 32 | view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0.4]; 33 | [view addSubview:_loadingSpinner]; 34 | _loadingSpinner.translatesAutoresizingMaskIntoConstraints = NO; 35 | [NSLayoutConstraint activateConstraints:@[ 36 | [_loadingSpinner.centerXAnchor constraintEqualToAnchor:view.centerXAnchor], 37 | [_loadingSpinner.centerYAnchor constraintEqualToAnchor:view.centerYAnchor], 38 | ]]; 39 | [_loadingSpinner startAnimating]; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CocoaPodsProject/DBRoulette/DBRoulette/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBACCOUNTUserAuthRoutes.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBTasks.h" 10 | 11 | @class DBACCOUNTPhotoSourceArg; 12 | @class DBACCOUNTSetProfilePhotoError; 13 | @class DBACCOUNTSetProfilePhotoResult; 14 | @class DBNilObject; 15 | 16 | @protocol DBTransportClient; 17 | 18 | /// 19 | /// Routes for the `Account` namespace 20 | /// 21 | 22 | NS_ASSUME_NONNULL_BEGIN 23 | 24 | @interface DBACCOUNTUserAuthRoutes : NSObject 25 | 26 | /// An instance of the networking client that each route will use to submit a 27 | /// request. 28 | @property (nonatomic, readonly) id client; 29 | 30 | /// Initializes the `DBACCOUNTUserAuthRoutes` namespace container object with a 31 | /// networking client. 32 | - (instancetype)init:(id)client; 33 | 34 | /// 35 | /// Sets a user's profile photo. 36 | /// 37 | /// @param photo Image to set as the user's new profile photo. 38 | /// 39 | /// @return Through the response callback, the caller will receive a `DBACCOUNTSetProfilePhotoResult` object on success 40 | /// or a `DBACCOUNTSetProfilePhotoError` object on failure. 41 | /// 42 | - (DBRpcTask *)setProfilePhoto: 43 | (DBACCOUNTPhotoSourceArg *)photo; 44 | 45 | @end 46 | 47 | NS_ASSUME_NONNULL_END 48 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBOPENIDUserAuthRoutes.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBTasks.h" 10 | 11 | @class DBNilObject; 12 | @class DBOPENIDOpenIdError; 13 | @class DBOPENIDUserInfoError; 14 | @class DBOPENIDUserInfoResult; 15 | 16 | @protocol DBTransportClient; 17 | 18 | /// 19 | /// Routes for the `Openid` namespace 20 | /// 21 | 22 | NS_ASSUME_NONNULL_BEGIN 23 | 24 | @interface DBOPENIDUserAuthRoutes : NSObject 25 | 26 | /// An instance of the networking client that each route will use to submit a 27 | /// request. 28 | @property (nonatomic, readonly) id client; 29 | 30 | /// Initializes the `DBOPENIDUserAuthRoutes` namespace container object with a 31 | /// networking client. 32 | - (instancetype)init:(id)client; 33 | 34 | /// 35 | /// This route is used for refreshing the info that is found in the id_token during the OIDC flow. This route doesn't 36 | /// require any arguments and will use the scopes approved for the given access token. 37 | /// 38 | /// 39 | /// @return Through the response callback, the caller will receive a `DBOPENIDUserInfoResult` object on success or a 40 | /// `DBOPENIDUserInfoError` object on failure. 41 | /// 42 | - (DBRpcTask *)userinfo; 43 | 44 | @end 45 | 46 | NS_ASSUME_NONNULL_END 47 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBOPENIDRouteObjects.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBOPENIDRouteObjects.h" 8 | #import "DBOPENIDOpenIdError.h" 9 | #import "DBOPENIDUserAuthRoutes.h" 10 | #import "DBOPENIDUserInfoError.h" 11 | #import "DBOPENIDUserInfoResult.h" 12 | #import "DBRequestErrors.h" 13 | #import "DBStoneBase.h" 14 | 15 | @implementation DBOPENIDRouteObjects 16 | 17 | static DBRoute *DBOPENIDUserinfo; 18 | 19 | static NSObject *lockObj = nil; 20 | + (void)initialize { 21 | static dispatch_once_t onceToken; 22 | dispatch_once(&onceToken, ^{ 23 | lockObj = [[NSObject alloc] init]; 24 | }); 25 | } 26 | 27 | + (DBRoute *)DBOPENIDUserinfo { 28 | @synchronized(lockObj) { 29 | if (!DBOPENIDUserinfo) { 30 | DBOPENIDUserinfo = [[DBRoute alloc] init:@"userinfo" 31 | namespace_:@"openid" 32 | deprecated:@NO 33 | resultType:[DBOPENIDUserInfoResult class] 34 | errorType:[DBOPENIDUserInfoError class] 35 | attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} 36 | dataStructSerialBlock:nil 37 | dataStructDeserialBlock:nil]; 38 | } 39 | return DBOPENIDUserinfo; 40 | } 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILEREQUESTSRouteObjects.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | @class DBRoute; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// 14 | /// Stone route objects for the FileRequests namespace. Each route in the 15 | /// FileRequests namespace has its own static object, which contains information 16 | /// about the route. 17 | /// 18 | @interface DBFILEREQUESTSRouteObjects : NSObject 19 | 20 | /// Accessor method for the count route object. 21 | + (DBRoute *)DBFILEREQUESTSCount; 22 | 23 | /// Accessor method for the create route object. 24 | + (DBRoute *)DBFILEREQUESTSCreate; 25 | 26 | /// Accessor method for the delete_ route object. 27 | + (DBRoute *)DBFILEREQUESTSDelete_; 28 | 29 | /// Accessor method for the deleteAllClosed route object. 30 | + (DBRoute *)DBFILEREQUESTSDeleteAllClosed; 31 | 32 | /// Accessor method for the get route object. 33 | + (DBRoute *)DBFILEREQUESTSGet; 34 | 35 | /// Accessor method for the list route object. 36 | + (DBRoute *)DBFILEREQUESTSList; 37 | 38 | /// Accessor method for the listV2 route object. 39 | + (DBRoute *)DBFILEREQUESTSListV2; 40 | 41 | /// Accessor method for the listContinue route object. 42 | + (DBRoute *)DBFILEREQUESTSListContinue; 43 | 44 | /// Accessor method for the update route object. 45 | + (DBRoute *)DBFILEREQUESTSUpdate; 46 | 47 | @end 48 | 49 | NS_ASSUME_NONNULL_END 50 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/Resources/DBCustomTasks.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | @class DBBatchUploadData; 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | /// 12 | /// Dropbox task object for custom batch upload route. 13 | /// 14 | /// The batch upload route is a convenience layer over several of our auto-generated API endpoints. For this reason, 15 | /// there is less flexibility and granularity of control. Progress and response handlers are passed directly into this 16 | /// route (rather than installed via this task object) and only `cancel` is available. This task is also specific to 17 | /// only one endpoint, rather than an entire class (style) of endpoints. 18 | /// 19 | @interface DBBatchUploadTask : NSObject 20 | 21 | /// 22 | /// DBBatchUploadTask full constructor. 23 | /// 24 | /// @param uploadData relevant to the particular batch upload request. 25 | /// 26 | /// @returns A DBBatchUploadTask instance. 27 | /// 28 | - (instancetype)initWithUploadData:(DBBatchUploadData *)uploadData; 29 | 30 | /// 31 | /// Cancels the current request. 32 | /// 33 | - (void)cancel; 34 | 35 | /// 36 | /// Determines whether there are any upload tasks still in progress. 37 | /// 38 | /// NOTE: This will return `NO` during the final polling / commit phase of batch upload. 39 | /// 40 | /// @return Whether there are any upload tasks in progress. 41 | /// 42 | - (BOOL)uploadsInProgress; 43 | 44 | @end 45 | 46 | NS_ASSUME_NONNULL_END 47 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Client/DBAppBaseClient.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBAUTHAppAuthRoutes.h" 8 | #import "DBCHECKAppAuthRoutes.h" 9 | #import "DBFILESAppAuthRoutes.h" 10 | #import "DBRequestErrors.h" 11 | #import "DBSHARINGAppAuthRoutes.h" 12 | #import "DBTasks.h" 13 | #import 14 | 15 | NS_ASSUME_NONNULL_BEGIN 16 | 17 | @protocol DBTransportClient; 18 | 19 | /// 20 | /// Base client object that contains an instance field for each namespace, each 21 | /// of which contains references to all routes within that namespace. 22 | /// Fully-implemented API clients will inherit this class. 23 | /// 24 | @interface DBAppBaseClient : NSObject { 25 | 26 | @protected 27 | id _transportClient; 28 | } 29 | 30 | /// Routes within the `auth` namespace. 31 | @property (nonatomic, readonly) DBAUTHAppAuthRoutes *authRoutes; 32 | 33 | /// Routes within the `check` namespace. 34 | @property (nonatomic, readonly) DBCHECKAppAuthRoutes *checkRoutes; 35 | 36 | /// Routes within the `files` namespace. 37 | @property (nonatomic, readonly) DBFILESAppAuthRoutes *filesRoutes; 38 | 39 | /// Routes within the `sharing` namespace. 40 | @property (nonatomic, readonly) DBSHARINGAppAuthRoutes *sharingRoutes; 41 | 42 | /// Initializes the `DBAppBaseClient` object with a networking client. 43 | - (instancetype)initWithTransportClient:(id)client; 44 | 45 | @end 46 | 47 | NS_ASSUME_NONNULL_END 48 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/Networking/DBURLSessionTaskResponseBlockWrapper.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBURLSessionTaskResponseBlockWrapper.h" 6 | 7 | @interface DBURLSessionTaskResponseBlockWrapper () 8 | 9 | @property (nonatomic, strong, nullable) DBRpcResponseBlockStorage rpcResponseBlock; 10 | @property (nonatomic, strong, nullable) DBUploadResponseBlockStorage uploadResponseBlock; 11 | @property (nonatomic, strong, nullable) DBDownloadResponseBlockStorage downloadResponseBlock; 12 | 13 | @end 14 | 15 | @implementation DBURLSessionTaskResponseBlockWrapper 16 | 17 | + (DBURLSessionTaskResponseBlockWrapper *)withRpcResponseBlock:(DBRpcResponseBlockStorage)responseBlock { 18 | DBURLSessionTaskResponseBlockWrapper *wrapper = [[DBURLSessionTaskResponseBlockWrapper alloc] init]; 19 | wrapper.rpcResponseBlock = responseBlock; 20 | return wrapper; 21 | } 22 | 23 | + (DBURLSessionTaskResponseBlockWrapper *)withUploadResponseBlock:(DBUploadResponseBlockStorage)responseBlock { 24 | DBURLSessionTaskResponseBlockWrapper *wrapper = [[DBURLSessionTaskResponseBlockWrapper alloc] init]; 25 | wrapper.uploadResponseBlock = responseBlock; 26 | return wrapper; 27 | } 28 | 29 | + (DBURLSessionTaskResponseBlockWrapper *)withDownloadResponseBlock:(DBDownloadResponseBlockStorage)responseBlock { 30 | DBURLSessionTaskResponseBlockWrapper *wrapper = [[DBURLSessionTaskResponseBlockWrapper alloc] init]; 31 | wrapper.downloadResponseBlock = responseBlock; 32 | return wrapper; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /ObjectiveDropboxOfficial.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'ObjectiveDropboxOfficial' 3 | s.version = '7.4.1' 4 | s.summary = 'Dropbox Objective C SDK for APIv2' 5 | s.homepage = 'https://www.dropbox.com/developers' 6 | s.license = 'MIT' 7 | s.author = { 'Stephen Cobbe' => 'scobbe@dropbox.com' } 8 | s.source = { :git => 'https://github.com/dropbox/dropbox-sdk-obj-c.git', :tag => s.version } 9 | 10 | s.source_files = 'Source/ObjectiveDropboxOfficial/Shared/**/*.{h,m}', 'Source/ObjectiveDropboxOfficial/Headers/**/*.h' 11 | s.osx.source_files = 'Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_macOS/**/*.{h,m}' 12 | s.ios.source_files = 'Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_iOS/**/*.{h,m}' 13 | 14 | s.resource_bundles = { 15 | 'ObjectiveDropboxPrivacyInfo' => ['Source/ObjectiveDropboxOfficial/PrivacyInfo.xcprivacy'], 16 | } 17 | 18 | s.requires_arc = true 19 | 20 | s.osx.deployment_target = '10.13' 21 | s.ios.deployment_target = '12.0' 22 | 23 | s.public_header_files = 'Source/ObjectiveDropboxOfficial/Shared/**/*.h', 'Source/ObjectiveDropboxOfficial/Headers/Umbrella/*.h' 24 | s.osx.public_header_files = 'Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_macOS/**/*.h' 25 | s.ios.public_header_files = 'Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_iOS/**/*.h' 26 | 27 | s.osx.frameworks = 'AppKit', 'SystemConfiguration', 'Foundation' 28 | s.ios.frameworks = 'UIKit', 'SafariServices', 'SystemConfiguration', 'Foundation' 29 | end 30 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBACCOUNTRouteObjects.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBACCOUNTRouteObjects.h" 8 | #import "DBACCOUNTSetProfilePhotoError.h" 9 | #import "DBACCOUNTSetProfilePhotoResult.h" 10 | #import "DBACCOUNTUserAuthRoutes.h" 11 | #import "DBRequestErrors.h" 12 | #import "DBStoneBase.h" 13 | 14 | @implementation DBACCOUNTRouteObjects 15 | 16 | static DBRoute *DBACCOUNTSetProfilePhoto; 17 | 18 | static NSObject *lockObj = nil; 19 | + (void)initialize { 20 | static dispatch_once_t onceToken; 21 | dispatch_once(&onceToken, ^{ 22 | lockObj = [[NSObject alloc] init]; 23 | }); 24 | } 25 | 26 | + (DBRoute *)DBACCOUNTSetProfilePhoto { 27 | @synchronized(lockObj) { 28 | if (!DBACCOUNTSetProfilePhoto) { 29 | DBACCOUNTSetProfilePhoto = [[DBRoute alloc] init:@"set_profile_photo" 30 | namespace_:@"account" 31 | deprecated:@NO 32 | resultType:[DBACCOUNTSetProfilePhotoResult class] 33 | errorType:[DBACCOUNTSetProfilePhotoError class] 34 | attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} 35 | dataStructSerialBlock:nil 36 | dataStructDeserialBlock:nil]; 37 | } 38 | return DBACCOUNTSetProfilePhoto; 39 | } 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Examples/DBRoulette/macOS/CarthageProject/DBRoulette/DBRoulette/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | LSApplicationQueriesSchemes 6 | 7 | dbapi-8-emm 8 | dbapi-2 9 | 10 | CFBundleURLTypes 11 | 12 | 13 | CFBundleURLSchemes 14 | 15 | db-<APP_KEY> 16 | 17 | CFBundleURLName 18 | 19 | 20 | 21 | CFBundleDevelopmentRegion 22 | en 23 | CFBundleExecutable 24 | $(EXECUTABLE_NAME) 25 | CFBundleIconFile 26 | 27 | CFBundleIdentifier 28 | $(PRODUCT_BUNDLE_IDENTIFIER) 29 | CFBundleInfoDictionaryVersion 30 | 6.0 31 | CFBundleName 32 | $(PRODUCT_NAME) 33 | CFBundlePackageType 34 | APPL 35 | CFBundleShortVersionString 36 | 1.0 37 | CFBundleVersion 38 | 1 39 | LSMinimumSystemVersion 40 | $(MACOSX_DEPLOYMENT_TARGET) 41 | NSHumanReadableCopyright 42 | Copyright © 2017 Dropbox. All rights reserved. 43 | NSMainStoryboardFile 44 | Main 45 | NSPrincipalClass 46 | NSApplication 47 | 48 | 49 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_macOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleURLTypes 22 | 23 | 24 | CFBundleURLName 25 | 26 | CFBundleURLSchemes 27 | 28 | db-<APP_KEY> 29 | db-<APP_KEY> 30 | db-<APP_KEY> 31 | 32 | 33 | 34 | CFBundleVersion 35 | 1 36 | LSApplicationQueriesSchemes 37 | 38 | dbapi-8-emm 39 | dbapi-2 40 | 41 | LSMinimumSystemVersion 42 | $(MACOSX_DEPLOYMENT_TARGET) 43 | NSHumanReadableCopyright 44 | Copyright © 2016 Dropbox. All rights reserved. 45 | NSMainStoryboardFile 46 | Main 47 | NSPrincipalClass 48 | NSApplication 49 | 50 | 51 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_macOS/DBOAuthDesktop-macOS.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | #import 7 | 8 | #import "DBLoadingStatusDelegate.h" 9 | #import "DBSharedApplicationProtocol.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// 14 | /// Platform-specific (here, macOS) shared application. 15 | /// 16 | /// Renders OAuth flow and implements `DBSharedApplication` protocol. 17 | /// 18 | @interface DBDesktopSharedApplication : NSObject 19 | 20 | /// Delegate to handle loading status during auth flow. 21 | @property (nonatomic, readwrite, weak) id loadingStatusDelegate; 22 | 23 | /// Returns the shared instance of `DBDesktopSharedApplication`. 24 | + (nullable DBDesktopSharedApplication *)desktopSharedApplication; 25 | 26 | /// Sets the shared instance of `DBDesktopSharedApplication`. 27 | + (void)setDesktopSharedApplication:(DBDesktopSharedApplication *)desktopSharedApplication; 28 | 29 | /// 30 | /// Full constructor. 31 | /// 32 | /// @param sharedApplication The `NSWorkspace` with which to render the OAuth flow. 33 | /// @param controller The `NSViewController` with which to render the OAuth flow. The controller reference is weakly 34 | /// held. 35 | /// @param openURL A wrapper around app-extension unsafe `openURL` call. 36 | /// 37 | /// @return An initialized instance. 38 | /// 39 | - (instancetype)initWithSharedApplication:(NSWorkspace *)sharedApplication 40 | controller:(NSViewController *)controller 41 | openURL:(void (^_Nonnull)(NSURL *))openURL; 42 | 43 | @end 44 | 45 | NS_ASSUME_NONNULL_END 46 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Client/DBUserBaseClient.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBUserBaseClient.h" 8 | #import "DBACCOUNTUserAuthRoutes.h" 9 | #import "DBAUTHUserAuthRoutes.h" 10 | #import "DBCHECKUserAuthRoutes.h" 11 | #import "DBCONTACTSUserAuthRoutes.h" 12 | #import "DBFILEPROPERTIESUserAuthRoutes.h" 13 | #import "DBFILEREQUESTSUserAuthRoutes.h" 14 | #import "DBFILESUserAuthRoutes.h" 15 | #import "DBOPENIDUserAuthRoutes.h" 16 | #import "DBPAPERUserAuthRoutes.h" 17 | #import "DBSHARINGUserAuthRoutes.h" 18 | #import "DBTransportClientProtocol.h" 19 | #import "DBUSERSUserAuthRoutes.h" 20 | 21 | @implementation DBUserBaseClient 22 | 23 | - (instancetype)initWithTransportClient:(id)client { 24 | self = [super init]; 25 | if (self) { 26 | _transportClient = client; 27 | _accountRoutes = [[DBACCOUNTUserAuthRoutes alloc] init:client]; 28 | _authRoutes = [[DBAUTHUserAuthRoutes alloc] init:client]; 29 | _checkRoutes = [[DBCHECKUserAuthRoutes alloc] init:client]; 30 | _contactsRoutes = [[DBCONTACTSUserAuthRoutes alloc] init:client]; 31 | _filePropertiesRoutes = [[DBFILEPROPERTIESUserAuthRoutes alloc] init:client]; 32 | _fileRequestsRoutes = [[DBFILEREQUESTSUserAuthRoutes alloc] init:client]; 33 | _filesRoutes = [[DBFILESUserAuthRoutes alloc] init:client]; 34 | _openidRoutes = [[DBOPENIDUserAuthRoutes alloc] init:client]; 35 | _paperRoutes = [[DBPAPERUserAuthRoutes alloc] init:client]; 36 | _sharingRoutes = [[DBSHARINGUserAuthRoutes alloc] init:client]; 37 | _usersRoutes = [[DBUSERSUserAuthRoutes alloc] init:client]; 38 | } 39 | return self; 40 | } 41 | @end 42 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBAUTHAppAuthRoutes.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBTasks.h" 10 | 11 | @class DBAUTHTokenFromOAuth1Error; 12 | @class DBAUTHTokenFromOAuth1Result; 13 | @class DBNilObject; 14 | 15 | @protocol DBTransportClient; 16 | 17 | /// 18 | /// Routes for the `Auth` namespace 19 | /// 20 | 21 | NS_ASSUME_NONNULL_BEGIN 22 | 23 | @interface DBAUTHAppAuthRoutes : NSObject 24 | 25 | /// An instance of the networking client that each route will use to submit a 26 | /// request. 27 | @property (nonatomic, readonly) id client; 28 | 29 | /// Initializes the `DBAUTHAppAuthRoutes` namespace container object with a 30 | /// networking client. 31 | - (instancetype)init:(id)client; 32 | 33 | /// 34 | /// DEPRECATED: Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access token. 35 | /// 36 | /// @param oauth1Token The supplied OAuth 1.0 access token. 37 | /// @param oauth1TokenSecret The token secret associated with the supplied access token. 38 | /// 39 | /// @return Through the response callback, the caller will receive a `DBAUTHTokenFromOAuth1Result` object on success or 40 | /// a `DBAUTHTokenFromOAuth1Error` object on failure. 41 | /// 42 | - (DBRpcTask *)tokenFromOauth1:(NSString *)oauth1Token 43 | oauth1TokenSecret: 44 | (NSString *)oauth1TokenSecret 45 | __deprecated_msg("tokenFromOauth1 is deprecated."); 46 | 47 | @end 48 | 49 | NS_ASSUME_NONNULL_END 50 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/OAuth/DBOAuthPKCESession.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | @class DBScopeRequest; 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | /// PKCE data for OAuth 2 Authorization Code Flow. 12 | @interface DBPkceData : NSObject 13 | 14 | // A random string generated for each code flow. 15 | @property (nonatomic, readonly) NSString *codeVerifier; 16 | // A string derived from codeVerifier by using BASE64URL-ENCODE(SHA256(ASCII(code_verifier))). 17 | @property (nonatomic, readonly) NSString *codeChallenge; 18 | // The hash method used to generate codeChallenge. 19 | @property (nonatomic, readonly) NSString *codeChallengeMethod; 20 | 21 | @end 22 | 23 | /// Object that contains all the necessary data of an OAuth 2 Authorization Code Flow with PKCE. 24 | @interface DBOAuthPKCESession : NSObject 25 | 26 | // The scope request for this auth session. 27 | @property (nonatomic, readonly, nullable) DBScopeRequest *scopeRequest; 28 | // PKCE data generated for this auth session. 29 | @property (nonatomic, readonly) DBPkceData *pkceData; 30 | // A string of colon-delimited options/state - used primarily to indicate if the token type to be returned. 31 | @property (nonatomic, readonly) NSString *state; 32 | // Token access type, hardcoded to "offline" to indicate short-lived access token + refresh token. 33 | @property (nonatomic, readonly) NSString *tokenAccessType; 34 | // Type of the auth response, hardcoded to "code" to indicate code flow. 35 | @property (nonatomic, readonly) NSString *responseType; 36 | 37 | - (instancetype)init NS_UNAVAILABLE; 38 | 39 | - (instancetype)initWithScopeRequest:(nullable DBScopeRequest *)scopeRequest NS_DESIGNATED_INITIALIZER; 40 | 41 | @end 42 | 43 | NS_ASSUME_NONNULL_END 44 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CarthageProject/DBRoulette/DBRoulette/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/SubprojectProject/DBRoulette/DBRoulette/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/Resources/DBCustomDatatypes.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBCustomDatatypes.h" 6 | #import "DBTasksStorage.h" 7 | 8 | @implementation DBBatchUploadData 9 | 10 | - (instancetype)initWithFileCommitInfo:(NSDictionary *)fileUrlsToCommitInfo 11 | progressBlock:(DBProgressBlock)progressBlock 12 | responseBlock:(DBBatchUploadResponseBlock)responseBlock 13 | queue:(NSOperationQueue *)queue { 14 | self = [super init]; 15 | if (self) { 16 | // we specifiy a custom queue so that the main thread is not blocked 17 | _queue = queue; 18 | [_queue setMaxConcurrentOperationCount:1]; 19 | 20 | // create a special background queue to monitor progress and sleep until the processing is complete 21 | _pollingQueue = [NSOperationQueue new]; 22 | [_pollingQueue setMaxConcurrentOperationCount:1]; 23 | 24 | // we want to make sure all of our file data has been uploaded 25 | // before we make our final batch commit call to `/upload_session/finish_batch`, 26 | // but we also don't want to wait for each response before making a 27 | // succeeding upload call, so we used dispatch groups to wait for all upload 28 | // calls to return before making our final batch commit call 29 | _uploadGroup = dispatch_group_create(); 30 | 31 | _fileUrlsToCommitInfo = fileUrlsToCommitInfo; 32 | _fileUrlsToRequestErrors = [NSMutableDictionary new]; 33 | _finishArgs = [NSMutableArray new]; 34 | 35 | _progressBlock = progressBlock; 36 | _responseBlock = responseBlock; 37 | 38 | _cancel = NO; 39 | 40 | _taskStorage = [DBTasksStorage new]; 41 | } 42 | return self; 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CocoaPodsProject/DBRoulette/DBRoulette/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBCONTACTSUserAuthRoutes.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBTasks.h" 10 | 11 | @class DBCONTACTSDeleteManualContactsError; 12 | @class DBNilObject; 13 | 14 | @protocol DBTransportClient; 15 | 16 | /// 17 | /// Routes for the `Contacts` namespace 18 | /// 19 | 20 | NS_ASSUME_NONNULL_BEGIN 21 | 22 | @interface DBCONTACTSUserAuthRoutes : NSObject 23 | 24 | /// An instance of the networking client that each route will use to submit a 25 | /// request. 26 | @property (nonatomic, readonly) id client; 27 | 28 | /// Initializes the `DBCONTACTSUserAuthRoutes` namespace container object with a 29 | /// networking client. 30 | - (instancetype)init:(id)client; 31 | 32 | /// 33 | /// Removes all manually added contacts. You'll still keep contacts who are on your team or who you imported. New 34 | /// contacts will be added when you share. 35 | /// 36 | /// 37 | /// @return Through the response callback, the caller will receive a `void` object on success or a `void` object on 38 | /// failure. 39 | /// 40 | - (DBRpcTask *)deleteManualContacts; 41 | 42 | /// 43 | /// Removes manually added contacts from the given list. 44 | /// 45 | /// @param emailAddresses List of manually added contacts to be deleted. 46 | /// 47 | /// @return Through the response callback, the caller will receive a `void` object on success or a 48 | /// `DBCONTACTSDeleteManualContactsError` object on failure. 49 | /// 50 | - (DBRpcTask *)deleteManualContactsBatch: 51 | (NSArray *)emailAddresses; 52 | 53 | @end 54 | 55 | NS_ASSUME_NONNULL_END 56 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/Networking/DBURLSessionTask.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2020 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBHandlerTypes.h" 6 | #import 7 | 8 | @class DBURLSessionTaskResponseBlockWrapper; 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | /// Block that creates the actual API request. 13 | typedef NSURLSessionTask *_Nonnull (^DBURLSessionTaskCreationBlock)(void); 14 | 15 | /// Protocol for custom URLSession tasks that are used internally by the DBTask classes. 16 | @protocol DBURLSessionTask 17 | 18 | /// The `NSURLSession` used to make the network request. 19 | @property (nonatomic, readonly) NSURLSession *session; 20 | 21 | /// Creates a new instance with same initial setup. 22 | - (id)duplicate; 23 | 24 | /// Cancels the API request. 25 | - (void)cancel; 26 | 27 | /// Suspends the API request. 28 | - (void)suspend; 29 | 30 | /// Resumes the API request. 31 | - (void)resume; 32 | 33 | /// Sets progress handler for the task. 34 | /// @param progressBlock The `DBProgressBlock` that handles task progress. 35 | /// @param queue An optional operation queue on which to execute progress handler code. If not provided, the handler 36 | /// may be executed on any queue. 37 | - (void)setProgressBlock:(DBProgressBlock)progressBlock queue:(nullable NSOperationQueue *)queue; 38 | 39 | /// Sets response/completion handler for the task. 40 | /// @param responseBlock The `DBURLSessionTaskResponseBlock` that handles task response. 41 | /// @param queue An optional operation queue on which to execute response handler code. If not provided, the handler 42 | /// may be executed on any queue. 43 | - (void)setResponseBlock:(DBURLSessionTaskResponseBlockWrapper *)responseBlock queue:(nullable NSOperationQueue *)queue; 44 | 45 | @end 46 | 47 | NS_ASSUME_NONNULL_END 48 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Headers/Internal/Networking/DBSDKReachability.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2016 Apple Inc. All Rights Reserved. 3 | See LICENSE.txt for this sample’s licensing information 4 | 5 | Abstract: 6 | Basic demonstration of how to use the SystemConfiguration Reachablity APIs. 7 | */ 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | typedef enum : NSInteger { DBNotReachable = 0, DBReachableViaWiFi, DBReachableViaWWAN } DBSDKNetworkStatus; 14 | 15 | #pragma mark IPv6 Support 16 | // Reachability fully support IPv6. For full details, see ReadMe.md. 17 | 18 | extern NSString *kDBSDKReachabilityChangedNotification; 19 | 20 | @interface DBSDKReachability : NSObject 21 | 22 | /*! 23 | * Use to check the reachability of a given host name. 24 | */ 25 | + (instancetype)reachabilityWithHostName:(NSString *)hostName; 26 | 27 | /*! 28 | * Use to check the reachability of a given IP address. 29 | */ 30 | + (instancetype)reachabilityWithAddress:(const struct sockaddr *)hostAddress; 31 | 32 | /*! 33 | * Checks whether the default route is available. Should be used by applications that do not connect to a particular 34 | * host. 35 | */ 36 | + (instancetype)reachabilityForInternetConnection; 37 | 38 | #pragma mark reachabilityForLocalWiFi 39 | // reachabilityForLocalWiFi has been removed from the sample. See ReadMe.md for more information. 40 | //+ (instancetype)reachabilityForLocalWiFi; 41 | 42 | /*! 43 | * Start listening for reachability notifications on the current run loop. 44 | */ 45 | - (BOOL)startNotifier; 46 | - (void)stopNotifier; 47 | 48 | - (DBSDKNetworkStatus)currentReachabilityStatus; 49 | 50 | /*! 51 | * WWAN may be available, but not active until a connection has been established. WiFi may require a connection for VPN 52 | * on Demand. 53 | */ 54 | - (BOOL)connectionRequired; 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/DBAppClient.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | #import "DBAppBaseClient.h" 8 | 9 | @class DBTransportDefaultConfig; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | /// 14 | /// Dropbox API Client for all endpoints with auth type "app". 15 | /// 16 | /// This is the SDK user's primary interface with the Dropbox API. Routes can be accessed via each "namespace" object in 17 | /// the instance fields of its parent, `DBAppBaseClient`. To see a full list of the API endpoints available, 18 | /// please visit: https://www.dropbox.com/developers/documentation/http/documentation. 19 | /// 20 | @interface DBAppClient : DBAppBaseClient 21 | 22 | /// 23 | /// Convenience constructor. 24 | /// 25 | /// Uses standard network configuration parameters. 26 | /// 27 | /// @param appKey The consumer app key associated with the app that is integrating with the Dropbox API. Here, app key 28 | /// is used for querying endpoints that have "app auth" authentication type. 29 | /// @param appSecret The consumer app secret associated with the app that is integrating with the Dropbox API. Here, app 30 | /// key is used for querying endpoints that have "app auth" authentication type. 31 | /// 32 | /// @return An initialized instance. 33 | /// 34 | - (instancetype)initWithAppKey:(NSString *)appKey appSecret:(NSString *)appSecret; 35 | 36 | /// 37 | /// Full constructor. 38 | /// 39 | /// @param transportConfig A wrapper around the different parameters that can be set to change network calling behavior. 40 | /// `DBTransportDefaultConfig` offers a number of different constructors to customize networking settings. 41 | /// 42 | /// @return An initialized instance. 43 | /// 44 | - (instancetype)initWithTransportConfig:(nullable DBTransportDefaultConfig *)transportConfig; 45 | 46 | @end 47 | 48 | NS_ASSUME_NONNULL_END 49 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/SubprojectProject/DBRoulette/DBRoulette/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | } 88 | ], 89 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBCHECKRouteObjects.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import "DBCHECKRouteObjects.h" 8 | #import "DBCHECKAppAuthRoutes.h" 9 | #import "DBCHECKEchoResult.h" 10 | #import "DBCHECKUserAuthRoutes.h" 11 | #import "DBRequestErrors.h" 12 | #import "DBStoneBase.h" 13 | 14 | @implementation DBCHECKRouteObjects 15 | 16 | static DBRoute *DBCHECKApp; 17 | static DBRoute *DBCHECKUser; 18 | 19 | static NSObject *lockObj = nil; 20 | + (void)initialize { 21 | static dispatch_once_t onceToken; 22 | dispatch_once(&onceToken, ^{ 23 | lockObj = [[NSObject alloc] init]; 24 | }); 25 | } 26 | 27 | + (DBRoute *)DBCHECKApp { 28 | @synchronized(lockObj) { 29 | if (!DBCHECKApp) { 30 | DBCHECKApp = [[DBRoute alloc] init:@"app" 31 | namespace_:@"check" 32 | deprecated:@NO 33 | resultType:[DBCHECKEchoResult class] 34 | errorType:nil 35 | attrs:@{@"auth" : @"app", @"host" : @"api", @"style" : @"rpc"} 36 | dataStructSerialBlock:nil 37 | dataStructDeserialBlock:nil]; 38 | } 39 | return DBCHECKApp; 40 | } 41 | } 42 | 43 | + (DBRoute *)DBCHECKUser { 44 | @synchronized(lockObj) { 45 | if (!DBCHECKUser) { 46 | DBCHECKUser = [[DBRoute alloc] init:@"user" 47 | namespace_:@"check" 48 | deprecated:@NO 49 | resultType:[DBCHECKEchoResult class] 50 | errorType:nil 51 | attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} 52 | dataStructSerialBlock:nil 53 | dataStructDeserialBlock:nil]; 54 | } 55 | return DBCHECKUser; 56 | } 57 | } 58 | 59 | @end 60 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/Files/Headers/DBFILESFileOpsResult.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBFILESFileOpsResult; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FileOpsResult` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBFILESFileOpsResult : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | #pragma mark - Constructors 29 | 30 | /// 31 | /// Full constructor for the struct (exposes all instance variables). 32 | /// 33 | /// @return An initialized instance. 34 | /// 35 | - (instancetype)initDefault; 36 | 37 | - (instancetype)init NS_UNAVAILABLE; 38 | 39 | @end 40 | 41 | #pragma mark - Serializer Object 42 | 43 | /// 44 | /// The serialization class for the `FileOpsResult` struct. 45 | /// 46 | @interface DBFILESFileOpsResultSerializer : NSObject 47 | 48 | /// 49 | /// Serializes `DBFILESFileOpsResult` instances. 50 | /// 51 | /// @param instance An instance of the `DBFILESFileOpsResult` API object. 52 | /// 53 | /// @return A json-compatible dictionary representation of the 54 | /// `DBFILESFileOpsResult` API object. 55 | /// 56 | + (nullable NSDictionary *)serialize:(DBFILESFileOpsResult *)instance; 57 | 58 | /// 59 | /// Deserializes `DBFILESFileOpsResult` instances. 60 | /// 61 | /// @param dict A json-compatible dictionary representation of the 62 | /// `DBFILESFileOpsResult` API object. 63 | /// 64 | /// @return An instantiation of the `DBFILESFileOpsResult` object. 65 | /// 66 | + (DBFILESFileOpsResult *)deserialize:(NSDictionary *)dict; 67 | 68 | @end 69 | 70 | NS_ASSUME_NONNULL_END 71 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_iOS/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/Openid/Headers/DBOPENIDUserInfoArgs.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBOPENIDUserInfoArgs; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `UserInfoArgs` struct. 19 | /// 20 | /// No Parameters 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBOPENIDUserInfoArgs : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `UserInfoArgs` struct. 47 | /// 48 | @interface DBOPENIDUserInfoArgsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBOPENIDUserInfoArgs` instances. 52 | /// 53 | /// @param instance An instance of the `DBOPENIDUserInfoArgs` API object. 54 | /// 55 | /// @return A json-compatible dictionary representation of the 56 | /// `DBOPENIDUserInfoArgs` API object. 57 | /// 58 | + (nullable NSDictionary *)serialize:(DBOPENIDUserInfoArgs *)instance; 59 | 60 | /// 61 | /// Deserializes `DBOPENIDUserInfoArgs` instances. 62 | /// 63 | /// @param dict A json-compatible dictionary representation of the 64 | /// `DBOPENIDUserInfoArgs` API object. 65 | /// 66 | /// @return An instantiation of the `DBOPENIDUserInfoArgs` object. 67 | /// 68 | + (DBOPENIDUserInfoArgs *)deserialize:(NSDictionary *)dict; 69 | 70 | @end 71 | 72 | NS_ASSUME_NONNULL_END 73 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Handwritten/Networking/DBSessionData.m: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import "DBSessionData.h" 6 | 7 | #pragma mark - Progress data 8 | 9 | @implementation DBProgressData 10 | 11 | - (instancetype)initWithProgressData:(int64_t)committed 12 | totalCommitted:(int64_t)totalCommitted 13 | expectedToCommit:(int64_t)expectedToCommit { 14 | self = [super init]; 15 | if (self) { 16 | _committed = committed; 17 | _totalCommitted = totalCommitted; 18 | _expectedToCommit = expectedToCommit; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | 25 | #pragma mark - Completion data 26 | 27 | @implementation DBCompletionData 28 | 29 | - (instancetype)initWithCompletionData:(NSData *)responseBody 30 | responseMetadata:(NSURLResponse *)responseMetadata 31 | responseError:(NSError *)responseError 32 | urlOutput:(NSURL *)urlOutput { 33 | self = [super init]; 34 | if (self) { 35 | _responseBody = responseBody; 36 | _responseMetadata = responseMetadata; 37 | _responseError = responseError; 38 | _urlOutput = urlOutput; 39 | } 40 | return self; 41 | } 42 | 43 | @end 44 | 45 | #pragma mark - Session data 46 | 47 | @implementation DBSessionData 48 | 49 | - (instancetype)initWithSessionId:(NSString *)sessionId { 50 | self = [super init]; 51 | if (self) { 52 | _sessionId = sessionId; 53 | _responsesData = [NSMutableDictionary new]; 54 | _progressHandlers = [NSMutableDictionary new]; 55 | _rpcHandlers = [NSMutableDictionary new]; 56 | _uploadHandlers = [NSMutableDictionary new]; 57 | _downloadHandlers = [NSMutableDictionary new]; 58 | _progressData = [NSMutableDictionary new]; 59 | _completionData = [NSMutableDictionary new]; 60 | _progressHandlerQueues = [NSMutableDictionary new]; 61 | _responseHandlerQueues = [NSMutableDictionary new]; 62 | } 63 | return self; 64 | } 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGFileAddDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGFileAddDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FileAddDetails` struct. 19 | /// 20 | /// Added files and/or folders. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGFileAddDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `FileAddDetails` struct. 47 | /// 48 | @interface DBTEAMLOGFileAddDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGFileAddDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGFileAddDetails` API object. 54 | /// 55 | /// @return A json-compatible dictionary representation of the 56 | /// `DBTEAMLOGFileAddDetails` API object. 57 | /// 58 | + (nullable NSDictionary *)serialize:(DBTEAMLOGFileAddDetails *)instance; 59 | 60 | /// 61 | /// Deserializes `DBTEAMLOGFileAddDetails` instances. 62 | /// 63 | /// @param dict A json-compatible dictionary representation of the 64 | /// `DBTEAMLOGFileAddDetails` API object. 65 | /// 66 | /// @return An instantiation of the `DBTEAMLOGFileAddDetails` object. 67 | /// 68 | + (DBTEAMLOGFileAddDetails *)deserialize:(NSDictionary *)dict; 69 | 70 | @end 71 | 72 | NS_ASSUME_NONNULL_END 73 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGFileEditDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGFileEditDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FileEditDetails` struct. 19 | /// 20 | /// Edited files. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGFileEditDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `FileEditDetails` struct. 47 | /// 48 | @interface DBTEAMLOGFileEditDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGFileEditDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGFileEditDetails` API object. 54 | /// 55 | /// @return A json-compatible dictionary representation of the 56 | /// `DBTEAMLOGFileEditDetails` API object. 57 | /// 58 | + (nullable NSDictionary *)serialize:(DBTEAMLOGFileEditDetails *)instance; 59 | 60 | /// 61 | /// Deserializes `DBTEAMLOGFileEditDetails` instances. 62 | /// 63 | /// @param dict A json-compatible dictionary representation of the 64 | /// `DBTEAMLOGFileEditDetails` API object. 65 | /// 66 | /// @return An instantiation of the `DBTEAMLOGFileEditDetails` object. 67 | /// 68 | + (DBTEAMLOGFileEditDetails *)deserialize:(NSDictionary *)dict; 69 | 70 | @end 71 | 72 | NS_ASSUME_NONNULL_END 73 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Platform/ObjectiveDropboxOfficial_iOS/DBOAuthMobile-iOS.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | #import 7 | #import 8 | 9 | #import "DBLoadingStatusDelegate.h" 10 | #import "DBSharedApplicationProtocol.h" 11 | 12 | #pragma mark - Shared application 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | /// 17 | /// Platform-specific (here, iOS) shared application. 18 | /// 19 | /// Renders OAuth flow and implements `DBSharedApplication` protocol. 20 | /// 21 | @interface DBMobileSharedApplication : NSObject 22 | 23 | /// Delegate to handle loading status during auth flow. 24 | @property (nonatomic, readwrite, weak) id loadingStatusDelegate; 25 | 26 | /// 27 | /// Full constructor. 28 | /// 29 | /// @param sharedApplication The `UIApplication` with which to render the OAuth flow. 30 | /// @param controller The `UIViewController` with which to render the OAuth flow. The controller reference is weakly 31 | /// held. 32 | /// @param openURL A wrapper around app-extension unsafe `openURL` call. 33 | /// 34 | /// @return An initialized instance. 35 | /// 36 | - (instancetype)initWithSharedApplication:(UIApplication *)sharedApplication 37 | controller:(UIViewController *)controller 38 | openURL:(void (^_Nonnull)(NSURL *))openURL; 39 | 40 | + (nullable DBMobileSharedApplication *)mobileSharedApplication; 41 | 42 | + (void)setMobileSharedApplication:(DBMobileSharedApplication *)mobileSharedApplication; 43 | 44 | - (void)dismissAuthController; 45 | 46 | @end 47 | 48 | #pragma mark - Web view controller 49 | 50 | /// 51 | /// Platform-specific (here, iOS) `UIViewController` for rendering OAuth flow. 52 | /// 53 | @interface DBMobileSafariViewController : SFSafariViewController 54 | 55 | - (instancetype)initWithUrl:(NSURL *)url cancelHandler:(DBOAuthCancelBlock)cancelHandler; 56 | 57 | @end 58 | 59 | NS_ASSUME_NONNULL_END 60 | -------------------------------------------------------------------------------- /TestObjectiveDropbox/TestObjectiveDropbox_iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/Resources/DBStoneValidators.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | 5 | #import 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | /// 10 | /// Validator functions used by SDK to impose value constraints. 11 | /// 12 | @interface DBStoneValidators : NSObject 13 | 14 | /// Validator for `NSString` objects. Enforces minimum length and/or maximum length and/or regex pattern. 15 | + (void (^_Nonnull)(NSString *))stringValidator:(nullable NSNumber *)minLength 16 | maxLength:(nullable NSNumber *)maxLength 17 | pattern:(nullable NSString *)pattern; 18 | 19 | /// Validator for `NSNumber` objects. Enforces minimum value and/or maximum value. 20 | + (void (^_Nonnull)(NSNumber *))numericValidator:(nullable NSNumber *)minValue maxValue:(nullable NSNumber *)maxValue; 21 | 22 | /// Validator for `NSArray` objects. Enforces minimum number of items and/or maximum minimum number of items. Method 23 | /// requires a validator block that can validate each item in the array. 24 | + (void (^_Nonnull)(NSArray *))arrayValidator:(nullable NSNumber *)minItems 25 | maxItems:(nullable NSNumber *)maxItems 26 | itemValidator:(void (^_Nullable)(T))itemValidator; 27 | 28 | /// Validator for `NSDictionary` objects. Enforces minimum number of items and/or maximum minimum number of items. 29 | /// Method 30 | /// requires a validator block that can validate each item in the array. 31 | + (void (^_Nonnull)(NSDictionary *))mapValidator:(void (^_Nullable)(T))itemValidator; 32 | 33 | /// Wrapper validator for nullable objects. Maintains a reference to the object's normal non-nullable validator. 34 | + (void (^_Nonnull)(T))nullableValidator:(void (^_Nonnull)(T))internalValidator; 35 | 36 | + (void (^_Nonnull)(id))nonnullValidator:(void (^_Nullable)(id))internalValidator; 37 | 38 | + (void)raiseIllegalStateErrorWithMessage:(NSString *)message; 39 | 40 | @end 41 | 42 | NS_ASSUME_NONNULL_END 43 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGGroupMovedDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGGroupMovedDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `GroupMovedDetails` struct. 19 | /// 20 | /// Moved group. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGGroupMovedDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `GroupMovedDetails` struct. 47 | /// 48 | @interface DBTEAMLOGGroupMovedDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGGroupMovedDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGGroupMovedDetails` API object. 54 | /// 55 | /// @return A json-compatible dictionary representation of the 56 | /// `DBTEAMLOGGroupMovedDetails` API object. 57 | /// 58 | + (nullable NSDictionary *)serialize:(DBTEAMLOGGroupMovedDetails *)instance; 59 | 60 | /// 61 | /// Deserializes `DBTEAMLOGGroupMovedDetails` instances. 62 | /// 63 | /// @param dict A json-compatible dictionary representation of the 64 | /// `DBTEAMLOGGroupMovedDetails` API object. 65 | /// 66 | /// @return An instantiation of the `DBTEAMLOGGroupMovedDetails` object. 67 | /// 68 | + (DBTEAMLOGGroupMovedDetails *)deserialize:(NSDictionary *)dict; 69 | 70 | @end 71 | 72 | NS_ASSUME_NONNULL_END 73 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGNoteSharedDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGNoteSharedDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `NoteSharedDetails` struct. 19 | /// 20 | /// Shared Paper doc. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGNoteSharedDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `NoteSharedDetails` struct. 47 | /// 48 | @interface DBTEAMLOGNoteSharedDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGNoteSharedDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGNoteSharedDetails` API object. 54 | /// 55 | /// @return A json-compatible dictionary representation of the 56 | /// `DBTEAMLOGNoteSharedDetails` API object. 57 | /// 58 | + (nullable NSDictionary *)serialize:(DBTEAMLOGNoteSharedDetails *)instance; 59 | 60 | /// 61 | /// Deserializes `DBTEAMLOGNoteSharedDetails` instances. 62 | /// 63 | /// @param dict A json-compatible dictionary representation of the 64 | /// `DBTEAMLOGNoteSharedDetails` API object. 65 | /// 66 | /// @return An instantiation of the `DBTEAMLOGNoteSharedDetails` object. 67 | /// 68 | + (DBTEAMLOGNoteSharedDetails *)deserialize:(NSDictionary *)dict; 69 | 70 | @end 71 | 72 | NS_ASSUME_NONNULL_END 73 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGTfaResetDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGTfaResetDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `TfaResetDetails` struct. 19 | /// 20 | /// Reset two-step verification for team member. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGTfaResetDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `TfaResetDetails` struct. 47 | /// 48 | @interface DBTEAMLOGTfaResetDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGTfaResetDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGTfaResetDetails` API object. 54 | /// 55 | /// @return A json-compatible dictionary representation of the 56 | /// `DBTEAMLOGTfaResetDetails` API object. 57 | /// 58 | + (nullable NSDictionary *)serialize:(DBTEAMLOGTfaResetDetails *)instance; 59 | 60 | /// 61 | /// Deserializes `DBTEAMLOGTfaResetDetails` instances. 62 | /// 63 | /// @param dict A json-compatible dictionary representation of the 64 | /// `DBTEAMLOGTfaResetDetails` API object. 65 | /// 66 | /// @return An instantiation of the `DBTEAMLOGTfaResetDetails` object. 67 | /// 68 | + (DBTEAMLOGTfaResetDetails *)deserialize:(NSDictionary *)dict; 69 | 70 | @end 71 | 72 | NS_ASSUME_NONNULL_END 73 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGFileDeleteDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGFileDeleteDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FileDeleteDetails` struct. 19 | /// 20 | /// Deleted files and/or folders. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGFileDeleteDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `FileDeleteDetails` struct. 47 | /// 48 | @interface DBTEAMLOGFileDeleteDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGFileDeleteDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGFileDeleteDetails` API object. 54 | /// 55 | /// @return A json-compatible dictionary representation of the 56 | /// `DBTEAMLOGFileDeleteDetails` API object. 57 | /// 58 | + (nullable NSDictionary *)serialize:(DBTEAMLOGFileDeleteDetails *)instance; 59 | 60 | /// 61 | /// Deserializes `DBTEAMLOGFileDeleteDetails` instances. 62 | /// 63 | /// @param dict A json-compatible dictionary representation of the 64 | /// `DBTEAMLOGFileDeleteDetails` API object. 65 | /// 66 | /// @return An instantiation of the `DBTEAMLOGFileDeleteDetails` object. 67 | /// 68 | + (DBTEAMLOGFileDeleteDetails *)deserialize:(NSDictionary *)dict; 69 | 70 | @end 71 | 72 | NS_ASSUME_NONNULL_END 73 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CarthageProject/DBRoulette/DBRoulette/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleURLTypes 6 | 7 | 8 | CFBundleURLSchemes 9 | 10 | db-<APP_KEY> 11 | 12 | CFBundleURLName 13 | 14 | 15 | 16 | LSApplicationQueriesSchemes 17 | 18 | dbapi-2 19 | dbapi-8-emm 20 | 21 | CFBundleDevelopmentRegion 22 | en 23 | CFBundleExecutable 24 | $(EXECUTABLE_NAME) 25 | CFBundleIdentifier 26 | $(PRODUCT_BUNDLE_IDENTIFIER) 27 | CFBundleInfoDictionaryVersion 28 | 6.0 29 | CFBundleName 30 | $(PRODUCT_NAME) 31 | CFBundlePackageType 32 | APPL 33 | CFBundleShortVersionString 34 | 1.0 35 | CFBundleSignature 36 | ???? 37 | CFBundleVersion 38 | 1 39 | LSRequiresIPhoneOS 40 | 41 | UILaunchStoryboardName 42 | LaunchScreen 43 | UIMainStoryboardFile 44 | Main 45 | UIRequiredDeviceCapabilities 46 | 47 | armv7 48 | 49 | UISupportedInterfaceOrientations 50 | 51 | UIInterfaceOrientationPortrait 52 | UIInterfaceOrientationLandscapeLeft 53 | UIInterfaceOrientationLandscapeRight 54 | 55 | UISupportedInterfaceOrientations~ipad 56 | 57 | UIInterfaceOrientationPortrait 58 | UIInterfaceOrientationPortraitUpsideDown 59 | UIInterfaceOrientationLandscapeLeft 60 | UIInterfaceOrientationLandscapeRight 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/CocoaPodsProject/DBRoulette/DBRoulette/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleURLTypes 6 | 7 | 8 | CFBundleURLSchemes 9 | 10 | db-<APP_KEY> 11 | 12 | CFBundleURLName 13 | 14 | 15 | 16 | LSApplicationQueriesSchemes 17 | 18 | dbapi-2 19 | dbapi-8-emm 20 | 21 | CFBundleDevelopmentRegion 22 | en 23 | CFBundleExecutable 24 | $(EXECUTABLE_NAME) 25 | CFBundleIdentifier 26 | $(PRODUCT_BUNDLE_IDENTIFIER) 27 | CFBundleInfoDictionaryVersion 28 | 6.0 29 | CFBundleName 30 | $(PRODUCT_NAME) 31 | CFBundlePackageType 32 | APPL 33 | CFBundleShortVersionString 34 | 1.0 35 | CFBundleSignature 36 | ???? 37 | CFBundleVersion 38 | 1 39 | LSRequiresIPhoneOS 40 | 41 | UILaunchStoryboardName 42 | LaunchScreen 43 | UIMainStoryboardFile 44 | Main 45 | UIRequiredDeviceCapabilities 46 | 47 | armv7 48 | 49 | UISupportedInterfaceOrientations 50 | 51 | UIInterfaceOrientationPortrait 52 | UIInterfaceOrientationLandscapeLeft 53 | UIInterfaceOrientationLandscapeRight 54 | 55 | UISupportedInterfaceOrientations~ipad 56 | 57 | UIInterfaceOrientationPortrait 58 | UIInterfaceOrientationPortraitUpsideDown 59 | UIInterfaceOrientationLandscapeLeft 60 | UIInterfaceOrientationLandscapeRight 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /Examples/DBRoulette/iOS/SubprojectProject/DBRoulette/DBRoulette/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleURLTypes 6 | 7 | 8 | CFBundleURLSchemes 9 | 10 | db-<APP_KEY> 11 | 12 | CFBundleURLName 13 | 14 | 15 | 16 | LSApplicationQueriesSchemes 17 | 18 | dbapi-2 19 | dbapi-8-emm 20 | 21 | CFBundleDevelopmentRegion 22 | en 23 | CFBundleExecutable 24 | $(EXECUTABLE_NAME) 25 | CFBundleIdentifier 26 | $(PRODUCT_BUNDLE_IDENTIFIER) 27 | CFBundleInfoDictionaryVersion 28 | 6.0 29 | CFBundleName 30 | $(PRODUCT_NAME) 31 | CFBundlePackageType 32 | APPL 33 | CFBundleShortVersionString 34 | 1.0 35 | CFBundleSignature 36 | ???? 37 | CFBundleVersion 38 | 1 39 | LSRequiresIPhoneOS 40 | 41 | UILaunchStoryboardName 42 | LaunchScreen 43 | UIMainStoryboardFile 44 | Main 45 | UIRequiredDeviceCapabilities 46 | 47 | armv7 48 | 49 | UISupportedInterfaceOrientations 50 | 51 | UIInterfaceOrientationPortrait 52 | UIInterfaceOrientationLandscapeLeft 53 | UIInterfaceOrientationLandscapeRight 54 | 55 | UISupportedInterfaceOrientations~ipad 56 | 57 | UIInterfaceOrientationPortrait 58 | UIInterfaceOrientationPortraitUpsideDown 59 | UIInterfaceOrientationLandscapeLeft 60 | UIInterfaceOrientationLandscapeRight 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/Files/Headers/DBFILESGetTagsArg.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBFILESGetTagsArg; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `GetTagsArg` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBFILESGetTagsArg : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// Path to the items. 29 | @property (nonatomic, readonly) NSArray *paths; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param paths Path to the items. 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithPaths:(NSArray *)paths; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `GetTagsArg` struct. 50 | /// 51 | @interface DBFILESGetTagsArgSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBFILESGetTagsArg` instances. 55 | /// 56 | /// @param instance An instance of the `DBFILESGetTagsArg` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBFILESGetTagsArg` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBFILESGetTagsArg *)instance; 62 | 63 | /// 64 | /// Deserializes `DBFILESGetTagsArg` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBFILESGetTagsArg` API object. 68 | /// 69 | /// @return An instantiation of the `DBFILESGetTagsArg` object. 70 | /// 71 | + (DBFILESGetTagsArg *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/Paper/Headers/DBPAPERRefPaperDoc.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBPAPERRefPaperDoc; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `RefPaperDoc` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBPAPERRefPaperDoc : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// The Paper doc ID. 29 | @property (nonatomic, readonly, copy) NSString *docId; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param docId The Paper doc ID. 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithDocId:(NSString *)docId; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `RefPaperDoc` struct. 50 | /// 51 | @interface DBPAPERRefPaperDocSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBPAPERRefPaperDoc` instances. 55 | /// 56 | /// @param instance An instance of the `DBPAPERRefPaperDoc` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBPAPERRefPaperDoc` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBPAPERRefPaperDoc *)instance; 62 | 63 | /// 64 | /// Deserializes `DBPAPERRefPaperDoc` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBPAPERRefPaperDoc` API object. 68 | /// 69 | /// @return An instantiation of the `DBPAPERRefPaperDoc` object. 70 | /// 71 | + (DBPAPERRefPaperDoc *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGFileRevertDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGFileRevertDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FileRevertDetails` struct. 19 | /// 20 | /// Reverted files to previous version. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGFileRevertDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `FileRevertDetails` struct. 47 | /// 48 | @interface DBTEAMLOGFileRevertDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGFileRevertDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGFileRevertDetails` API object. 54 | /// 55 | /// @return A json-compatible dictionary representation of the 56 | /// `DBTEAMLOGFileRevertDetails` API object. 57 | /// 58 | + (nullable NSDictionary *)serialize:(DBTEAMLOGFileRevertDetails *)instance; 59 | 60 | /// 61 | /// Deserializes `DBTEAMLOGFileRevertDetails` instances. 62 | /// 63 | /// @param dict A json-compatible dictionary representation of the 64 | /// `DBTEAMLOGFileRevertDetails` API object. 65 | /// 66 | /// @return An instantiation of the `DBTEAMLOGFileRevertDetails` object. 67 | /// 68 | + (DBTEAMLOGFileRevertDetails *)deserialize:(NSDictionary *)dict; 69 | 70 | @end 71 | 72 | NS_ASSUME_NONNULL_END 73 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGFilePreviewDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGFilePreviewDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FilePreviewDetails` struct. 19 | /// 20 | /// Previewed files and/or folders. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGFilePreviewDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `FilePreviewDetails` struct. 47 | /// 48 | @interface DBTEAMLOGFilePreviewDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGFilePreviewDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGFilePreviewDetails` API object. 54 | /// 55 | /// @return A json-compatible dictionary representation of the 56 | /// `DBTEAMLOGFilePreviewDetails` API object. 57 | /// 58 | + (nullable NSDictionary *)serialize:(DBTEAMLOGFilePreviewDetails *)instance; 59 | 60 | /// 61 | /// Deserializes `DBTEAMLOGFilePreviewDetails` instances. 62 | /// 63 | /// @param dict A json-compatible dictionary representation of the 64 | /// `DBTEAMLOGFilePreviewDetails` API object. 65 | /// 66 | /// @return An instantiation of the `DBTEAMLOGFilePreviewDetails` object. 67 | /// 68 | + (DBTEAMLOGFilePreviewDetails *)deserialize:(NSDictionary *)dict; 69 | 70 | @end 71 | 72 | NS_ASSUME_NONNULL_END 73 | -------------------------------------------------------------------------------- /Format/jazzy.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Dropbox, Inc.", 3 | "skip_undocumented": true, 4 | "custom_categories": [ 5 | { 6 | "name": "Clients", 7 | "children": [ 8 | "DBUserClient", 9 | "DBTeamClient", 10 | "DBAppClient", 11 | "DBClientsManager" 12 | ] 13 | }, 14 | { 15 | "name": "Networking", 16 | "children": [ 17 | "DBTask", 18 | "DBRpcTask", 19 | "DBUploadTask", 20 | "DBDownloadUrlTask", 21 | "DBDownloadDataTask", 22 | "DBRequestError", 23 | "DBRequestHttpError", 24 | "DBRequestBadInputError", 25 | "DBRequestAuthError", 26 | "DBRequestAccessError", 27 | "DBRequestRateLimitError", 28 | "DBRequestInternalServerError", 29 | "DBRequestClientError", 30 | "DBTransportBaseConfig", 31 | "DBTransportDefaultConfig", 32 | "DBGlobalErrorResponseHandler", 33 | "DBTransportBaseClient", 34 | "DBTransportDefaultClient", 35 | "DBProgressBlock", 36 | "DBBatchUploadResponseBlock", 37 | "DBTasksStorage" 38 | ] 39 | }, 40 | { 41 | "name": "Custom", 42 | "children": [ 43 | "DBBatchUploadData", 44 | "DBBatchUploadTask" 45 | ] 46 | }, 47 | { 48 | "name": "OAuth", 49 | "children": [ 50 | "DBOAuthMobileManager", 51 | "DBOAuthManager", 52 | "DBAccessToken", 53 | "DBOAuthResult", 54 | "DBMobileSharedApplication", 55 | "DBDesktopSharedApplication", 56 | "DBSharedApplication" 57 | ] 58 | }, 59 | { 60 | "name": "Serializers", 61 | "children": [ 62 | "DBArraySerializer", 63 | "DBNSDateSerializer" 64 | ] 65 | }, 66 | { 67 | "name": "Union Tags", 68 | "children": [ 69 | "DBOAuthErrorType", 70 | "DBOAuthResultTag", 71 | "DBRequestErrorTag" 72 | ] 73 | }, 74 | { 75 | "name": "Route Objects", 76 | "children": [] 77 | } 78 | ], 79 | "author_url": "https://dropbox.com/developers", 80 | "hide_documentation_coverage": true 81 | } 82 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGFileRestoreDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGFileRestoreDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FileRestoreDetails` struct. 19 | /// 20 | /// Restored deleted files and/or folders. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGFileRestoreDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `FileRestoreDetails` struct. 47 | /// 48 | @interface DBTEAMLOGFileRestoreDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGFileRestoreDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGFileRestoreDetails` API object. 54 | /// 55 | /// @return A json-compatible dictionary representation of the 56 | /// `DBTEAMLOGFileRestoreDetails` API object. 57 | /// 58 | + (nullable NSDictionary *)serialize:(DBTEAMLOGFileRestoreDetails *)instance; 59 | 60 | /// 61 | /// Deserializes `DBTEAMLOGFileRestoreDetails` instances. 62 | /// 63 | /// @param dict A json-compatible dictionary representation of the 64 | /// `DBTEAMLOGFileRestoreDetails` API object. 65 | /// 66 | /// @return An instantiation of the `DBTEAMLOGFileRestoreDetails` object. 67 | /// 68 | + (DBTEAMLOGFileRestoreDetails *)deserialize:(NSDictionary *)dict; 69 | 70 | @end 71 | 72 | NS_ASSUME_NONNULL_END 73 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGNoteAclLinkDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGNoteAclLinkDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `NoteAclLinkDetails` struct. 19 | /// 20 | /// Changed Paper doc to link-accessible. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGNoteAclLinkDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `NoteAclLinkDetails` struct. 47 | /// 48 | @interface DBTEAMLOGNoteAclLinkDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGNoteAclLinkDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGNoteAclLinkDetails` API object. 54 | /// 55 | /// @return A json-compatible dictionary representation of the 56 | /// `DBTEAMLOGNoteAclLinkDetails` API object. 57 | /// 58 | + (nullable NSDictionary *)serialize:(DBTEAMLOGNoteAclLinkDetails *)instance; 59 | 60 | /// 61 | /// Deserializes `DBTEAMLOGNoteAclLinkDetails` instances. 62 | /// 63 | /// @param dict A json-compatible dictionary representation of the 64 | /// `DBTEAMLOGNoteAclLinkDetails` API object. 65 | /// 66 | /// @return An instantiation of the `DBTEAMLOGNoteAclLinkDetails` object. 67 | /// 68 | + (DBTEAMLOGNoteAclLinkDetails *)deserialize:(NSDictionary *)dict; 69 | 70 | @end 71 | 72 | NS_ASSUME_NONNULL_END 73 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGCreateFolderDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGCreateFolderDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `CreateFolderDetails` struct. 19 | /// 20 | /// Created folders. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGCreateFolderDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `CreateFolderDetails` struct. 47 | /// 48 | @interface DBTEAMLOGCreateFolderDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGCreateFolderDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGCreateFolderDetails` API 54 | /// object. 55 | /// 56 | /// @return A json-compatible dictionary representation of the 57 | /// `DBTEAMLOGCreateFolderDetails` API object. 58 | /// 59 | + (nullable NSDictionary *)serialize:(DBTEAMLOGCreateFolderDetails *)instance; 60 | 61 | /// 62 | /// Deserializes `DBTEAMLOGCreateFolderDetails` instances. 63 | /// 64 | /// @param dict A json-compatible dictionary representation of the 65 | /// `DBTEAMLOGCreateFolderDetails` API object. 66 | /// 67 | /// @return An instantiation of the `DBTEAMLOGCreateFolderDetails` object. 68 | /// 69 | + (DBTEAMLOGCreateFolderDetails *)deserialize:(NSDictionary *)dict; 70 | 71 | @end 72 | 73 | NS_ASSUME_NONNULL_END 74 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/Files/Headers/DBFILESFileLock.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBFILESFileLock; 12 | @class DBFILESFileLockContent; 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | #pragma mark - API Object 17 | 18 | /// 19 | /// The `FileLock` struct. 20 | /// 21 | /// This class implements the `DBSerializable` protocol (serialize and 22 | /// deserialize instance methods), which is required for all Obj-C SDK API route 23 | /// objects. 24 | /// 25 | @interface DBFILESFileLock : NSObject 26 | 27 | #pragma mark - Instance fields 28 | 29 | /// The lock description. 30 | @property (nonatomic, readonly) DBFILESFileLockContent *content; 31 | 32 | #pragma mark - Constructors 33 | 34 | /// 35 | /// Full constructor for the struct (exposes all instance variables). 36 | /// 37 | /// @param content The lock description. 38 | /// 39 | /// @return An initialized instance. 40 | /// 41 | - (instancetype)initWithContent:(DBFILESFileLockContent *)content; 42 | 43 | - (instancetype)init NS_UNAVAILABLE; 44 | 45 | @end 46 | 47 | #pragma mark - Serializer Object 48 | 49 | /// 50 | /// The serialization class for the `FileLock` struct. 51 | /// 52 | @interface DBFILESFileLockSerializer : NSObject 53 | 54 | /// 55 | /// Serializes `DBFILESFileLock` instances. 56 | /// 57 | /// @param instance An instance of the `DBFILESFileLock` API object. 58 | /// 59 | /// @return A json-compatible dictionary representation of the `DBFILESFileLock` 60 | /// API object. 61 | /// 62 | + (nullable NSDictionary *)serialize:(DBFILESFileLock *)instance; 63 | 64 | /// 65 | /// Deserializes `DBFILESFileLock` instances. 66 | /// 67 | /// @param dict A json-compatible dictionary representation of the 68 | /// `DBFILESFileLock` API object. 69 | /// 70 | /// @return An instantiation of the `DBFILESFileLock` object. 71 | /// 72 | + (DBFILESFileLock *)deserialize:(NSDictionary *)dict; 73 | 74 | @end 75 | 76 | NS_ASSUME_NONNULL_END 77 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGPasswordResetDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGPasswordResetDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `PasswordResetDetails` struct. 19 | /// 20 | /// Reset password. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGPasswordResetDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `PasswordResetDetails` struct. 47 | /// 48 | @interface DBTEAMLOGPasswordResetDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGPasswordResetDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGPasswordResetDetails` API 54 | /// object. 55 | /// 56 | /// @return A json-compatible dictionary representation of the 57 | /// `DBTEAMLOGPasswordResetDetails` API object. 58 | /// 59 | + (nullable NSDictionary *)serialize:(DBTEAMLOGPasswordResetDetails *)instance; 60 | 61 | /// 62 | /// Deserializes `DBTEAMLOGPasswordResetDetails` instances. 63 | /// 64 | /// @param dict A json-compatible dictionary representation of the 65 | /// `DBTEAMLOGPasswordResetDetails` API object. 66 | /// 67 | /// @return An instantiation of the `DBTEAMLOGPasswordResetDetails` object. 68 | /// 69 | + (DBTEAMLOGPasswordResetDetails *)deserialize:(NSDictionary *)dict; 70 | 71 | @end 72 | 73 | NS_ASSUME_NONNULL_END 74 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/Files/Headers/DBFILESLockFileArg.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBFILESLockFileArg; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `LockFileArg` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBFILESLockFileArg : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// Path in the user's Dropbox to a file. 29 | @property (nonatomic, readonly, copy) NSString *path; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param path Path in the user's Dropbox to a file. 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithPath:(NSString *)path; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `LockFileArg` struct. 50 | /// 51 | @interface DBFILESLockFileArgSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBFILESLockFileArg` instances. 55 | /// 56 | /// @param instance An instance of the `DBFILESLockFileArg` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBFILESLockFileArg` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBFILESLockFileArg *)instance; 62 | 63 | /// 64 | /// Deserializes `DBFILESLockFileArg` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBFILESLockFileArg` API object. 68 | /// 69 | /// @return An instantiation of the `DBFILESLockFileArg` object. 70 | /// 71 | + (DBFILESLockFileArg *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/Files/Headers/DBFILESSymlinkInfo.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBFILESSymlinkInfo; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `SymlinkInfo` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBFILESSymlinkInfo : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// The target this symlink points to. 29 | @property (nonatomic, readonly, copy) NSString *target; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param target The target this symlink points to. 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithTarget:(NSString *)target; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `SymlinkInfo` struct. 50 | /// 51 | @interface DBFILESSymlinkInfoSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBFILESSymlinkInfo` instances. 55 | /// 56 | /// @param instance An instance of the `DBFILESSymlinkInfo` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBFILESSymlinkInfo` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBFILESSymlinkInfo *)instance; 62 | 63 | /// 64 | /// Deserializes `DBFILESSymlinkInfo` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBFILESSymlinkInfo` API object. 68 | /// 69 | /// @return An instantiation of the `DBFILESSymlinkInfo` object. 70 | /// 71 | + (DBFILESSymlinkInfo *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGFileDownloadDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGFileDownloadDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FileDownloadDetails` struct. 19 | /// 20 | /// Downloaded files and/or folders. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGFileDownloadDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `FileDownloadDetails` struct. 47 | /// 48 | @interface DBTEAMLOGFileDownloadDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGFileDownloadDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGFileDownloadDetails` API 54 | /// object. 55 | /// 56 | /// @return A json-compatible dictionary representation of the 57 | /// `DBTEAMLOGFileDownloadDetails` API object. 58 | /// 59 | + (nullable NSDictionary *)serialize:(DBTEAMLOGFileDownloadDetails *)instance; 60 | 61 | /// 62 | /// Deserializes `DBTEAMLOGFileDownloadDetails` instances. 63 | /// 64 | /// @param dict A json-compatible dictionary representation of the 65 | /// `DBTEAMLOGFileDownloadDetails` API object. 66 | /// 67 | /// @return An instantiation of the `DBTEAMLOGFileDownloadDetails` object. 68 | /// 69 | + (DBTEAMLOGFileDownloadDetails *)deserialize:(NSDictionary *)dict; 70 | 71 | @end 72 | 73 | NS_ASSUME_NONNULL_END 74 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGLogoutType.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGLogoutType; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `LogoutType` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBTEAMLOGLogoutType : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// (no description). 29 | @property (nonatomic, readonly, copy) NSString *description_; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param description_ (no description). 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithDescription_:(NSString *)description_; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `LogoutType` struct. 50 | /// 51 | @interface DBTEAMLOGLogoutTypeSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBTEAMLOGLogoutType` instances. 55 | /// 56 | /// @param instance An instance of the `DBTEAMLOGLogoutType` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBTEAMLOGLogoutType` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBTEAMLOGLogoutType *)instance; 62 | 63 | /// 64 | /// Deserializes `DBTEAMLOGLogoutType` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBTEAMLOGLogoutType` API object. 68 | /// 69 | /// @return An instantiation of the `DBTEAMLOGLogoutType` object. 70 | /// 71 | + (DBTEAMLOGLogoutType *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGPasswordChangeDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGPasswordChangeDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `PasswordChangeDetails` struct. 19 | /// 20 | /// Changed password. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGPasswordChangeDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `PasswordChangeDetails` struct. 47 | /// 48 | @interface DBTEAMLOGPasswordChangeDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGPasswordChangeDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGPasswordChangeDetails` API 54 | /// object. 55 | /// 56 | /// @return A json-compatible dictionary representation of the 57 | /// `DBTEAMLOGPasswordChangeDetails` API object. 58 | /// 59 | + (nullable NSDictionary *)serialize:(DBTEAMLOGPasswordChangeDetails *)instance; 60 | 61 | /// 62 | /// Deserializes `DBTEAMLOGPasswordChangeDetails` instances. 63 | /// 64 | /// @param dict A json-compatible dictionary representation of the 65 | /// `DBTEAMLOGPasswordChangeDetails` API object. 66 | /// 67 | /// @return An instantiation of the `DBTEAMLOGPasswordChangeDetails` object. 68 | /// 69 | + (DBTEAMLOGPasswordChangeDetails *)deserialize:(NSDictionary *)dict; 70 | 71 | @end 72 | 73 | NS_ASSUME_NONNULL_END 74 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGFileAddType.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGFileAddType; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FileAddType` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBTEAMLOGFileAddType : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// (no description). 29 | @property (nonatomic, readonly, copy) NSString *description_; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param description_ (no description). 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithDescription_:(NSString *)description_; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `FileAddType` struct. 50 | /// 51 | @interface DBTEAMLOGFileAddTypeSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBTEAMLOGFileAddType` instances. 55 | /// 56 | /// @param instance An instance of the `DBTEAMLOGFileAddType` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBTEAMLOGFileAddType` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBTEAMLOGFileAddType *)instance; 62 | 63 | /// 64 | /// Deserializes `DBTEAMLOGFileAddType` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBTEAMLOGFileAddType` API object. 68 | /// 69 | /// @return An instantiation of the `DBTEAMLOGFileAddType` object. 70 | /// 71 | + (DBTEAMLOGFileAddType *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGSsoRemoveCertDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGSsoRemoveCertDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `SsoRemoveCertDetails` struct. 19 | /// 20 | /// Removed X.509 certificate for SSO. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGSsoRemoveCertDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `SsoRemoveCertDetails` struct. 47 | /// 48 | @interface DBTEAMLOGSsoRemoveCertDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGSsoRemoveCertDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGSsoRemoveCertDetails` API 54 | /// object. 55 | /// 56 | /// @return A json-compatible dictionary representation of the 57 | /// `DBTEAMLOGSsoRemoveCertDetails` API object. 58 | /// 59 | + (nullable NSDictionary *)serialize:(DBTEAMLOGSsoRemoveCertDetails *)instance; 60 | 61 | /// 62 | /// Deserializes `DBTEAMLOGSsoRemoveCertDetails` instances. 63 | /// 64 | /// @param dict A json-compatible dictionary representation of the 65 | /// `DBTEAMLOGSsoRemoveCertDetails` API object. 66 | /// 67 | /// @return An instantiation of the `DBTEAMLOGSsoRemoveCertDetails` object. 68 | /// 69 | + (DBTEAMLOGSsoRemoveCertDetails *)deserialize:(NSDictionary *)dict; 70 | 71 | @end 72 | 73 | NS_ASSUME_NONNULL_END 74 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGOpenNoteSharedDetails.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGOpenNoteSharedDetails; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `OpenNoteSharedDetails` struct. 19 | /// 20 | /// Opened shared Paper doc. 21 | /// 22 | /// This class implements the `DBSerializable` protocol (serialize and 23 | /// deserialize instance methods), which is required for all Obj-C SDK API route 24 | /// objects. 25 | /// 26 | @interface DBTEAMLOGOpenNoteSharedDetails : NSObject 27 | 28 | #pragma mark - Instance fields 29 | 30 | #pragma mark - Constructors 31 | 32 | /// 33 | /// Full constructor for the struct (exposes all instance variables). 34 | /// 35 | /// @return An initialized instance. 36 | /// 37 | - (instancetype)initDefault; 38 | 39 | - (instancetype)init NS_UNAVAILABLE; 40 | 41 | @end 42 | 43 | #pragma mark - Serializer Object 44 | 45 | /// 46 | /// The serialization class for the `OpenNoteSharedDetails` struct. 47 | /// 48 | @interface DBTEAMLOGOpenNoteSharedDetailsSerializer : NSObject 49 | 50 | /// 51 | /// Serializes `DBTEAMLOGOpenNoteSharedDetails` instances. 52 | /// 53 | /// @param instance An instance of the `DBTEAMLOGOpenNoteSharedDetails` API 54 | /// object. 55 | /// 56 | /// @return A json-compatible dictionary representation of the 57 | /// `DBTEAMLOGOpenNoteSharedDetails` API object. 58 | /// 59 | + (nullable NSDictionary *)serialize:(DBTEAMLOGOpenNoteSharedDetails *)instance; 60 | 61 | /// 62 | /// Deserializes `DBTEAMLOGOpenNoteSharedDetails` instances. 63 | /// 64 | /// @param dict A json-compatible dictionary representation of the 65 | /// `DBTEAMLOGOpenNoteSharedDetails` API object. 66 | /// 67 | /// @return An instantiation of the `DBTEAMLOGOpenNoteSharedDetails` object. 68 | /// 69 | + (DBTEAMLOGOpenNoteSharedDetails *)deserialize:(NSDictionary *)dict; 70 | 71 | @end 72 | 73 | NS_ASSUME_NONNULL_END 74 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/Files/Headers/DBFILESUnlockFileArg.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBFILESUnlockFileArg; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `UnlockFileArg` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBFILESUnlockFileArg : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// Path in the user's Dropbox to a file. 29 | @property (nonatomic, readonly, copy) NSString *path; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param path Path in the user's Dropbox to a file. 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithPath:(NSString *)path; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `UnlockFileArg` struct. 50 | /// 51 | @interface DBFILESUnlockFileArgSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBFILESUnlockFileArg` instances. 55 | /// 56 | /// @param instance An instance of the `DBFILESUnlockFileArg` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBFILESUnlockFileArg` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBFILESUnlockFileArg *)instance; 62 | 63 | /// 64 | /// Deserializes `DBFILESUnlockFileArg` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBFILESUnlockFileArg` API object. 68 | /// 69 | /// @return An instantiation of the `DBFILESUnlockFileArg` object. 70 | /// 71 | + (DBFILESUnlockFileArg *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEmmErrorType.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGEmmErrorType; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `EmmErrorType` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBTEAMLOGEmmErrorType : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// (no description). 29 | @property (nonatomic, readonly, copy) NSString *description_; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param description_ (no description). 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithDescription_:(NSString *)description_; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `EmmErrorType` struct. 50 | /// 51 | @interface DBTEAMLOGEmmErrorTypeSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBTEAMLOGEmmErrorType` instances. 55 | /// 56 | /// @param instance An instance of the `DBTEAMLOGEmmErrorType` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBTEAMLOGEmmErrorType` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBTEAMLOGEmmErrorType *)instance; 62 | 63 | /// 64 | /// Deserializes `DBTEAMLOGEmmErrorType` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBTEAMLOGEmmErrorType` API object. 68 | /// 69 | /// @return An instantiation of the `DBTEAMLOGEmmErrorType` object. 70 | /// 71 | + (DBTEAMLOGEmmErrorType *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGFileCopyType.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGFileCopyType; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FileCopyType` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBTEAMLOGFileCopyType : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// (no description). 29 | @property (nonatomic, readonly, copy) NSString *description_; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param description_ (no description). 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithDescription_:(NSString *)description_; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `FileCopyType` struct. 50 | /// 51 | @interface DBTEAMLOGFileCopyTypeSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBTEAMLOGFileCopyType` instances. 55 | /// 56 | /// @param instance An instance of the `DBTEAMLOGFileCopyType` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBTEAMLOGFileCopyType` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBTEAMLOGFileCopyType *)instance; 62 | 63 | /// 64 | /// Deserializes `DBTEAMLOGFileCopyType` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBTEAMLOGFileCopyType` API object. 68 | /// 69 | /// @return An instantiation of the `DBTEAMLOGFileCopyType` object. 70 | /// 71 | + (DBTEAMLOGFileCopyType *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGFileEditType.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGFileEditType; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FileEditType` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBTEAMLOGFileEditType : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// (no description). 29 | @property (nonatomic, readonly, copy) NSString *description_; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param description_ (no description). 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithDescription_:(NSString *)description_; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `FileEditType` struct. 50 | /// 51 | @interface DBTEAMLOGFileEditTypeSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBTEAMLOGFileEditType` instances. 55 | /// 56 | /// @param instance An instance of the `DBTEAMLOGFileEditType` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBTEAMLOGFileEditType` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBTEAMLOGFileEditType *)instance; 62 | 63 | /// 64 | /// Deserializes `DBTEAMLOGFileEditType` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBTEAMLOGFileEditType` API object. 68 | /// 69 | /// @return An instantiation of the `DBTEAMLOGFileEditType` object. 70 | /// 71 | + (DBTEAMLOGFileEditType *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGFileMoveType.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGFileMoveType; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `FileMoveType` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBTEAMLOGFileMoveType : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// (no description). 29 | @property (nonatomic, readonly, copy) NSString *description_; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param description_ (no description). 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithDescription_:(NSString *)description_; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `FileMoveType` struct. 50 | /// 51 | @interface DBTEAMLOGFileMoveTypeSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBTEAMLOGFileMoveType` instances. 55 | /// 56 | /// @param instance An instance of the `DBTEAMLOGFileMoveType` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBTEAMLOGFileMoveType` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBTEAMLOGFileMoveType *)instance; 62 | 63 | /// 64 | /// Deserializes `DBTEAMLOGFileMoveType` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBTEAMLOGFileMoveType` API object. 68 | /// 69 | /// @return An instantiation of the `DBTEAMLOGFileMoveType` object. 70 | /// 71 | + (DBTEAMLOGFileMoveType *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGSsoErrorType.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGSsoErrorType; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `SsoErrorType` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBTEAMLOGSsoErrorType : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// (no description). 29 | @property (nonatomic, readonly, copy) NSString *description_; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param description_ (no description). 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithDescription_:(NSString *)description_; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `SsoErrorType` struct. 50 | /// 51 | @interface DBTEAMLOGSsoErrorTypeSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBTEAMLOGSsoErrorType` instances. 55 | /// 56 | /// @param instance An instance of the `DBTEAMLOGSsoErrorType` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBTEAMLOGSsoErrorType` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBTEAMLOGSsoErrorType *)instance; 62 | 63 | /// 64 | /// Deserializes `DBTEAMLOGSsoErrorType` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBTEAMLOGSsoErrorType` API object. 68 | /// 69 | /// @return An instantiation of the `DBTEAMLOGSsoErrorType` object. 70 | /// 71 | + (DBTEAMLOGSsoErrorType *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | -------------------------------------------------------------------------------- /Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGTfaResetType.h: -------------------------------------------------------------------------------- 1 | /// 2 | /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. 3 | /// 4 | /// Auto-generated by Stone, do not modify. 5 | /// 6 | 7 | #import 8 | 9 | #import "DBSerializableProtocol.h" 10 | 11 | @class DBTEAMLOGTfaResetType; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | #pragma mark - API Object 16 | 17 | /// 18 | /// The `TfaResetType` struct. 19 | /// 20 | /// This class implements the `DBSerializable` protocol (serialize and 21 | /// deserialize instance methods), which is required for all Obj-C SDK API route 22 | /// objects. 23 | /// 24 | @interface DBTEAMLOGTfaResetType : NSObject 25 | 26 | #pragma mark - Instance fields 27 | 28 | /// (no description). 29 | @property (nonatomic, readonly, copy) NSString *description_; 30 | 31 | #pragma mark - Constructors 32 | 33 | /// 34 | /// Full constructor for the struct (exposes all instance variables). 35 | /// 36 | /// @param description_ (no description). 37 | /// 38 | /// @return An initialized instance. 39 | /// 40 | - (instancetype)initWithDescription_:(NSString *)description_; 41 | 42 | - (instancetype)init NS_UNAVAILABLE; 43 | 44 | @end 45 | 46 | #pragma mark - Serializer Object 47 | 48 | /// 49 | /// The serialization class for the `TfaResetType` struct. 50 | /// 51 | @interface DBTEAMLOGTfaResetTypeSerializer : NSObject 52 | 53 | /// 54 | /// Serializes `DBTEAMLOGTfaResetType` instances. 55 | /// 56 | /// @param instance An instance of the `DBTEAMLOGTfaResetType` API object. 57 | /// 58 | /// @return A json-compatible dictionary representation of the 59 | /// `DBTEAMLOGTfaResetType` API object. 60 | /// 61 | + (nullable NSDictionary *)serialize:(DBTEAMLOGTfaResetType *)instance; 62 | 63 | /// 64 | /// Deserializes `DBTEAMLOGTfaResetType` instances. 65 | /// 66 | /// @param dict A json-compatible dictionary representation of the 67 | /// `DBTEAMLOGTfaResetType` API object. 68 | /// 69 | /// @return An instantiation of the `DBTEAMLOGTfaResetType` object. 70 | /// 71 | + (DBTEAMLOGTfaResetType *)deserialize:(NSDictionary *)dict; 72 | 73 | @end 74 | 75 | NS_ASSUME_NONNULL_END 76 | --------------------------------------------------------------------------------