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.
- package/Plugins/Android/libs/XDGAccount_7.0.0.aar +0 -0
- package/{Mobile/Plugins/Android/com/xd/account/bridge/XDGAccountBridge.java.meta → Plugins/Android/libs/XDGAccount_7.0.0.aar.meta} +2 -2
- package/Plugins/Android/libs/XDGBridgeAccount_v7_7.0.0.aar +0 -0
- package/{Mobile/Plugins/Android/com/xd/account/bridge/XDGLoginServiceUnity.java.meta → Plugins/Android/libs/XDGBridgeAccount_v7_7.0.0.aar.meta} +2 -2
- package/Plugins/Android/libs/XDGSupport_7.0.0.aar +0 -0
- package/{Mobile/Plugins/Android/com/xd/account/bridge/XDGLoginServiceUnityImpl.java.meta → Plugins/Android/libs/XDGSupport_7.0.0.aar.meta} +2 -2
- package/Plugins/Android/libs.meta +1 -1
- package/Plugins/Android.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Headers/TDSGlobalThirdPartyLoginHelper.h +2 -8
- package/Plugins/iOS/XDAccountSDK.framework/Headers/TDSGlobalThirdPartyLoginHelper.h.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDAccountSDK-Swift.h +329 -0
- package/Plugins/iOS/XDAccountSDK.framework/Headers/{TDSGlobalThirdPartyLoginManager.h.meta → XDAccountSDK-Swift.h.meta} +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDAccountSDK.h +1 -2
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDAccountSDK.h.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGAccount.h +29 -43
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGAccount.h.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGAccountDefines.h +43 -0
- package/Plugins/iOS/XDAccountSDK.framework/Headers/{XDGPhoneAuthManager.h.meta → XDGAccountDefines.h.meta} +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGAccountVersion.h +3 -3
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGAccountVersion.h.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGLogger+Account.h +3 -0
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGLogger+Account.h.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGLoginEntriesConfig.h.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGLoginService.h.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGTapLoginPermissionDialog.h.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Headers.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Info.plist +0 -0
- package/Plugins/iOS/XDAccountSDK.framework/Info.plist.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/Plugins/iOS/XDAccountSDK.framework/{Headers/XDGRoleInfo.h.meta → Modules/XDAccountSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo.meta} +1 -1
- package/{Mobile/Http.meta → Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/Project.meta} +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.abi.json +9 -0
- package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.abi.json.meta +7 -0
- package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.swiftdoc.meta +7 -0
- package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule/arm64-apple-ios.swiftmodule.meta +7 -0
- package/{Mobile/Editor.meta → Plugins/iOS/XDAccountSDK.framework/Modules/XDAccountSDK.swiftmodule.meta} +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Modules/module.modulemap.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/Modules.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework/XDAccountSDK +0 -0
- package/Plugins/iOS/XDAccountSDK.framework/XDAccountSDK.meta +1 -1
- package/Plugins/iOS/XDAccountSDK.framework.meta +4 -4
- package/Plugins/iOS.meta +1 -1
- package/Plugins.meta +1 -1
- package/Runtime/Internal/IXDGAccount.Extended.cs +11 -0
- package/{Mobile/Http/XDGAccountHttpConfigMobile.cs.meta → Runtime/Internal/IXDGAccount.Extended.cs.meta} +1 -1
- package/Runtime/Internal/Mobile/AccountFeaturesImpl.cs +348 -0
- package/{Mobile/User/UserManagerMobile.cs.meta → Runtime/Internal/Mobile/AccountFeaturesImpl.cs.meta} +1 -1
- package/Runtime/Internal/Mobile/Http/LoginSyncResponse.cs +14 -0
- package/Runtime/Internal/Mobile/Http/LoginSyncResponse.cs.meta +3 -0
- package/Runtime/Internal/Mobile/Http/MacAuthenticationInterceptor.cs +37 -0
- package/Runtime/Internal/Mobile/Http/MacAuthenticationInterceptor.cs.meta +3 -0
- package/Runtime/Internal/Mobile/Http.meta +3 -0
- package/{Mobile.meta → Runtime/Internal/Mobile.meta} +1 -1
- package/Runtime/Internal/Standalone/AccessToken/AccessTokenModule.cs +168 -0
- package/{Mobile/Editor/XDAccountMobileProcessBuild.cs.meta → Runtime/Internal/Standalone/AccessToken/AccessTokenModule.cs.meta} +1 -1
- package/Runtime/Internal/Standalone/AccessToken.meta +8 -0
- package/Runtime/Internal/Standalone/AccountCell.cs +143 -0
- package/{Mobile/XDGAccountMobile.cs.meta → Runtime/Internal/Standalone/AccountCell.cs.meta} +1 -1
- package/Runtime/Internal/Standalone/AccountFeaturesImpl.cs +461 -0
- package/Runtime/Internal/Standalone/AccountFeaturesImpl.cs.meta +11 -0
- package/Runtime/Internal/Standalone/Auth/AppleAuth.cs +27 -0
- package/Runtime/Internal/Standalone/Auth/AppleAuth.cs.meta +11 -0
- package/Runtime/Internal/Standalone/Auth/FacebookAuth.cs +27 -0
- package/Runtime/Internal/Standalone/Auth/FacebookAuth.cs.meta +11 -0
- package/Runtime/Internal/Standalone/Auth/GoogleAuth.cs +27 -0
- package/Runtime/Internal/Standalone/Auth/GoogleAuth.cs.meta +11 -0
- package/Runtime/Internal/Standalone/Auth/GuestAuth.cs +22 -0
- package/Runtime/Internal/Standalone/Auth/GuestAuth.cs.meta +11 -0
- package/Runtime/Internal/Standalone/Auth/PhoneAuth.cs +43 -0
- package/Runtime/Internal/Standalone/Auth/PhoneAuth.cs.meta +11 -0
- package/Runtime/Internal/Standalone/Auth/SteamAuth.cs +90 -0
- package/Runtime/Internal/Standalone/Auth/SteamAuth.cs.meta +11 -0
- package/Runtime/Internal/Standalone/Auth/TapAuth.cs +72 -0
- package/Runtime/Internal/Standalone/Auth/TapAuth.cs.meta +11 -0
- package/Runtime/Internal/Standalone/Auth/WebAuth.cs +144 -0
- package/Runtime/Internal/Standalone/Auth/WebAuth.cs.meta +11 -0
- package/Runtime/Internal/Standalone/Auth.meta +8 -0
- package/Runtime/Internal/Standalone/Compliance/XDComplianceCode.cs +15 -0
- package/Runtime/Internal/Standalone/Compliance/XDComplianceCode.cs.meta +11 -0
- package/Runtime/Internal/Standalone/Compliance.meta +8 -0
- package/Runtime/Internal/Standalone/LoginModule/Email/EmailModule.cs +374 -0
- package/Runtime/Internal/Standalone/LoginModule/Email/EmailModule.cs.meta +11 -0
- package/Runtime/Internal/Standalone/LoginModule/Email.meta +8 -0
- package/Runtime/Internal/Standalone/LoginModule/Phone/PhoneModule.cs +245 -0
- package/Runtime/Internal/Standalone/LoginModule/Phone/PhoneModule.cs.meta +11 -0
- package/Runtime/Internal/Standalone/LoginModule/Phone/PhoneModuleIO.cs +392 -0
- package/Runtime/Internal/Standalone/LoginModule/Phone/PhoneModuleIO.cs.meta +11 -0
- package/Runtime/Internal/Standalone/LoginModule/Phone.meta +8 -0
- package/Runtime/Internal/Standalone/LoginModule.meta +8 -0
- package/Runtime/Internal/Standalone/SupportModule/SupportModule.cs +228 -0
- package/Runtime/Internal/Standalone/SupportModule/SupportModule.cs.meta +3 -0
- package/Runtime/Internal/Standalone/SupportModule/SupportResponse.cs +27 -0
- package/Runtime/Internal/Standalone/SupportModule/SupportResponse.cs.meta +3 -0
- package/Runtime/Internal/Standalone/SupportModule.meta +3 -0
- package/Runtime/Internal/Standalone/Track/AliyunTrack.Login.cs +479 -0
- package/Runtime/Internal/Standalone/Track/AliyunTrack.Login.cs.meta +11 -0
- package/Runtime/Internal/Standalone/Track.meta +8 -0
- package/Runtime/Internal/Standalone/UI/CodeUnbindAlert.cs +156 -0
- package/Runtime/Internal/Standalone/UI/CodeUnbindAlert.cs.meta +11 -0
- package/Runtime/Internal/Standalone/UI/Email/EmailAlert.cs +295 -0
- package/Runtime/Internal/Standalone/UI/Email/EmailAlert.cs.meta +11 -0
- package/Runtime/Internal/Standalone/UI/Email.meta +8 -0
- package/Runtime/Internal/Standalone/UI/PhoneIO/AreaCodeCell.cs +46 -0
- package/Runtime/Internal/Standalone/UI/PhoneIO/AreaCodeCell.cs.meta +11 -0
- package/Runtime/Internal/Standalone/UI/PhoneIO/PhoneAlertIO.cs +522 -0
- package/Runtime/Internal/Standalone/UI/PhoneIO/PhoneAlertIO.cs.meta +11 -0
- package/Runtime/Internal/Standalone/UI/PhoneIO.meta +8 -0
- package/Runtime/Internal/Standalone/UI/PhoneVerification/PhoneNumberInputAlert.cs +84 -0
- package/Runtime/Internal/Standalone/UI/PhoneVerification/PhoneNumberInputAlert.cs.meta +11 -0
- package/Runtime/Internal/Standalone/UI/PhoneVerification/RiskControlAlert.cs +190 -0
- package/Runtime/Internal/Standalone/UI/PhoneVerification/RiskControlAlert.cs.meta +11 -0
- package/Runtime/Internal/Standalone/UI/PhoneVerification/VerifyCodeInputAlert.cs +164 -0
- package/Runtime/Internal/Standalone/UI/PhoneVerification/VerifyCodeInputAlert.cs.meta +11 -0
- package/Runtime/Internal/Standalone/UI/PhoneVerification.meta +8 -0
- package/Runtime/Internal/Standalone/UI.meta +8 -0
- package/Runtime/Internal/Standalone/UserCenterAlert.cs +405 -0
- package/Runtime/Internal/Standalone/UserCenterAlert.cs.meta +11 -0
- package/Runtime/Internal/Standalone/UserModule.cs +604 -0
- package/Runtime/Internal/Standalone/UserModule.cs.meta +11 -0
- package/Runtime/Internal/Standalone/WebFunction/AccessTokenWebFunction.cs +47 -0
- package/Runtime/Internal/Standalone/WebFunction/AccessTokenWebFunction.cs.meta +3 -0
- package/Runtime/Internal/Standalone/WebFunction.meta +3 -0
- package/{Mobile/Plugins.meta → Runtime/Internal/Standalone.meta} +1 -1
- package/Runtime/Internal/XDGAccountEventHandler.cs +23 -0
- package/Runtime/Internal/XDGAccountEventHandler.cs.meta +3 -0
- package/Runtime/Internal/XDGAccountInternal.cs +86 -0
- package/Runtime/Internal/XDGAccountInternal.cs.meta +11 -0
- package/Runtime/Internal.meta +1 -1
- package/Runtime/Public/XDGAccount.Deprecated.cs +37 -0
- package/Runtime/Public/XDGAccount.Deprecated.cs.meta +11 -0
- package/Runtime/Public/XDGAccount.cs +107 -0
- package/Runtime/{XDGAccount.cs.meta → Public/XDGAccount.cs.meta} +1 -1
- package/Runtime/Public.meta +8 -0
- package/Runtime/XD.SDK.Account.asmdef +7 -2
- package/Runtime/XD.SDK.Account.asmdef.meta +1 -1
- package/Runtime.meta +1 -1
- package/package.json +5 -5
- package/package.json.meta +2 -2
- package/Mobile/Editor/XD.SDK.Account.Mobile.Editor.asmdef +0 -20
- package/Mobile/Editor/XD.SDK.Account.Mobile.Editor.asmdef.meta +0 -7
- package/Mobile/Editor/XDAccountMobileProcessBuild.cs +0 -20
- package/Mobile/Http/XDGAccountHttpConfigMobile.cs +0 -36
- package/Mobile/Plugins/Android/com/xd/account/bridge/XDGAccountBridge.java +0 -36
- package/Mobile/Plugins/Android/com/xd/account/bridge/XDGLoginServiceUnity.java +0 -16
- package/Mobile/Plugins/Android/com/xd/account/bridge/XDGLoginServiceUnityImpl.java +0 -20
- package/Mobile/Plugins/Android/com/xd/account/bridge.meta +0 -8
- package/Mobile/Plugins/Android/com/xd/account.meta +0 -8
- package/Mobile/Plugins/Android/com/xd.meta +0 -8
- package/Mobile/Plugins/Android/com.meta +0 -8
- package/Mobile/Plugins/Android.meta +0 -8
- package/Mobile/Plugins/iOS/XDAccountBridge.m +0 -29
- package/Mobile/Plugins/iOS/XDAccountBridge.m.meta +0 -37
- package/Mobile/Plugins/iOS/XDGLoginServiceUnity.h +0 -17
- package/Mobile/Plugins/iOS/XDGLoginServiceUnity.h.meta +0 -27
- package/Mobile/Plugins/iOS/XDGLoginServiceUnity.m +0 -23
- package/Mobile/Plugins/iOS/XDGLoginServiceUnity.m.meta +0 -37
- package/Mobile/Plugins/iOS.meta +0 -8
- package/Mobile/User/UserManagerMobile.cs +0 -45
- package/Mobile/User.meta +0 -8
- package/Mobile/XD.SDK.Account.Mobile.asmdef +0 -23
- package/Mobile/XD.SDK.Account.Mobile.asmdef.meta +0 -7
- package/Mobile/XDGAccountMobile.cs +0 -138
- package/Mobile/XDGAccountMobileImpl.cs +0 -444
- package/Mobile/XDGAccountMobileImpl.cs.meta +0 -11
- package/Mobile/XDGTokenManager.cs +0 -116
- package/Mobile/XDGTokenManager.cs.meta +0 -11
- package/Mobile/XDGUserWrapper.cs +0 -167
- package/Mobile/XDGUserWrapper.cs.meta +0 -11
- package/Plugins/Android/libs/XDGAccount_6.29.1.aar +0 -0
- package/Plugins/Android/libs/XDGAccount_6.29.1.aar.meta +0 -32
- package/Plugins/iOS/XDAccountSDK.framework/Headers/TDSGlobalThirdPartyLoginManager.h +0 -47
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGPhoneAuthManager.h +0 -33
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGRoleInfo.h +0 -22
- package/README.md +0 -0
- package/README.md.meta +0 -7
- package/Runtime/Editor/XD.SDK.Account.Editor.asmdef +0 -19
- package/Runtime/Editor/XD.SDK.Account.Editor.asmdef.meta +0 -7
- package/Runtime/Editor/XDAccountProcessBuild.cs +0 -18
- package/Runtime/Editor/XDAccountProcessBuild.cs.meta +0 -11
- package/Runtime/Editor.meta +0 -8
- package/Runtime/IXDGAccount.cs +0 -44
- package/Runtime/IXDGAccount.cs.meta +0 -11
- package/Runtime/Internal/Http/IXDAccountHttpConfig.cs +0 -9
- package/Runtime/Internal/Http/IXDAccountHttpConfig.cs.meta +0 -11
- package/Runtime/Internal/Http/XDAccountHttpConfig.cs +0 -32
- package/Runtime/Internal/Http/XDAccountHttpConfig.cs.meta +0 -11
- package/Runtime/Internal/Http.meta +0 -8
- package/Runtime/Internal/User/IUserManagerPlatformWrapper.cs +0 -7
- package/Runtime/Internal/User/IUserManagerPlatformWrapper.cs.meta +0 -11
- package/Runtime/Internal/User.meta +0 -8
- package/Runtime/UserManager.cs +0 -35
- package/Runtime/UserManager.cs.meta +0 -11
- package/Runtime/XDGAccessToken.cs +0 -18
- package/Runtime/XDGAccessToken.cs.meta +0 -11
- package/Runtime/XDGAccount.cs +0 -130
- package/Runtime/XDGLoginType.cs +0 -17
- package/Runtime/XDGLoginType.cs.meta +0 -11
- package/Runtime/XDGRoleInfo.cs +0 -24
- package/Runtime/XDGRoleInfo.cs.meta +0 -11
- package/Runtime/XDGUser.cs +0 -30
- package/Runtime/XDGUser.cs.meta +0 -11
- package/Runtime/XDGUserStatusCode.cs +0 -16
- package/Runtime/XDGUserStatusCode.cs.meta +0 -11
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
fileFormatVersion: 2
|
|
2
|
-
guid:
|
|
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:
|
|
10
|
+
isOverridable: 1
|
|
11
11
|
isExplicitlyReferenced: 0
|
|
12
12
|
validateReferences: 1
|
|
13
13
|
platformData:
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
fileFormatVersion: 2
|
|
2
|
-
guid:
|
|
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:
|
|
10
|
+
isOverridable: 1
|
|
11
11
|
isExplicitlyReferenced: 0
|
|
12
12
|
validateReferences: 1
|
|
13
13
|
platformData:
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
fileFormatVersion: 2
|
|
2
|
-
guid:
|
|
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:
|
|
10
|
+
isOverridable: 1
|
|
11
11
|
isExplicitlyReferenced: 0
|
|
12
12
|
validateReferences: 1
|
|
13
13
|
platformData:
|
package/Plugins/Android.meta
CHANGED
|
@@ -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
|
|
@@ -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
|
|
@@ -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,72 +1,58 @@
|
|
|
1
1
|
|
|
2
2
|
#import <Foundation/Foundation.h>
|
|
3
|
-
#import <
|
|
3
|
+
#import <XDAccountSDK/XDGAccountDefines.h>
|
|
4
4
|
#import <XDAccountSDK/XDGLoginEntriesConfig.h>
|
|
5
|
-
#import <XDAccountSDK/XDGRoleInfo.h>
|
|
6
5
|
|
|
7
|
-
|
|
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
|
-
///
|
|
36
|
-
/// @param handler
|
|
12
|
+
/// 登录前设置用户状态变更回调
|
|
13
|
+
/// @param handler 回调处理器
|
|
37
14
|
+ (void)addUserStatusChangeCallback:(XDGUserStatusChangeCallback)handler;
|
|
38
15
|
|
|
39
16
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
1.
|
|
43
|
-
2.
|
|
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
|
-
///
|
|
56
|
-
|
|
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)
|
|
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)
|
|
49
|
+
+ (void)openAccountDeletion;
|
|
68
50
|
|
|
69
|
-
|
|
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
|
|
|
@@ -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
|
|
@@ -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
|