diff --git a/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/DTShareKit b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/DTShareKit deleted file mode 100644 index 87aadc8f..00000000 Binary files a/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/DTShareKit and /dev/null differ diff --git a/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/DTShareKit b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/DTShareKit new file mode 120000 index 00000000..25e84fc8 --- /dev/null +++ b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/DTShareKit @@ -0,0 +1 @@ +Versions/Current/DTShareKit \ No newline at end of file diff --git a/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Headers b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Headers new file mode 120000 index 00000000..a177d2a6 --- /dev/null +++ b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Headers @@ -0,0 +1 @@ +Versions/Current/Headers \ No newline at end of file diff --git a/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/A/DTShareKit b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/A/DTShareKit new file mode 100644 index 00000000..d863a96b Binary files /dev/null and b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/A/DTShareKit differ diff --git a/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Headers/DTOpenAPI.h b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/A/Headers/DTOpenAPI.h similarity index 90% rename from ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Headers/DTOpenAPI.h rename to ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/A/Headers/DTOpenAPI.h index 2cbc1a2c..415465d2 100644 --- a/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Headers/DTOpenAPI.h +++ b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/A/Headers/DTOpenAPI.h @@ -92,6 +92,13 @@ */ + (BOOL)isDingTalkSupportOpenAPI; +/** + 检测设备安装的钉钉是否支持钉钉SSO授权. + + @return YES 设备安装的钉钉客户端支持钉钉SSO授权. NO 设备安装的钉钉客户端不支持钉钉SSO授权. + */ ++ (BOOL)isDingTalkSupportSSO; + /** 获取钉钉在AppStore的安装地址. @@ -114,6 +121,13 @@ */ + (BOOL)openDingTalk; +/** + 打开支持SSO授权的钉钉客户端 + + @return YES 成功打开钉钉客户端. NO 未能打开钉钉客户端. + */ ++ (BOOL)openDingTalkForSSO; + /** 发送请求到钉钉, 钉钉处理完请求后会回调第三方APP, 第三方APP需在 -[DTOpenAPIDelegate onReq:] 处理钉钉的响应结果. diff --git a/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Headers/DTOpenAPIObject.h b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/A/Headers/DTOpenAPIObject.h similarity index 82% rename from ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Headers/DTOpenAPIObject.h rename to ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/A/Headers/DTOpenAPIObject.h index 1c924aff..59c94aa0 100644 --- a/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Headers/DTOpenAPIObject.h +++ b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/A/Headers/DTOpenAPIObject.h @@ -59,6 +59,42 @@ typedef NS_ENUM(NSInteger, DTScene) @property (nonatomic, copy) NSString *errorMessage; @end +@interface DTAuthorizeReq : DTBaseReq + +/** + 钉钉开放平台第三方应用授权回调页地址 + @warning 必须保证和在钉钉开放平台应用管理界面配置的“授权回调页”地址一致 + */ + +@property (nonatomic, copy) NSString *redirectURI; + +/** + 钉钉开放平台第三方应用bundleId + */ + +@property (nonatomic, copy) NSString *bundleId; + + +/** + 当用户没有安装钉钉客户端或钉钉客户端过低无法支持SSO的时候,返回给应用处理 + + 默认为YES + */ +@property (nonatomic, copy) void (^shouldShowWebViewForAuthIfCannotSSO)(); + +@end + +/** + 钉钉客户端处理完第三方应用的认证申请后向第三方应用回送的处理结果 + */ +@interface DTAuthorizeResp : DTBaseResp + +/** + 临时授权码 + */ +@property (nonatomic, copy) NSString *accessCode; + +@end ///----------------------------------------------------------------------------- diff --git a/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Headers/DTOpenKit.h b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/A/Headers/DTOpenKit.h similarity index 100% rename from ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Headers/DTOpenKit.h rename to ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/A/Headers/DTOpenKit.h diff --git a/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/Current b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/Current new file mode 120000 index 00000000..8c7e5a66 --- /dev/null +++ b/ShareSDK/Support/PlatformSDK/DingTalkSDK/DTShareKit.framework/Versions/Current @@ -0,0 +1 @@ +A \ No newline at end of file