I'm migrating from the old Dropbox Obj-C SDK to the new one. I was using the following methods from the old SDK:
- deletePath:
- uploadFile:toPath:withParentRev:fromPath:
- loadMetadata:
- cancelAllRequests
And a bunch of delegate calls:
- (void)restClient:(DBUserClient*)client
uploadedFile:(NSString*)destPath
from:(NSString*)srcPath
metadata:(DBMetadata*)metadata
- (void)restClient:(DBUserClient*)client uploadFileFailedWithError:(NSError*)error
- (void)restClient:(DBUserClient*)client deletedPath:(NSString *)path
- (void)restClient:(DBUserClient*)client deletePathFailedWithError:(NSError*)error
- (void)restClient:(DBUserClient*)client loadedMetadata:(DBMetadata*)metadata
- (void)restClient:(DBUserClient*)client metadataUnchangedAtPath:(NSString*)path
- (void)restClient:(DBUserClient*)client loadMetadataFailedWithError:(NSError*)error
- (void)sessionDidReceiveAuthorizationFailure:(DBSession*)session userId:(NSString *)userId
The new SDK doesn't seem to have anything like these methods - or delegates. I'm somewhat surprised that an SDK would be updated to be so completely different than what was already there. I am thinking that maybe I've got something wrong, that maybe there's another SDK I am missing? Surely it can't be that hard, despite any API changes, to maintain an SDK in a way that transitioning would be simple and intuitive, and not requiring major changes to the client code.
What am I doing wrong?