com.xd.sdk.account 6.31.6 → 6.32.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/Mobile/Plugins/iOS/XDAccountBridge.m +2 -2
- package/Plugins/Android/libs/XDGAccount_6.32.0.aar +0 -0
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGAccountVersion.h +3 -3
- package/Plugins/iOS/XDAccountSDK.framework/Info.plist +0 -0
- package/Plugins/iOS/XDAccountSDK.framework/XDAccountSDK +0 -0
- package/package.json +1 -1
- package/Plugins/Android/libs/XDGAccount_6.31.1.aar +0 -0
- package/Plugins/iOS/XDAccountSDK.framework/Headers/TDSGlobalThirdPartyLoginManager.h +0 -47
- package/Plugins/iOS/XDAccountSDK.framework/Headers/TDSGlobalThirdPartyLoginManager.h.meta +0 -7
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGPhoneAuthManager.h +0 -33
- package/Plugins/iOS/XDAccountSDK.framework/Headers/XDGPhoneAuthManager.h.meta +0 -7
- /package/Plugins/Android/libs/{XDGAccount_6.31.1.aar.meta → XDGAccount_6.32.0.aar.meta} +0 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
#import <XDCommonSDK/XDGUser.h>
|
|
11
11
|
#import <XDAccountSDK/XDGLoginService.h>
|
|
12
12
|
#import <XDAccountSDK/XDGAccount.h>
|
|
13
|
-
#import <XDCommonSDK/NSDictionary+
|
|
13
|
+
#import <XDCommonSDK/NSDictionary+XDG.h>
|
|
14
14
|
|
|
15
15
|
const char* XDAccountBridgeGetAuthorization(const char* url, const char* method, long timestamp) {
|
|
16
16
|
NSString *auth = [XDGHttpRequest getMactoken:[NSURL URLWithString:[NSString stringWithUTF8String:url]] method:[NSString stringWithUTF8String:method] time:[[NSNumber numberWithLong:timestamp] stringValue]];
|
|
@@ -23,7 +23,7 @@ const char*XDAccountBridgeGetUser() {
|
|
|
23
23
|
return nil;
|
|
24
24
|
}
|
|
25
25
|
NSDictionary *userDic = [XDGLoginService bridgeUserDic:user];
|
|
26
|
-
return [userDic.
|
|
26
|
+
return [userDic.xdg_jsonStringPretty UTF8String];
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TDSGlobalThirdPartyLoginManager.h
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// Created by JiangJiahao on 2020/8/19.
|
|
6
|
-
// 第三方登录管理
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
#import <XDCommonSDK/XDGEntryType.h>
|
|
10
|
-
#import <UIKit/UIKit.h>
|
|
11
|
-
|
|
12
|
-
@class XDGUser;
|
|
13
|
-
@class TDSGlobalViewControllerBase;
|
|
14
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
-
|
|
16
|
-
extern NSString *const TDSG_LOGIN_ERROR_DOMAIN;
|
|
17
|
-
|
|
18
|
-
typedef void (^XDGLoginManagerRequestCallback)( XDGUser * _Nullable result,NSError * _Nullable error);
|
|
19
|
-
|
|
20
|
-
typedef void(^XDGLoginSyncCallback)(NSDictionary * _Nullable result,NSError * _Nullable error);
|
|
21
|
-
|
|
22
|
-
typedef NS_ENUM(NSInteger,TDSLoginErrorCode) {
|
|
23
|
-
TDSLoginErrorCodeFail = 0x1002, // fail
|
|
24
|
-
TDSLoginErrorCodeCancel = 0x1003, // user cancel
|
|
25
|
-
TDSLoginErrorCodeNetworkOffline = 0x1004, // no network
|
|
26
|
-
TDSLoginErrorCodeTokenExpired = 0x1005, // fail
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
@interface TDSGlobalThirdPartyLoginManager : NSObject
|
|
30
|
-
|
|
31
|
-
+ (void)loginByType:(LoginEntryType)loginType fromViewController:(nullable UIViewController *)viewController handler:(XDGLoginManagerRequestCallback)handler;
|
|
32
|
-
|
|
33
|
-
+ (void)failHandler:(NSError *)error handler:(XDGLoginManagerRequestCallback)handler;
|
|
34
|
-
|
|
35
|
-
+ (void)failHandler:(NSError *)error handler:(XDGLoginManagerRequestCallback)handler fromSDKLogin:(BOOL)fromSDKLogin;
|
|
36
|
-
|
|
37
|
-
+ (void)successHandler:(NSDictionary *)dataDic handler:(XDGLoginManagerRequestCallback)handler loginType:(LoginEntryType)loginType;
|
|
38
|
-
|
|
39
|
-
+ (void)getUserProfile:(XDGLoginManagerRequestCallback)handler;
|
|
40
|
-
|
|
41
|
-
+ (void)logout:(BOOL)fromAPI withHandler:(nullable void (^)(void))handler;
|
|
42
|
-
|
|
43
|
-
+ (void)syncNetConnect:(BOOL)connect syncCallback:(XDGLoginSyncCallback)handle;
|
|
44
|
-
|
|
45
|
-
@end
|
|
46
|
-
|
|
47
|
-
NS_ASSUME_NONNULL_END
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// XDGPhoneAuthManager.h
|
|
3
|
-
// XDAccountSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Fattycat on 2023/2/11.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
#import <XDAccountSDK/TDSGlobalThirdPartyLoginManager.h>
|
|
10
|
-
#import <XDAccountSDK/TDSGlobalThirdPartyLoginHelper.h>
|
|
11
|
-
#import <XDCommonSDK/XDGHttpResponse.h>
|
|
12
|
-
|
|
13
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
-
|
|
15
|
-
typedef void (^XDGPhoneAuthSMSHanlder)(XDGHttpResponse *_Nullable response);
|
|
16
|
-
|
|
17
|
-
@interface XDGPhoneAuthManager : NSObject
|
|
18
|
-
|
|
19
|
-
+ (XDGPhoneAuthManager *)sharedInstance;
|
|
20
|
-
|
|
21
|
-
+ (void)startPhoneLoginWithHandler:(XDGLoginManagerRequestCallback)handler fromViewController:viewController successCallback:(TDSGlobalAuthSuccessCalback)successCallback cancelCallback:(TDSGlobalAuthCancelCallback)cancelCallback errorCallback:(TDSGlobalAuthErrorCallback)errorCallback;
|
|
22
|
-
|
|
23
|
-
+ (void)bindPhoneFromViewController:viewController successCallback:(TDSGlobalAuthSuccessCalback)successCallback cancelCallback:(TDSGlobalAuthCancelCallback)cancelCallback errorCallback:(TDSGlobalAuthErrorCallback)errorCallback;
|
|
24
|
-
|
|
25
|
-
+ (void)unbindPhone:(NSString *)phoneNumber;
|
|
26
|
-
|
|
27
|
-
- (void)sendSMS:(NSString *)phoneNumber verify:(NSString *_Nullable)verify fromSMS:(BOOL)fromSMS;
|
|
28
|
-
|
|
29
|
-
- (void)showPhoneLogin:(BOOL)downgrade;
|
|
30
|
-
|
|
31
|
-
@end
|
|
32
|
-
|
|
33
|
-
NS_ASSUME_NONNULL_END
|
|
File without changes
|