TMTumblrSDK icon indicating copy to clipboard operation
TMTumblrSDK copied to clipboard

Part of the source code is missing when adding the SDK via cocoapods

Open thinium opened this issue 8 years ago • 3 comments

I am trying to add TMTumblrSDK into my project using cocoapods. This is what I have in my pod file:

platform :ios, '7.0'

target 'PhotoPostExample' do

pod 'TMTumblrSDK', '~> 4.0.4'

end

I set the SDK version to 4.0.4 based on the info here https://github.com/tumblr/TMTumblrSDK/blob/master/TMTumblrSDK.podspec.json

But the TMAPIClient.h looks very different, the following secion is missing:

#ifdef __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__

/**
 Authenticate via three-legged OAuth using a given UIWebView

 Your `TMAPIClient` instance's `handleOpenURL:` method must also be called from your `UIApplicationDelegate`'s
 `application:openURL:sourceApplication:annotation:` method in order to receive the tokens.

 This method proxies to an underlying `TMTumblrAuthenticator` which will authenticate using the given the web view.
 That class can be used on its own but you do not need to invoke it directly if you are including the whole API client in your project.

 @param URLScheme a URL scheme that your application can handle requests to.

 @param fromViewController a UIViewController to present the authentication view controller from.
 */
- (void)authenticate:(NSString *)URLScheme fromViewController:(UIViewController *)fromViewController callback:(void(^)(NSError *))error;

#endif

Any idea what I can do to fix this? Thanks!

thinium avatar Aug 04 '16 12:08 thinium

These will be available after we push a new version to cocoapods trunk!

Thank you for your interest in TMTumblrSDK - we will update this thread once we do so

Pearapps avatar Aug 04 '16 14:08 Pearapps

I see, thanks for the reply!

Meanwhile, is there a way for me to integrate the SDK (without too much pain)? Or I should simply wait for the update?

thinium avatar Aug 04 '16 14:08 thinium

If you need to integrate it right now, you can depend on the most recent commit in the repo. However, I would recommend updating your Podfile to a stable version once a published version of the SDK meets your needs, because we will inevitably push backwards-incompatible API changes to this repo.

pod 'TMTumblrSDK', :head

paulrehkugler avatar Aug 04 '16 15:08 paulrehkugler