You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
C. Tim
10 years agoNew member | Level 2
To use API v2 in iOS platform, we need an objective-C version
We didn't use swift in our app development for iOS devices.
To use API v2 in iOS platform, we need an objective-C version!!!
Please kindly provide an objective-C version!
- Steve M.Dropbox Staff
For API v2, we only have a Swift SDK and currently don't have plans to build an Objective-C SDK. As Greg mentioned, you should be able to just use the Swift SDK from your Objective-C code.
For API v1, the iOS SDK is written in Objective-C, and the code can be downloaded from https://www.dropbox.com/developers-v1/core/sdks/ios.
- Dal R.New member | Level 2
Deriving from NSObject would be the first, then adding @objc to all protocols. + You're still limited only to apps that support dynamic frameworks, so iOS8+. And if you use CocoaPods (which many of us do), you cannot really mix and match dynamic frameworks and static libs. If you are using static libs, you'll have to manually integrate this framework.
- Oliver M.13New member | Level 1
Just adding a note to the great arguments @Ari mentioned: for agencies supporting multiple customers at once with projects of different size and probably not updated code bases for months/years but still in heavy use, it is already hard to argue to update APPs for such simple things as outdated APIs. Putting even more pressure into this situation is definitely not ending in an switch-to-swift decision but rather a drop of DropBox support in the first place.
As an API/SDK provider going swift only is definitely too far stretched.
- Harald S.2New member | Level 2
I think Dropbox is ignoring those developing and building value for them. Following changes in technology is fine but maintaining existing technologies is as important. It is about securing investments. Deprecating an API generates lot of efforts for the developer community. Leaving those willing to support this change nevertheless with no option is even worse.
I have a large Objective C code base and nearly a dozen of apps on the store. I will try to keep the v1 API as long as possible and drop Dropbox support afterwards. There are other options.
- Ari W.New member | Level 1
@Gregory, thanks for the update. I just want to reiterate that for many of us, having any Swift code in our production apps is not an option at the moment and I would urge you to consider shipping a clean Objective-C Dropbox SDK -- not an Objective-C interface to the Swift SDK -- if you want developers to be able to use it.
There is no good reason as to why the SDK should be written in Swift at this point in time. A Swift wrapper around an Objective-C SDK works perfectly without excluding people, whereas the other way around is no good. Please see my previous comments if you need any clarification as to why.
- C. TimNew member | Level 2
Is it possible that you can open source the deprecated Sync SDK so we can maintain or modify it to use Core API v2 by ourself?
- Mike K.14New member | Level 1
I just got an email that the v1 API is now deprecated. SO what are existing iOS applications that use the core v1 API supposed to do? How can you possibly deprecate an API without having a new v2 API for people to use that have coded with objective C? Really?
- Steve M.Dropbox Staff
I'm a bit confused. Did you run into trouble just using the Swift SDK from your Objective-C project? Or is there some other reason you can't (or don't want to) do that?
- Steve M.Dropbox Staff
For those who haven't tried it yet, I just tried and believe that we'll need to expose the Swift classes to Objective-C explicitly by inheriting from NSObject and adding the @objc decorator. (I was able to make some progress just by making the Dropbox class "@objc public class Dropbox : NSObject", but I believe there is more work to do to expose the full functionality.)
We'll try to make sure it's easy to use the Swift SDK from Objective-C code before the Swift SDK is taken out of beta. Please let me know if you have other concerns about using the Swift SDK from your Objective-C projects.
- Mobile H.New member | Level 1
> We'll try to make sure it's easy to use the Swift SDK from Objective-C code before the Swift SDK is taken out of beta.
Nice, I hope you'll come up with something because my knowledge of swift is worse than my french and my french is rather poor.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 3 years agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!