com.xd.sdk.account 6.29.1 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/Plugins/Android/libs/XDGAccount_7.0.0.aar +0 -0
  2. package/{Mobile/Plugins/Android/com/xd/account/bridge/XDGAccountBridge.java.meta → Plugins/Android/libs/XDGAccount_7.0.0.aar.meta} +2 -2
  3. package/Plugins/Android/libs/XDGBridgeAccount_v7_7.0.0.aar +0 -0
  4. package/{Mobile/Plugins/Android/com/xd/account/bridge/XDGLoginServiceUnity.java.meta → Plugins/Android/libs/XDGBridgeAccount_v7_7.0.0.aar.meta} +2 -2
  5. package/Plugins/Android/libs/XDGSupport_7.0.0.aar +0 -0
  6. package/{Mobile/Plugins/Android/com/xd/account/bridge/XDGLoginServiceUnityImpl.java.meta → Plugins/Android/libs/XDGSupport_7.0.0.aar.meta} +2 -2
  7. package/Plugins/Android/libs.meta +1 -1
  8. package/Plugins/Android.meta +1 -1
  9. package/Plugins/iOS/XDAccountSDK.framework/Headers/TDSGlobalThirdPartyLoginHelper.h +2 -8
  10. package/Plugins/iOS/XDAccountSDK.framework/Headers/TDSGlobalThirdPartyLoginHelper.h.meta +1 -1
  11. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDAccountSDK-Swift.h +329 -0
  12. package/Plugins/iOS/XDAccountSDK.framework/Headers/{TDSGlobalThirdPartyLoginManager.h.meta → XDAccountSDK-Swift.h.meta} +1 -1
  13. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDAccountSDK.h +1 -2
  14. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDAccountSDK.h.meta +1 -1
  15. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGAccount.h +29 -43
  16. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGAccount.h.meta +1 -1
  17. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGAccountDefines.h +43 -0
  18. package/Plugins/iOS/XDAccountSDK.framework/Headers/{XDGPhoneAuthManager.h.meta → XDGAccountDefines.h.meta} +1 -1
  19. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGAccountVersion.h +3 -3
  20. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGAccountVersion.h.meta +1 -1
  21. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGLogger+Account.h +3 -0
  22. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGLogger+Account.h.meta +1 -1
  23. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGLoginEntriesConfig.h.meta +1 -1
  24. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGLoginService.h.meta +1 -1
  25. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGTapLoginPermissionDialog.h.meta +1 -1
  26. package/Plugins/iOS/XDAccountSDK.framework/Headers.meta +1 -1
  27. package/Plugins/iOS/XDAccountSDK.framework/Info.plist +0 -0
  28. package/Plugins/iOS/XDAccountSDK.framework/Info.plist.meta +1 -1
  29. package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  30. package/Plugins/iOS/XDAccountSDK.framework/{Headers/XDGRoleInfo.h.meta → Modules/XDAccountSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo.meta} +1 -1
  31. package/{Mobile/Http.meta → Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/Project.meta} +1 -1
  32. package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.abi.json +9 -0
  33. package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.abi.json.meta +7 -0
  34. package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  35. package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.swiftdoc.meta +7 -0
  36. package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  37. package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.swiftmodule.meta +7 -0
  38. package/{Mobile/Editor.meta → Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule.meta} +1 -1
  39. package/Plugins/iOS/XDAccountSDK.framework/Modules/module.modulemap.meta +1 -1
  40. package/Plugins/iOS/XDAccountSDK.framework/Modules.meta +1 -1
  41. package/Plugins/iOS/XDAccountSDK.framework/XDAccountSDK +0 -0
  42. package/Plugins/iOS/XDAccountSDK.framework/XDAccountSDK.meta +1 -1
  43. package/Plugins/iOS/XDAccountSDK.framework.meta +4 -4
  44. package/Plugins/iOS.meta +1 -1
  45. package/Plugins.meta +1 -1
  46. package/Runtime/Internal/IXDGAccount.Extended.cs +11 -0
  47. package/{Mobile/Http/XDGAccountHttpConfigMobile.cs.meta → Runtime/Internal/IXDGAccount.Extended.cs.meta} +1 -1
  48. package/Runtime/Internal/Mobile/AccountFeaturesImpl.cs +348 -0
  49. package/{Mobile/User/UserManagerMobile.cs.meta → Runtime/Internal/Mobile/AccountFeaturesImpl.cs.meta} +1 -1
  50. package/Runtime/Internal/Mobile/Http/LoginSyncResponse.cs +14 -0
  51. package/Runtime/Internal/Mobile/Http/LoginSyncResponse.cs.meta +3 -0
  52. package/Runtime/Internal/Mobile/Http/MacAuthenticationInterceptor.cs +37 -0
  53. package/Runtime/Internal/Mobile/Http/MacAuthenticationInterceptor.cs.meta +3 -0
  54. package/Runtime/Internal/Mobile/Http.meta +3 -0
  55. package/{Mobile.meta → Runtime/Internal/Mobile.meta} +1 -1
  56. package/Runtime/Internal/Standalone/AccessToken/AccessTokenModule.cs +168 -0
  57. package/{Mobile/Editor/XDAccountMobileProcessBuild.cs.meta → Runtime/Internal/Standalone/AccessToken/AccessTokenModule.cs.meta} +1 -1
  58. package/Runtime/Internal/Standalone/AccessToken.meta +8 -0
  59. package/Runtime/Internal/Standalone/AccountCell.cs +143 -0
  60. package/{Mobile/XDGAccountMobile.cs.meta → Runtime/Internal/Standalone/AccountCell.cs.meta} +1 -1
  61. package/Runtime/Internal/Standalone/AccountFeaturesImpl.cs +461 -0
  62. package/Runtime/Internal/Standalone/AccountFeaturesImpl.cs.meta +11 -0
  63. package/Runtime/Internal/Standalone/Auth/AppleAuth.cs +27 -0
  64. package/Runtime/Internal/Standalone/Auth/AppleAuth.cs.meta +11 -0
  65. package/Runtime/Internal/Standalone/Auth/FacebookAuth.cs +27 -0
  66. package/Runtime/Internal/Standalone/Auth/FacebookAuth.cs.meta +11 -0
  67. package/Runtime/Internal/Standalone/Auth/GoogleAuth.cs +27 -0
  68. package/Runtime/Internal/Standalone/Auth/GoogleAuth.cs.meta +11 -0
  69. package/Runtime/Internal/Standalone/Auth/GuestAuth.cs +22 -0
  70. package/Runtime/Internal/Standalone/Auth/GuestAuth.cs.meta +11 -0
  71. package/Runtime/Internal/Standalone/Auth/PhoneAuth.cs +43 -0
  72. package/Runtime/Internal/Standalone/Auth/PhoneAuth.cs.meta +11 -0
  73. package/Runtime/Internal/Standalone/Auth/SteamAuth.cs +90 -0
  74. package/Runtime/Internal/Standalone/Auth/SteamAuth.cs.meta +11 -0
  75. package/Runtime/Internal/Standalone/Auth/TapAuth.cs +72 -0
  76. package/Runtime/Internal/Standalone/Auth/TapAuth.cs.meta +11 -0
  77. package/Runtime/Internal/Standalone/Auth/WebAuth.cs +144 -0
  78. package/Runtime/Internal/Standalone/Auth/WebAuth.cs.meta +11 -0
  79. package/Runtime/Internal/Standalone/Auth.meta +8 -0
  80. package/Runtime/Internal/Standalone/Compliance/XDComplianceCode.cs +15 -0
  81. package/Runtime/Internal/Standalone/Compliance/XDComplianceCode.cs.meta +11 -0
  82. package/Runtime/Internal/Standalone/Compliance.meta +8 -0
  83. package/Runtime/Internal/Standalone/LoginModule/Email/EmailModule.cs +374 -0
  84. package/Runtime/Internal/Standalone/LoginModule/Email/EmailModule.cs.meta +11 -0
  85. package/Runtime/Internal/Standalone/LoginModule/Email.meta +8 -0
  86. package/Runtime/Internal/Standalone/LoginModule/Phone/PhoneModule.cs +245 -0
  87. package/Runtime/Internal/Standalone/LoginModule/Phone/PhoneModule.cs.meta +11 -0
  88. package/Runtime/Internal/Standalone/LoginModule/Phone/PhoneModuleIO.cs +392 -0
  89. package/Runtime/Internal/Standalone/LoginModule/Phone/PhoneModuleIO.cs.meta +11 -0
  90. package/Runtime/Internal/Standalone/LoginModule/Phone.meta +8 -0
  91. package/Runtime/Internal/Standalone/LoginModule.meta +8 -0
  92. package/Runtime/Internal/Standalone/SupportModule/SupportModule.cs +228 -0
  93. package/Runtime/Internal/Standalone/SupportModule/SupportModule.cs.meta +3 -0
  94. package/Runtime/Internal/Standalone/SupportModule/SupportResponse.cs +27 -0
  95. package/Runtime/Internal/Standalone/SupportModule/SupportResponse.cs.meta +3 -0
  96. package/Runtime/Internal/Standalone/SupportModule.meta +3 -0
  97. package/Runtime/Internal/Standalone/Track/AliyunTrack.Login.cs +479 -0
  98. package/Runtime/Internal/Standalone/Track/AliyunTrack.Login.cs.meta +11 -0
  99. package/Runtime/Internal/Standalone/Track.meta +8 -0
  100. package/Runtime/Internal/Standalone/UI/CodeUnbindAlert.cs +156 -0
  101. package/Runtime/Internal/Standalone/UI/CodeUnbindAlert.cs.meta +11 -0
  102. package/Runtime/Internal/Standalone/UI/Email/EmailAlert.cs +295 -0
  103. package/Runtime/Internal/Standalone/UI/Email/EmailAlert.cs.meta +11 -0
  104. package/Runtime/Internal/Standalone/UI/Email.meta +8 -0
  105. package/Runtime/Internal/Standalone/UI/PhoneIO/AreaCodeCell.cs +46 -0
  106. package/Runtime/Internal/Standalone/UI/PhoneIO/AreaCodeCell.cs.meta +11 -0
  107. package/Runtime/Internal/Standalone/UI/PhoneIO/PhoneAlertIO.cs +522 -0
  108. package/Runtime/Internal/Standalone/UI/PhoneIO/PhoneAlertIO.cs.meta +11 -0
  109. package/Runtime/Internal/Standalone/UI/PhoneIO.meta +8 -0
  110. package/Runtime/Internal/Standalone/UI/PhoneVerification/PhoneNumberInputAlert.cs +84 -0
  111. package/Runtime/Internal/Standalone/UI/PhoneVerification/PhoneNumberInputAlert.cs.meta +11 -0
  112. package/Runtime/Internal/Standalone/UI/PhoneVerification/RiskControlAlert.cs +190 -0
  113. package/Runtime/Internal/Standalone/UI/PhoneVerification/RiskControlAlert.cs.meta +11 -0
  114. package/Runtime/Internal/Standalone/UI/PhoneVerification/VerifyCodeInputAlert.cs +164 -0
  115. package/Runtime/Internal/Standalone/UI/PhoneVerification/VerifyCodeInputAlert.cs.meta +11 -0
  116. package/Runtime/Internal/Standalone/UI/PhoneVerification.meta +8 -0
  117. package/Runtime/Internal/Standalone/UI.meta +8 -0
  118. package/Runtime/Internal/Standalone/UserCenterAlert.cs +405 -0
  119. package/Runtime/Internal/Standalone/UserCenterAlert.cs.meta +11 -0
  120. package/Runtime/Internal/Standalone/UserModule.cs +604 -0
  121. package/Runtime/Internal/Standalone/UserModule.cs.meta +11 -0
  122. package/Runtime/Internal/Standalone/WebFunction/AccessTokenWebFunction.cs +47 -0
  123. package/Runtime/Internal/Standalone/WebFunction/AccessTokenWebFunction.cs.meta +3 -0
  124. package/Runtime/Internal/Standalone/WebFunction.meta +3 -0
  125. package/{Mobile/Plugins.meta → Runtime/Internal/Standalone.meta} +1 -1
  126. package/Runtime/Internal/XDGAccountEventHandler.cs +23 -0
  127. package/Runtime/Internal/XDGAccountEventHandler.cs.meta +3 -0
  128. package/Runtime/Internal/XDGAccountInternal.cs +86 -0
  129. package/Runtime/Internal/XDGAccountInternal.cs.meta +11 -0
  130. package/Runtime/Internal.meta +1 -1
  131. package/Runtime/Public/XDGAccount.Deprecated.cs +37 -0
  132. package/Runtime/Public/XDGAccount.Deprecated.cs.meta +11 -0
  133. package/Runtime/Public/XDGAccount.cs +107 -0
  134. package/Runtime/{XDGAccount.cs.meta → Public/XDGAccount.cs.meta} +1 -1
  135. package/Runtime/Public.meta +8 -0
  136. package/Runtime/XD.SDK.Account.asmdef +7 -2
  137. package/Runtime/XD.SDK.Account.asmdef.meta +1 -1
  138. package/Runtime.meta +1 -1
  139. package/package.json +5 -5
  140. package/package.json.meta +2 -2
  141. package/Mobile/Editor/XD.SDK.Account.Mobile.Editor.asmdef +0 -20
  142. package/Mobile/Editor/XD.SDK.Account.Mobile.Editor.asmdef.meta +0 -7
  143. package/Mobile/Editor/XDAccountMobileProcessBuild.cs +0 -20
  144. package/Mobile/Http/XDGAccountHttpConfigMobile.cs +0 -36
  145. package/Mobile/Plugins/Android/com/xd/account/bridge/XDGAccountBridge.java +0 -36
  146. package/Mobile/Plugins/Android/com/xd/account/bridge/XDGLoginServiceUnity.java +0 -16
  147. package/Mobile/Plugins/Android/com/xd/account/bridge/XDGLoginServiceUnityImpl.java +0 -20
  148. package/Mobile/Plugins/Android/com/xd/account/bridge.meta +0 -8
  149. package/Mobile/Plugins/Android/com/xd/account.meta +0 -8
  150. package/Mobile/Plugins/Android/com/xd.meta +0 -8
  151. package/Mobile/Plugins/Android/com.meta +0 -8
  152. package/Mobile/Plugins/Android.meta +0 -8
  153. package/Mobile/Plugins/iOS/XDAccountBridge.m +0 -29
  154. package/Mobile/Plugins/iOS/XDAccountBridge.m.meta +0 -37
  155. package/Mobile/Plugins/iOS/XDGLoginServiceUnity.h +0 -17
  156. package/Mobile/Plugins/iOS/XDGLoginServiceUnity.h.meta +0 -27
  157. package/Mobile/Plugins/iOS/XDGLoginServiceUnity.m +0 -23
  158. package/Mobile/Plugins/iOS/XDGLoginServiceUnity.m.meta +0 -37
  159. package/Mobile/Plugins/iOS.meta +0 -8
  160. package/Mobile/User/UserManagerMobile.cs +0 -45
  161. package/Mobile/User.meta +0 -8
  162. package/Mobile/XD.SDK.Account.Mobile.asmdef +0 -23
  163. package/Mobile/XD.SDK.Account.Mobile.asmdef.meta +0 -7
  164. package/Mobile/XDGAccountMobile.cs +0 -138
  165. package/Mobile/XDGAccountMobileImpl.cs +0 -444
  166. package/Mobile/XDGAccountMobileImpl.cs.meta +0 -11
  167. package/Mobile/XDGTokenManager.cs +0 -116
  168. package/Mobile/XDGTokenManager.cs.meta +0 -11
  169. package/Mobile/XDGUserWrapper.cs +0 -167
  170. package/Mobile/XDGUserWrapper.cs.meta +0 -11
  171. package/Plugins/Android/libs/XDGAccount_6.29.1.aar +0 -0
  172. package/Plugins/Android/libs/XDGAccount_6.29.1.aar.meta +0 -32
  173. package/Plugins/iOS/XDAccountSDK.framework/Headers/TDSGlobalThirdPartyLoginManager.h +0 -47
  174. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGPhoneAuthManager.h +0 -33
  175. package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGRoleInfo.h +0 -22
  176. package/README.md +0 -0
  177. package/README.md.meta +0 -7
  178. package/Runtime/Editor/XD.SDK.Account.Editor.asmdef +0 -19
  179. package/Runtime/Editor/XD.SDK.Account.Editor.asmdef.meta +0 -7
  180. package/Runtime/Editor/XDAccountProcessBuild.cs +0 -18
  181. package/Runtime/Editor/XDAccountProcessBuild.cs.meta +0 -11
  182. package/Runtime/Editor.meta +0 -8
  183. package/Runtime/IXDGAccount.cs +0 -44
  184. package/Runtime/IXDGAccount.cs.meta +0 -11
  185. package/Runtime/Internal/Http/IXDAccountHttpConfig.cs +0 -9
  186. package/Runtime/Internal/Http/IXDAccountHttpConfig.cs.meta +0 -11
  187. package/Runtime/Internal/Http/XDAccountHttpConfig.cs +0 -32
  188. package/Runtime/Internal/Http/XDAccountHttpConfig.cs.meta +0 -11
  189. package/Runtime/Internal/Http.meta +0 -8
  190. package/Runtime/Internal/User/IUserManagerPlatformWrapper.cs +0 -7
  191. package/Runtime/Internal/User/IUserManagerPlatformWrapper.cs.meta +0 -11
  192. package/Runtime/Internal/User.meta +0 -8
  193. package/Runtime/UserManager.cs +0 -35
  194. package/Runtime/UserManager.cs.meta +0 -11
  195. package/Runtime/XDGAccessToken.cs +0 -18
  196. package/Runtime/XDGAccessToken.cs.meta +0 -11
  197. package/Runtime/XDGAccount.cs +0 -130
  198. package/Runtime/XDGLoginType.cs +0 -17
  199. package/Runtime/XDGLoginType.cs.meta +0 -11
  200. package/Runtime/XDGRoleInfo.cs +0 -24
  201. package/Runtime/XDGRoleInfo.cs.meta +0 -11
  202. package/Runtime/XDGUser.cs +0 -30
  203. package/Runtime/XDGUser.cs.meta +0 -11
  204. package/Runtime/XDGUserStatusCode.cs +0 -16
  205. package/Runtime/XDGUserStatusCode.cs.meta +0 -11
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: e7e5e81c66cfd4d0ab0b2f51f07880b5
2
+ guid: 3fb7e7b9b8ed449d8382477b70b810a1
3
3
  PluginImporter:
4
4
  externalObjects: {}
5
5
  serializedVersion: 2
@@ -7,7 +7,7 @@ PluginImporter:
7
7
  executionOrder: {}
8
8
  defineConstraints: []
9
9
  isPreloaded: 0
10
- isOverridable: 0
10
+ isOverridable: 1
11
11
  isExplicitlyReferenced: 0
12
12
  validateReferences: 1
13
13
  platformData:
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: e25783246c0d43df925f38764dc8d334
2
+ guid: c384e2e57d3c54ea79502c23b2a03280
3
3
  PluginImporter:
4
4
  externalObjects: {}
5
5
  serializedVersion: 2
@@ -7,7 +7,7 @@ PluginImporter:
7
7
  executionOrder: {}
8
8
  defineConstraints: []
9
9
  isPreloaded: 0
10
- isOverridable: 0
10
+ isOverridable: 1
11
11
  isExplicitlyReferenced: 0
12
12
  validateReferences: 1
13
13
  platformData:
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 51946fca756346f3a1c2248afd79784c
2
+ guid: 7620e2432939c4e67a4ffb7db19d1322
3
3
  PluginImporter:
4
4
  externalObjects: {}
5
5
  serializedVersion: 2
@@ -7,7 +7,7 @@ PluginImporter:
7
7
  executionOrder: {}
8
8
  defineConstraints: []
9
9
  isPreloaded: 0
10
- isOverridable: 0
10
+ isOverridable: 1
11
11
  isExplicitlyReferenced: 0
12
12
  validateReferences: 1
13
13
  platformData:
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 4d0ec27cc3eb7411cb336466974f93a0
2
+ guid: 0e8d623d5ea147b3807cebee8455ab6a
3
3
  folderAsset: yes
4
4
  DefaultImporter:
5
5
  externalObjects: {}
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 0c4c7c038b00649f4a00573276914e57
2
+ guid: 58732c81d2494ed99ea8503943c66921
3
3
  folderAsset: yes
4
4
  DefaultImporter:
5
5
  externalObjects: {}
@@ -16,14 +16,6 @@ typedef void(^TDSGlobalAuthCancelCallback)(void);
16
16
  typedef void(^TDSGlobalAuthWatingCallback)(void);
17
17
  typedef void(^TDSGlobalAuthErrorCallback)(NSError *_Nullable error);
18
18
 
19
- typedef NS_ENUM(NSInteger,TDSGlobalAuthErrorCode) {
20
- TDSGlobalAuthErrorCodeNormalFail = 0x3001, // fail
21
- TDSGlobalAuthErrorCodeNetworkOffline = 0x3002, // no network
22
- TDSGlobalAuthErrorCodeUserCancel = 0x3003, // cancel
23
- TDSGlobalAuthErrorCodeNotSupport = 0x3004, // not support
24
-
25
- };
26
-
27
19
  // 后台登录方式枚举
28
20
  typedef NS_ENUM(NSInteger,XDGLoginInfoType) {
29
21
  XDGLoginInfoTypeGuest = 0,
@@ -57,6 +49,8 @@ fromViewController:(nullable UIViewController *)viewController
57
49
  + (void)errorCallback:(TDSGlobalAuthErrorCallback)errorCallback error:(NSError *)error cancelCallback:(TDSGlobalAuthCancelCallback)cancelCallback;
58
50
 
59
51
  + (void)cancelCallback:(TDSGlobalAuthCancelCallback)cancelCallback;
52
+
53
+ + (void)phoneAuth:(UIViewController *)viewController permissions:(NSArray *)permissions complete:(void (^_Nullable)(NSDictionary *_Nullable resultDic, NSArray *permissions))complete;
60
54
  @end
61
55
 
62
56
  NS_ASSUME_NONNULL_END
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 6ed90a9641e2549d78e6663a8401bd60
2
+ guid: c3ff48982b5642a1b5a23d26a374a265
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -0,0 +1,329 @@
1
+ #if 0
2
+ #elif defined(__arm64__) && __arm64__
3
+ // Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
4
+ #ifndef XDACCOUNTSDK_SWIFT_H
5
+ #define XDACCOUNTSDK_SWIFT_H
6
+ #pragma clang diagnostic push
7
+ #pragma clang diagnostic ignored "-Wgcc-compat"
8
+
9
+ #if !defined(__has_include)
10
+ # define __has_include(x) 0
11
+ #endif
12
+ #if !defined(__has_attribute)
13
+ # define __has_attribute(x) 0
14
+ #endif
15
+ #if !defined(__has_feature)
16
+ # define __has_feature(x) 0
17
+ #endif
18
+ #if !defined(__has_warning)
19
+ # define __has_warning(x) 0
20
+ #endif
21
+
22
+ #if __has_include(<swift/objc-prologue.h>)
23
+ # include <swift/objc-prologue.h>
24
+ #endif
25
+
26
+ #pragma clang diagnostic ignored "-Wauto-import"
27
+ #if defined(__OBJC__)
28
+ #include <Foundation/Foundation.h>
29
+ #endif
30
+ #if defined(__cplusplus)
31
+ #include <cstdint>
32
+ #include <cstddef>
33
+ #include <cstdbool>
34
+ #include <cstring>
35
+ #include <stdlib.h>
36
+ #include <new>
37
+ #include <type_traits>
38
+ #else
39
+ #include <stdint.h>
40
+ #include <stddef.h>
41
+ #include <stdbool.h>
42
+ #include <string.h>
43
+ #endif
44
+ #if defined(__cplusplus)
45
+ #pragma clang diagnostic push
46
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
47
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
48
+ # include <ptrauth.h>
49
+ #else
50
+ #pragma clang diagnostic push
51
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
52
+ # ifndef __ptrauth_swift_value_witness_function_pointer
53
+ # define __ptrauth_swift_value_witness_function_pointer(x)
54
+ # endif
55
+ # ifndef __ptrauth_swift_class_method_pointer
56
+ # define __ptrauth_swift_class_method_pointer(x)
57
+ # endif
58
+ #pragma clang diagnostic pop
59
+ #endif
60
+ #pragma clang diagnostic pop
61
+ #endif
62
+
63
+ #if !defined(SWIFT_TYPEDEFS)
64
+ # define SWIFT_TYPEDEFS 1
65
+ # if __has_include(<uchar.h>)
66
+ # include <uchar.h>
67
+ # elif !defined(__cplusplus)
68
+ typedef uint_least16_t char16_t;
69
+ typedef uint_least32_t char32_t;
70
+ # endif
71
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
72
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
73
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
74
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
75
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
76
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
77
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
78
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
79
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
80
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
81
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
82
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
83
+ #endif
84
+
85
+ #if !defined(SWIFT_PASTE)
86
+ # define SWIFT_PASTE_HELPER(x, y) x##y
87
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
88
+ #endif
89
+ #if !defined(SWIFT_METATYPE)
90
+ # define SWIFT_METATYPE(X) Class
91
+ #endif
92
+ #if !defined(SWIFT_CLASS_PROPERTY)
93
+ # if __has_feature(objc_class_property)
94
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
95
+ # else
96
+ # define SWIFT_CLASS_PROPERTY(...)
97
+ # endif
98
+ #endif
99
+ #if !defined(SWIFT_RUNTIME_NAME)
100
+ # if __has_attribute(objc_runtime_name)
101
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
102
+ # else
103
+ # define SWIFT_RUNTIME_NAME(X)
104
+ # endif
105
+ #endif
106
+ #if !defined(SWIFT_COMPILE_NAME)
107
+ # if __has_attribute(swift_name)
108
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
109
+ # else
110
+ # define SWIFT_COMPILE_NAME(X)
111
+ # endif
112
+ #endif
113
+ #if !defined(SWIFT_METHOD_FAMILY)
114
+ # if __has_attribute(objc_method_family)
115
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
116
+ # else
117
+ # define SWIFT_METHOD_FAMILY(X)
118
+ # endif
119
+ #endif
120
+ #if !defined(SWIFT_NOESCAPE)
121
+ # if __has_attribute(noescape)
122
+ # define SWIFT_NOESCAPE __attribute__((noescape))
123
+ # else
124
+ # define SWIFT_NOESCAPE
125
+ # endif
126
+ #endif
127
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
128
+ # if __has_attribute(ns_consumed)
129
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
130
+ # else
131
+ # define SWIFT_RELEASES_ARGUMENT
132
+ # endif
133
+ #endif
134
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
135
+ # if __has_attribute(warn_unused_result)
136
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
137
+ # else
138
+ # define SWIFT_WARN_UNUSED_RESULT
139
+ # endif
140
+ #endif
141
+ #if !defined(SWIFT_NORETURN)
142
+ # if __has_attribute(noreturn)
143
+ # define SWIFT_NORETURN __attribute__((noreturn))
144
+ # else
145
+ # define SWIFT_NORETURN
146
+ # endif
147
+ #endif
148
+ #if !defined(SWIFT_CLASS_EXTRA)
149
+ # define SWIFT_CLASS_EXTRA
150
+ #endif
151
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
152
+ # define SWIFT_PROTOCOL_EXTRA
153
+ #endif
154
+ #if !defined(SWIFT_ENUM_EXTRA)
155
+ # define SWIFT_ENUM_EXTRA
156
+ #endif
157
+ #if !defined(SWIFT_CLASS)
158
+ # if __has_attribute(objc_subclassing_restricted)
159
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
160
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
161
+ # else
162
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
163
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
164
+ # endif
165
+ #endif
166
+ #if !defined(SWIFT_RESILIENT_CLASS)
167
+ # if __has_attribute(objc_class_stub)
168
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
169
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
170
+ # else
171
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
172
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
173
+ # endif
174
+ #endif
175
+ #if !defined(SWIFT_PROTOCOL)
176
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
177
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
178
+ #endif
179
+ #if !defined(SWIFT_EXTENSION)
180
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
181
+ #endif
182
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
183
+ # if __has_attribute(objc_designated_initializer)
184
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
185
+ # else
186
+ # define OBJC_DESIGNATED_INITIALIZER
187
+ # endif
188
+ #endif
189
+ #if !defined(SWIFT_ENUM_ATTR)
190
+ # if __has_attribute(enum_extensibility)
191
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
192
+ # else
193
+ # define SWIFT_ENUM_ATTR(_extensibility)
194
+ # endif
195
+ #endif
196
+ #if !defined(SWIFT_ENUM)
197
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
198
+ # if __has_feature(generalized_swift_name)
199
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
200
+ # else
201
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
202
+ # endif
203
+ #endif
204
+ #if !defined(SWIFT_UNAVAILABLE)
205
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
206
+ #endif
207
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
208
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
209
+ #endif
210
+ #if !defined(SWIFT_AVAILABILITY)
211
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
212
+ #endif
213
+ #if !defined(SWIFT_WEAK_IMPORT)
214
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
215
+ #endif
216
+ #if !defined(SWIFT_DEPRECATED)
217
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
218
+ #endif
219
+ #if !defined(SWIFT_DEPRECATED_MSG)
220
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
221
+ #endif
222
+ #if !defined(SWIFT_DEPRECATED_OBJC)
223
+ # if __has_feature(attribute_diagnose_if_objc)
224
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
225
+ # else
226
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
227
+ # endif
228
+ #endif
229
+ #if defined(__OBJC__)
230
+ #if !defined(IBSegueAction)
231
+ # define IBSegueAction
232
+ #endif
233
+ #endif
234
+ #if !defined(SWIFT_EXTERN)
235
+ # if defined(__cplusplus)
236
+ # define SWIFT_EXTERN extern "C"
237
+ # else
238
+ # define SWIFT_EXTERN extern
239
+ # endif
240
+ #endif
241
+ #if !defined(SWIFT_CALL)
242
+ # define SWIFT_CALL __attribute__((swiftcall))
243
+ #endif
244
+ #if !defined(SWIFT_INDIRECT_RESULT)
245
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
246
+ #endif
247
+ #if !defined(SWIFT_CONTEXT)
248
+ # define SWIFT_CONTEXT __attribute__((swift_context))
249
+ #endif
250
+ #if !defined(SWIFT_ERROR_RESULT)
251
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
252
+ #endif
253
+ #if defined(__cplusplus)
254
+ # define SWIFT_NOEXCEPT noexcept
255
+ #else
256
+ # define SWIFT_NOEXCEPT
257
+ #endif
258
+ #if !defined(SWIFT_C_INLINE_THUNK)
259
+ # if __has_attribute(always_inline)
260
+ # if __has_attribute(nodebug)
261
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
262
+ # else
263
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
264
+ # endif
265
+ # else
266
+ # define SWIFT_C_INLINE_THUNK inline
267
+ # endif
268
+ #endif
269
+ #if defined(_WIN32)
270
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
271
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
272
+ #endif
273
+ #else
274
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
275
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
276
+ #endif
277
+ #endif
278
+ #if defined(__OBJC__)
279
+ #if __has_feature(objc_modules)
280
+ #if __has_warning("-Watimport-in-framework-header")
281
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
282
+ #endif
283
+ @import Foundation;
284
+ @import ObjectiveC;
285
+ #endif
286
+
287
+ #endif
288
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
289
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
290
+ #if __has_warning("-Wpragma-clang-attribute")
291
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
292
+ #endif
293
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
294
+ #pragma clang diagnostic ignored "-Wnullability"
295
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
296
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
297
+
298
+ #if __has_attribute(external_source_symbol)
299
+ # pragma push_macro("any")
300
+ # undef any
301
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="XDAccountSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
302
+ # pragma pop_macro("any")
303
+ #endif
304
+
305
+ #if defined(__OBJC__)
306
+ @class NSString;
307
+ @class UIViewController;
308
+ @class NSError;
309
+
310
+ SWIFT_CLASS("_TtC12XDAccountSDK11XDGTapLogin")
311
+ @interface XDGTapLogin : NSObject
312
+ + (BOOL)isWebLogin SWIFT_WARN_UNUSED_RESULT;
313
+ + (void)loginWithScopes:(NSArray<NSString *> * _Nonnull)scopes targetVC:(UIViewController * _Nullable)targetVC phoneVerifyToken:(NSString * _Nullable)phoneVerifyToken preferLoginType:(NSString * _Nullable)preferLoginType handler:(void (^ _Nonnull)(NSDictionary<NSString *, id> * _Nullable, NSError * _Nullable, BOOL))handler;
314
+ + (void)logout;
315
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
316
+ @end
317
+
318
+ #endif
319
+ #if __has_attribute(external_source_symbol)
320
+ # pragma clang attribute pop
321
+ #endif
322
+ #if defined(__cplusplus)
323
+ #endif
324
+ #pragma clang diagnostic pop
325
+ #endif
326
+
327
+ #else
328
+ #error unsupported Swift architecture
329
+ #endif
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 1bb822602cb8347ff8e430d5dd46a9e2
2
+ guid: 3c92792a8d534ed0aa097444ee3050a6
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -15,11 +15,10 @@ FOUNDATION_EXPORT const unsigned char XDAccountSDKVersionString[];
15
15
 
16
16
  // In this header, you should import all the public headers of your framework using statements like #import <XDAccountSDK/PublicHeader.h>
17
17
 
18
+ #import <XDAccountSDK/XDGAccountDefines.h>
18
19
  #import <XDAccountSDK/XDGAccount.h>
19
20
  #import <XDAccountSDK/TDSGlobalThirdPartyLoginHelper.h>
20
21
  #import <XDAccountSDK/XDGLoginEntriesConfig.h>
21
- #import <XDAccountSDK/XDGLoginService.h>
22
22
  #import <XDAccountSDK/XDGAccountVersion.h>
23
23
  #import <XDAccountSDK/XDGLogger+Account.h>
24
- #import <XDAccountSDK/XDGRoleInfo.h>
25
24
  #import <XDAccountSDK/XDGTapLoginPermissionDialog.h>
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 23a5d806a1a41467d8688c786e001066
2
+ guid: 82e2634b272b4fe68ca96e19975720cc
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -1,72 +1,58 @@
1
1
 
2
2
  #import <Foundation/Foundation.h>
3
- #import <XDCommonSDK/XDCommonSDK.h>
3
+ #import <XDAccountSDK/XDGAccountDefines.h>
4
4
  #import <XDAccountSDK/XDGLoginEntriesConfig.h>
5
- #import <XDAccountSDK/XDGRoleInfo.h>
6
5
 
7
- NS_ASSUME_NONNULL_BEGIN
8
-
9
- typedef NS_ENUM(NSInteger,XDGUserStateChangeCode) {
10
- XDGUserStateChangeCodeLogout = 0x9001, // user logout
11
- XDGUserStateChangeCodeBindSuccess = 0x1001, // user bind success,msg = entry type in string,eg: @"TAPTAP"
12
- XDGUserStateChangeCodeUnBindSuccess = 0x1002, // user unbind success,msg = entry type in string
13
- XDGUserStateChangeCodeProtocolAgreedAfterLogout = 0x2001, // user clicked confirm in agreement dialog showed after logout
14
- };
15
-
16
- /**
17
- Describes the call back to the TDSGlobalLoginManager
18
- @param result the result of the login request
19
- @param error error, if any.
20
- */
21
- typedef void (^XDGLoginManagerRequestCallback)(XDGUser * _Nullable result, NSError * _Nullable error);
22
-
23
- typedef void (^XDGBindManagerRequestCallback)(BOOL success, NSError *_Nullable error);
24
-
25
- typedef void(^XDGLoginSyncCallback)(NSDictionary * _Nullable result,NSError * _Nullable error);
6
+ #import <XDCommonSDK/XDGRoleInfo.h>
26
7
 
27
- /**
28
- Describes the call back of state of current user
29
- @param userStateChangeCode user state change type code.
30
- */
31
- typedef void (^XDGUserStatusChangeCallback)(XDGUserStateChangeCode userStateChangeCode,NSString *_Nullable message);
8
+ NS_ASSUME_NONNULL_BEGIN
32
9
 
33
10
  @interface XDGAccount : NSObject
34
11
 
35
- /// Get callback when user state changed
36
- /// @param handler handler
12
+ /// 登录前设置用户状态变更回调
13
+ /// @param handler 回调处理器
37
14
  + (void)addUserStatusChangeCallback:(XDGUserStatusChangeCallback)handler;
38
15
 
39
16
  /**
40
- You can customize login buttons in your own ways,and call this methods to login an user.
41
- Steps:
42
- 1. use LoginEntryTypeDefault ,check if there was an user logged last time,you will get a result.
43
- 2. if step 1 failed, show login buttons ,and call with corresponding type when user tapped.
17
+ 你可以自定义登录按钮的展示方式,并调用此方法来登录用户。
18
+ 步骤:
19
+ 1. 使用 LoginEntryTypeDefault 检查是否有上次登录的用户
20
+ 2. 如果步骤1失败,显示登录按钮,当用户点击时调用对应类型的登录
44
21
  */
22
+ /// 开始登录
23
+ /// @param loginType 登录类型
24
+ /// @param handler 回调处理器
45
25
  + (void)loginByType:(LoginEntryType)loginType loginHandler:(XDGLoginManagerRequestCallback)handler;
46
26
 
47
- /// Open login Window
48
- /// @param config login entried config
49
- /// @param handler login result handler
50
- + (void)loginWithConfig:(XDGLoginEntriesConfig *)config handler:(XDGLoginManagerRequestCallback)handler;
51
-
52
27
  /// 登出账号
53
28
  + (void)logout;
54
29
 
55
- /// 获取当前 User
56
- /// - Parameter handler: 回调
57
- + (void)getUser:(XDGLoginManagerRequestCallback)handler;
30
+ /// 获取当前用户
31
+ + (XDGUser *_Nullable)getCurrentUser;
58
32
 
59
33
  /// 打开用户中心
60
34
  + (void)openUserCenter;
61
35
 
62
36
  /// 打开个人信息页
63
37
  /// @param roleInfo 角色信息
64
- + (void)openUserDashboardWithInfo:(XDGRoleInfo *_Nullable)roleInfo;
38
+ + (void)openUserDashboard:(XDGRoleInfo *_Nullable)roleInfo;
39
+
40
+ /// 打开客服中心
41
+ /// @param roleInfo 角色信息
42
+ /// @param path 客服路径
43
+ /// @param params 客服参数
44
+ + (void)openCustomerService:(XDGRoleInfo *_Nullable)roleInfo
45
+ path:(NSString *_Nullable)path
46
+ params:(NSDictionary *_Nullable)params ;
65
47
 
66
48
  /// 打开注销页面
67
- + (void)accountCancellation;
49
+ + (void)openAccountDeletion;
68
50
 
69
- + (void)bindByType:(LoginEntryType)bindType bindHandler:(XDGBindManagerRequestCallback)handler;
51
+ #pragma mark - Deprecated
52
+ /// 绑定账号
53
+ /// @param bindType 绑定类型
54
+ /// @param handler 绑定结果回调
55
+ + (void)bindByType:(LoginEntryType)bindType bindHandler:(XDGBindManagerRequestCallback)handler DEPRECATED_MSG_ATTRIBUTE("未来可能会废弃,使用该接口请和平台同事确认需求");
70
56
 
71
57
  + (BOOL)isTokenActiveWithType:(LoginEntryType)type;
72
58
 
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 8f0ddc09bb0ed4c07abec2671cc0897a
2
+ guid: 61a2d866f57e4a189bd4452d51cf3361
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -0,0 +1,43 @@
1
+ //
2
+ // XDGAccountDefines.h
3
+ // XDAccountSDK
4
+ //
5
+ // Created by Fattycat on 2025/3/28.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <XDCommonSDK/XDGUser.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ typedef NS_ENUM(NSInteger, XDGUserStateChangeCode) {
14
+ XDGUserStateChangeCodeLogout = 0x9001, // 用户登出
15
+ XDGUserStateChangeCodeBindSuccess = 0x1001, // 用户绑定成功,msg = 登录类型字符串,例如:@"TAPTAP"
16
+ XDGUserStateChangeCodeUnBindSuccess = 0x1002, // 用户解绑成功,msg = 登录类型字符串
17
+ XDGUserStateChangeCodeProtocolAgreedAfterLogout = 0x2001, // 用户在登出后点击确认同意协议
18
+ XDGUserStateChangeCodeSupportNoUnread = 4, // 客服中心没有未读消息
19
+ XDGUserStateChangeCodeSupportHasUnread = 5, // 客服中心有未读消息
20
+ };
21
+
22
+ /**
23
+ 登录回调
24
+ @param result 登录请求的结果
25
+ @param error 错误信息(如果有)
26
+ */
27
+ typedef void (^XDGLoginManagerRequestCallback)(XDGUser *_Nullable result, NSError *_Nullable error);
28
+
29
+ typedef void (^XDGBindManagerRequestCallback)(BOOL success, NSError *_Nullable error);
30
+
31
+ typedef void (^XDGLoginSyncCallback)(NSDictionary *_Nullable result, NSError *_Nullable error);
32
+
33
+ /**
34
+ 当前用户状态变更回调
35
+ @param userStateChangeCode 用户状态变更类型代码
36
+ */
37
+ typedef void (^XDGUserStatusChangeCallback)(XDGUserStateChangeCode userStateChangeCode, NSString *_Nullable message);
38
+
39
+ @interface XDGAccountDefines : NSObject
40
+
41
+ @end
42
+
43
+ NS_ASSUME_NONNULL_END
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 1b56ec2f7235a477091deeccf435ebd8
2
+ guid: 22b3de97a42d4ca69d82fe8e646f9761
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -4,6 +4,6 @@
4
4
  //
5
5
  // Created by Fattycat on 2023/4/14.
6
6
  //
7
- #define XDGAccount_VERSION @"6.29.0"
8
- #define XDSAccount_VERSION_CODE @"6029000"
9
- // HASH 702c456
7
+ #define XDGAccount_VERSION @"7.0.0"
8
+ #define XDSAccount_VERSION_CODE @"7000000"
9
+ // HASH 7e458e32
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 0cf9f8f5f8e554b0a99f46c48342724c
2
+ guid: 1bf10976c0fb4ac8b42a25c4831525d1
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -16,6 +16,9 @@ NS_ASSUME_NONNULL_BEGIN
16
16
 
17
17
  + (void)accountSecureLog:(NSString *)content;
18
18
 
19
+ + (void)accountTapLog:(NSString *)content;
20
+
21
+ + (void)accountTapLog:(NSString *)content secureContent:(NSString *_Nullable)secureContent;
19
22
  @end
20
23
 
21
24
  NS_ASSUME_NONNULL_END
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 8306ecd1e9f5645b98663bf5e2f1b795
2
+ guid: a9e0715844bb4d859b343e2217e42899
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: df5ca10ce26184d51a4575632d5b3a79
2
+ guid: 21aa11dfed624de3bc164a7773b9c965
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData: