diff --git a/KiiCloud.podspec b/KiiCloud.podspec index a092c5d..7bed505 100644 --- a/KiiCloud.podspec +++ b/KiiCloud.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "KiiCloud" - s.version= "2.7.4" + s.version= "2.7.6" s.summary = "A Cloud Storage SDK of KiiCloud." s.description = <<-DESC A Cloud Storage SDK of KiiCloud for iOS @@ -11,7 +11,7 @@ Pod::Spec.new do |s| s.author = { "KiiCorp" => "npm-admin@kii.com" } s.platform = :ios s.license = { :type => 'Kii', :file => 'LICENSE.md' } - s.source = { :git => 'https://github.com/KiiCorp/KiiCloudSDK-iOS.git', :tag => 'v2.7.4' } + s.source = { :git => 'https://github.com/KiiCorp/KiiCloudSDK-iOS.git', :tag => 'v2.7.6' } s.source_files = 'KiiSDK.framework/**/*.h' s.public_header_files = 'KiiSDK.framework/**/*.h' s.preserve_paths = "KiiSDK.framework" diff --git a/KiiCloud.podspec-e b/KiiCloud.podspec-e index 6aac092..6a8dab8 100644 --- a/KiiCloud.podspec-e +++ b/KiiCloud.podspec-e @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "KiiCloud" - s.version= "2.7.4" + s.version= "2.7.6" s.summary = "A Cloud Storage SDK of KiiCloud." s.description = <<-DESC A Cloud Storage SDK of KiiCloud for iOS @@ -11,7 +11,7 @@ Pod::Spec.new do |s| s.author = { "KiiCorp" => "npm-admin@kii.com" } s.platform = :ios s.license = { :type => 'Kii', :file => 'LICENSE.md' } - s.source = { :git => 'https://github.com/KiiCorp/KiiCloudSDK-iOS.git', :tag => 'v2.7.3' } + s.source = { :git => 'https://github.com/KiiCorp/KiiCloudSDK-iOS.git', :tag => 'v2.7.4' } s.source_files = 'KiiSDK.framework/**/*.h' s.public_header_files = 'KiiSDK.framework/**/*.h' s.preserve_paths = "KiiSDK.framework" diff --git a/KiiSDK.framework/Headers/KiiSocialConnect.h b/KiiSDK.framework/Headers/KiiSocialConnect.h index 027de0c..c39f2e2 100644 --- a/KiiSDK.framework/Headers/KiiSocialConnect.h +++ b/KiiSDK.framework/Headers/KiiSocialConnect.h @@ -136,218 +136,6 @@ NS_ASSUME_NONNULL_BEGIN andSecret:(nullable NSString*)secret andOptions:(nullable NSDictionary*)options __attribute__((deprecated("Not usable on new social connect login mechanism from v2.2.1"))); - -/** Log a user into the social network provided - - This will initiate the login process for the given network, which provides OAuth like Facebook/Twitter, - will send the user to the Facebook/Twitter app for authentication. If the social network user has already linked with a KiiUser, - that user will be used as signed user. Otherwise, KiiCloud creates a new user and link with the specified social network account. - If successful, the user is cached inside SDK as current user,and accessible via <[KiiUser currentUser]>. - User token is also cached and can be get by <[KiiUser accessToken]>. - Access token won't be expired unless you set it explicitly by <[Kii setAccessTokenExpiration:]> - - The network must already be set up via - @param network One of the supported values - @param options A dictionary of key/values to pass to KiiSocialConnect. Can be nil for Facebook and kiiSCNConnector but should not nil/empty for Twitter and QQ. - -### Facebook - Options for passing accessToken directly - - - - - - - - - - - - - - - - - - - - - - - - -
KeyValue typeValueNote
access_tokenNSStringAccess token of Facebook.If provided, KiiCloud uses this token while login using Facebook.
access_token_expiresNSDateExpire date of access token.Use for social network token validation.
- - Options by using ACAccount - - - - - - - - - - - - - - - - - - - - - - - - -
KeyValue typeValueNote
permissionsNSDictionaryKey-Value pairs of permissions defined by Facebook. If not provided, it will pass "email" as the default permissionFacebook : Facebook permissions.
use_acaccountNSNumberSelect ACAccount class as loggin mechanism from v2.2.1If @YES, KiiCloud uses iOS native Facebook account then use the accessToken.
- -### Twitter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
KeyValue typeValueNote
twitter_accountACAccountTwitter account that is obtained from account store.This is mandatory if "oauth_token" and "oauth_token_secret" are not provided.
oauth_tokenNSStringOAuth access token of twitter.This is mandatory if "twitter_account" is not provided.
oauth_token_secretNSStringOAuth access token secret of twitter.This is mandatory if "twitter_account" is not provided.
- - ### QQ - - - - - - - - - - - - - - - - - - - - - - - -
KeyValue typeValueNote
access_tokenNSStringAccess token of QQ.If provided, KiiCloud uses this token while login using QQ.
openidNSStringUnique with QQ App ID and user QQ account.QQ : QQ OpenID.
- -### Kii Social Network Connect - - - - - - - - - - - - - - - - - -
KeyValue typeValueNote
providerProviderProvider enum encapsulated on NSNumber object (ex. kiiConnectorFacebook)This is mandatory.
- Snippet for Kii Social Network Connect :
- - [KiiSocialConnect logIn:kiiSCNConnector - usingOptions:@{@"provider":@(kiiConnectorFacebook)} - withDelegate:self - andCallback:@selector(socialLoggedInWithUser:andNetwork:andError:)]; - - - @param delegate The object to make any callback requests to. - @param callback The callback method to be called when the request is completed. The callback method should have a signature similar to: - - - (void) loggedIn:(KiiUser*)user usingNetwork:(KiiSocialNetworkName)network withError:(NSError*)error { - - // the process was successful - the user is now authenticated - if(error == nil) { - // do something with the user - // you can get information by calling KiiSocialConnect#getAccessTokenDictionaryForNetwork: - // snippet for kiiSCNConnector : - NSDictionary* tokenDict = [KiiSocialConnect getAccessTokenDictionaryForNetwork:kiiSCNConnector]; - NSString* token = tokenDict[@"oauth_token"]; - NSString* tokenSecret = tokenDict[@"oauth_token_secret"]; - NSString* providerUserId = tokenDict[@"provider_user_id"]; - } - else { - // there was a problem - } - } - @note This method should be called from main thread. - @exception KiiIllegalStateException will be thrown if setupNetwork: is not called. - @exception NSInvalidArgumentException will be thrown if options is not valid (see description above). - @deprecated Use <[KiiSocialConnect logIn:options:block:]> . - */ -+ (void) logIn:(KiiSocialNetworkName)network usingOptions:(nullable NSDictionary*)options withDelegate:(id)delegate andCallback:(SEL)callback __attribute__((deprecated("Use <[KiiSocialConnect logIn:options:block:]>"))); - -/** Login with specified social network. - - This will initiate the login process for the given network, which provides OAuth like Facebook/Twitter, - will send the user to the Facebook/Twitter app for authentication. If the social network user has already linked with a KiiUser, - that user will be used as signed user. Otherwise, KiiCloud creates a new user and link with the specified social network account. - - If successful, the user is cached inside SDK as current user,and accessible via <[KiiUser currentUser]>. - User token is also cached and can be get by <[KiiUser accessToken]>. - Access token won't be expired unless you set it explicitly by <[Kii setAccessTokenExpiration:]> - - Snippet for login with social network :
- - [KiiSocialConnect logIn:kiiSCNConnector usingOptions:@{@"provider":@(kiiConnectorFacebook)} - andBlock:^(KiiUser *user, KiiSocialNetworkName name, NSError *error) { - if (error == nil) { - // login successful. Do someting with the user. - } else { - // something went wrong. - } - }]; - - @param network One of the supported values - @param options A dictionary of key/values to pass to KiiSocialConnect. Can be nil for Facebook and kiiSCNConnector but should not nil/empty for Twitter. - For details about options, refer to <[KiiSocialConnect logIn:usingOptions:withDelegate:andCallback:> - @param block To be called upon login completion. - @note This API access to server. Should not be executed in UI/Main thread. - @exception KiiIllegalStateException will be thrown if setupNetwork: is not called. - @exception NSInvalidArgumentException will be thrown if options is not valid (see description above). - @deprecated Use <[KiiSocialConnect logIn:options:block:]> . - */ -+ (void) logIn:(KiiSocialNetworkName)network usingOptions:(nullable NSDictionary*)options andBlock: (KiiSocialConnectBlock) block __attribute__((deprecated("Use <[KiiSocialConnect logIn:options:block:]>"))); - /** Login with specified social network. **Note**: Login with UI provided by SDK will be not supported after July 31st, 2019. @@ -490,182 +278,6 @@ NS_ASSUME_NONNULL_BEGIN */ + (UINavigationController*) logInNavigationController:(KiiConnectorProvider)provider block:(KiiSCNBlock) block; -/** Link the currently logged in user with a social network - - This will initiate the login process for the given network, which for SSO-enabled services like Facebook/Twitter, will send the user to the Facebook/Twitter app for authentication. There must be a currently authenticated . Otherwise, you can use the logIn: method to create and log in a using Facebook/Twitter. The network must already be set up via - @param network One of the supported values. - @param options A dictionary of key/values to pass to KiiSocialConnect. Can be nil for Facebook but should not nil/empty for Twitter. - -### Facebook - Options for passing accessToken directly - - - - - - - - - - - - - - - - - - - - - - - - -
KeyValue typeValueNote
access_tokenNSStringAccess token of Facebook.If provided, KiiCloud uses this token while login using Facebook.
access_token_expiresNSDateExpire date of access token.Use for social network token validation.
- - Options by using ACAccount - - - - - - - - - - - - - - - - - - - - - - - - -
KeyValue typeValueNote
permissionsNSDictionaryKey-Value pairs of permissions defined by Facebook. If not provided, it will pass "email" as the default permissionFacebook : Facebook permissions.
use_acaccountNSNumberSelect ACAccount class as loggin mechanism from v2.2.1If @YES, KiiCloud uses iOS native Facebook account then use the accessToken.
- -### Twitter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
KeyValue typeValueNote
twitter_accountACAccountTwitter account that is obtained from account store.This is mandatory if "oauth_token" and "oauth_token_secret" are not provided.
oauth_tokenNSStringOAuth access token of twitter.This is mandatory if "twitter_account" is not provided.
oauth_token_secretNSStringOAuth access token secret of twitter.This is mandatory if "twitter_account" is not provided.
- - ### QQ - - - - - - - - - - - - - - - - - - - - - - - -
KeyValue typeValueNote
access_tokenNSStringAccess token of QQ.If provided, KiiCloud uses this token while login using QQ.
openidNSStringUnique with QQ App ID and user QQ account.QQ : QQ OpenID.
- - -### Kii Social Network Connect -    This operation is not supported for kiiSCNConnector network name. - - - @param delegate The object to make any callback requests to. - @param callback The callback method to be called when the request is completed. The callback method should have a signature similar to: - - - (void) userLinked:(KiiUser*)user withNetwork:(KiiSocialNetworkName)network andError:(NSError*)error { - - // the process was successful - the user is now linked to the network - if(error == nil) { - // do something with the user - } - - else { - // there was a problem - } - } - @exception KiiIllegalStateException will be thrown if setupNetwork: is not called. - @exception NSInvalidArgumentException will be thrown if options is not valid (see description above) or if kiiSCNConnector network name is passed. - @deprecated Use <[KiiSocialConnect linkCurrentUser:options:block:]> - */ -+ (void) linkCurrentUserWithNetwork:(KiiSocialNetworkName)network - usingOptions:(nullable NSDictionary*)options - withDelegate:(id)delegate - andCallback:(SEL)callback __attribute__((deprecated("Use <[KiiSocialConnect linkCurrentUser:options:block:]>"))); - - -/** Link the currently logged in user with a social network - - This will initiate the login process for the given network, which for SSO-enabled services like Facebook/Twitter, will send the user to the Facebook/Twitter app for authentication. There must be a currently authenticated . Otherwise, you can use the logIn: method to create and log in a using Facebook/Twitter. The network must already be set up via - - Snippet for link with social network :
- - [KiiSocialConnect linkCurrentUserWithNetwork:kiiSCNConnector usingOptions:@{@"provider":@(kiiConnectorFacebook)} - andBlock:^(KiiUser *user, KiiSocialNetworkName name, NSError *error) { - if (error == nil) { - // link successful. Do someting with the user. - } else { - // something went wrong. - } - }]; - - @param network One of the supported values. - @param options A dictionary of key/values to pass to KiiSocialConnect. Can be nil for Facebook but should not nil/empty for Twitter. - For details about options, refer to <[KiiSocialConnect linkCurrentUserWithNetwork:usingOptions:withDelegate:andCallback:> - @param block To be called upon link completion. - @note This API access to server. Should not be executed in UI/Main thread. - @exception KiiIllegalStateException will be thrown if setupNetwork: is not called. - @exception NSInvalidArgumentException will be thrown if options is not valid (see description above) or if kiiSCNConnector network name is passed. - @deprecated Use <[KiiSocialConnect linkCurrentUser:options:block:]> - */ -+ (void) linkCurrentUserWithNetwork:(KiiSocialNetworkName)network - usingOptions:(nullable NSDictionary*)options - andBlock:(KiiSocialConnectBlock) block __attribute__((deprecated("Use <[KiiSocialConnect linkCurrentUser:options:block:]>"))); - /** Link the currently logged in user with supported social networks (Facebook, Twitter, Renren, Google and QQ). The provider should be valid values. Otherwise, an exception will be raised.
@@ -766,58 +378,6 @@ NS_ASSUME_NONNULL_BEGIN options:(NSDictionary*)options block:(KiiSCNBlock) block; - -/** Unlink the currently logged in user from the social network. This operation is not supported for kiiSCNConnector network name. - - The network must already be set up via - @param network One of the supported values. - @param delegate The object to make any callback requests to. - @param callback The callback method to be called when the request is completed. The callback method should have a signature similar to: - - - (void) userUnLinked:(KiiUser*)user fromNetwork:(KiiSocialNetworkName)network withError:(NSError*)error { - - // the process was successful - the user is no longer linked to the network - if(error == nil) { - // do something with the user - } - - else { - // there was a problem - } - } - @exception KiiIllegalStateException will be thrown if setupNetwork: is not called. - @exception NSInvalidArgumentException will be thrown if kiiSCNConnector network name is passed. - @deprecated Use <[KiiSocialConnect unLinkCurrentUser:block:]> - */ -+ (void) unLinkCurrentUserWithNetwork:(KiiSocialNetworkName)network - withDelegate:(id)delegate - andCallback:(SEL)callback __attribute__((deprecated("Use <[unLinkCurrentUser:block:]>"))); - - -/** Unlink the currently logged in user from the social network. This operation is not supported for kiiSCNConnector network name. - - The network must already be set up via - - Snippet for unlink current user with network. :
- - [KiiSocialConnect unLinkCurrentUserWithNetwork:kiiSCNConnector - andBlock:^(KiiUser *user, KiiSocialNetworkName name, NSError *error) { - if (error == nil) { - // unlink successful. - } else { - // something went wrong. - } - }]; - @param network One of the supported values. - @param block To be called upon unlink completion. - @note This API access to server. Should not be executed in UI/Main thread. - @exception KiiIllegalStateException will be thrown if setupNetwork: is not called. - @exception NSInvalidArgumentException will be thrown if kiiSCNConnector network name is passed. - @deprecated Use <[KiiSocialConnect unLinkCurrentUser:block:]> - */ -+ (void) unLinkCurrentUserWithNetwork:(KiiSocialNetworkName)network - andBlock:(KiiSocialConnectBlock)block __attribute__((deprecated("Use <[unLinkCurrentUser:block:]>"))); - /** Unlink the currently logged in user from the social network. The provider should be valid values. Otherwise, an exception will be raised. diff --git a/KiiSDK.framework/Info.plist b/KiiSDK.framework/Info.plist index b223f72..f8e5cce 100644 Binary files a/KiiSDK.framework/Info.plist and b/KiiSDK.framework/Info.plist differ diff --git a/KiiSDK.framework/KiiSDK b/KiiSDK.framework/KiiSDK index 5650789..18f20ab 100755 Binary files a/KiiSDK.framework/KiiSDK and b/KiiSDK.framework/KiiSDK differ