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.
@@ -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+TDSGlobalJson.h>
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.tdsglobal_jsonString UTF8String];
26
+ return [userDic.xdg_jsonStringPretty UTF8String];
27
27
  }
28
28
 
29
29
 
@@ -4,6 +4,6 @@
4
4
  //
5
5
  // Created by Fattycat on 2023/4/14.
6
6
  //
7
- #define XDGAccount_VERSION @"6.31.2"
8
- #define XDSAccount_VERSION_CODE @"6031020"
9
- // HASH 8f3e7f53
7
+ #define XDGAccount_VERSION @"6.32.0"
8
+ #define XDSAccount_VERSION_CODE @"6032000"
9
+ // HASH 18a9cc0c
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "com.xd.sdk.account",
3
3
  "displayName": "XDSDK Account",
4
- "version": "6.31.6",
4
+ "version": "6.32.0",
5
5
  "description": "XDSDK",
6
6
  "unity": "2018.3",
7
7
  "license": "MIT",
@@ -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,7 +0,0 @@
1
- fileFormatVersion: 2
2
- guid: 1bb822602cb8347ff8e430d5dd46a9e2
3
- DefaultImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
@@ -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
@@ -1,7 +0,0 @@
1
- fileFormatVersion: 2
2
- guid: 1b56ec2f7235a477091deeccf435ebd8
3
- DefaultImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant: