com.xd.sdk.common 6.23.10 → 6.26.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 (49) hide show
  1. package/Mobile/XDGCommonMobile.cs +1 -1
  2. package/Plugins/Android/libs/XDGCommon_6.26.0.aar +0 -0
  3. package/Plugins/iOS/Resource/XDResources.bundle/de.lproj/Localizable.strings +1 -0
  4. package/Plugins/iOS/Resource/XDResources.bundle/en.lproj/Localizable.strings +1 -0
  5. package/Plugins/iOS/Resource/XDResources.bundle/es.lproj/Localizable.strings +1 -0
  6. package/Plugins/iOS/Resource/XDResources.bundle/fr.lproj/Localizable.strings +1 -0
  7. package/Plugins/iOS/Resource/XDResources.bundle/id.lproj/Localizable.strings +1 -0
  8. package/Plugins/iOS/Resource/XDResources.bundle/ja.lproj/Localizable.strings +1 -0
  9. package/Plugins/iOS/Resource/XDResources.bundle/ko.lproj/Localizable.strings +1 -0
  10. package/Plugins/iOS/Resource/XDResources.bundle/pt.lproj/Localizable.strings +1 -0
  11. package/Plugins/iOS/Resource/XDResources.bundle/ru.lproj/Localizable.strings +1 -0
  12. package/Plugins/iOS/Resource/XDResources.bundle/th.lproj/Localizable.strings +1 -0
  13. package/Plugins/iOS/Resource/XDResources.bundle/tr.lproj/Localizable.strings +1 -0
  14. package/Plugins/iOS/Resource/XDResources.bundle/vi.lproj/Localizable.strings +1 -0
  15. package/Plugins/iOS/Resource/XDResources.bundle/zh-Hans.lproj/Localizable.strings +1 -0
  16. package/Plugins/iOS/Resource/XDResources.bundle/zh-Hant.lproj/Localizable.strings +1 -0
  17. package/Plugins/iOS/XDCommonSDK.framework/Headers/NSDictionary+XDG.h +3 -0
  18. package/Plugins/iOS/XDCommonSDK.framework/Headers/NSString+XDG.h +33 -0
  19. package/Plugins/iOS/XDCommonSDK.framework/Headers/TDSGlobalNotifications.h +7 -3
  20. package/Plugins/iOS/XDCommonSDK.framework/Headers/TDSGlobalRouterSchemes.h +0 -20
  21. package/Plugins/iOS/XDCommonSDK.framework/Headers/TDSGlobalWebController.h +2 -2
  22. package/Plugins/iOS/XDCommonSDK.framework/Headers/UIImage+XDG.h +18 -0
  23. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDAliYunInfo.h +20 -0
  24. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDCommonSDK.h +6 -5
  25. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDConfigManager.h +1 -0
  26. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGAgreementManager.h +0 -12
  27. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGCommonTool.h +18 -0
  28. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGConfig.h +4 -0
  29. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGCoreService.h +0 -9
  30. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGLogger.h +6 -0
  31. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGNavigationBar.h +21 -0
  32. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGNotificationManager.h +59 -0
  33. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGPush.h +56 -0
  34. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGSDK.h +14 -24
  35. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGThirdSDKHelper.h +7 -1
  36. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGThirdSDKProtocol.h +6 -0
  37. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGTrackerManager.h +12 -0
  38. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGUserDataManager.h +4 -4
  39. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDVersion.h +3 -3
  40. package/Plugins/iOS/XDCommonSDK.framework/Info.plist +0 -0
  41. package/Plugins/iOS/XDCommonSDK.framework/XDCommonSDK +0 -0
  42. package/Runtime/Internal/IXDGCommon.cs +1 -1
  43. package/Runtime/Internal/XDWebAction.cs.meta +9 -1
  44. package/Runtime/XDGCommon.cs +1 -6
  45. package/package.json +2 -2
  46. package/Plugins/Android/libs/XDGCommon_6.23.8.aar +0 -0
  47. package/Runtime/XDGInitParam.cs +0 -41
  48. package/Runtime/XDGInitParam.cs.meta +0 -11
  49. /package/Plugins/Android/libs/{XDGCommon_6.23.8.aar.meta → XDGCommon_6.26.0.aar.meta} +0 -0
@@ -12,7 +12,7 @@ namespace XD.SDK.Common {
12
12
 
13
13
  private bool inited;
14
14
 
15
- public void InitSDK(XDGInitParam param, Action<bool, string> callback){
15
+ public void InitSDK(Action<bool, string> callback){
16
16
  if (inited){
17
17
  UnityEngine.Debug.LogWarning("XDSDK has been initialized, please do not initialize it again.");
18
18
  return;
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "Nachdem die Verifizierung abgeschlossen ist, wird die Entbindung abgeschlossen sein.";
96
96
  "tds_auth_phone_login" = "Mit Telefonnummer anmelden";
97
97
  "tds_auth_phone_input_enter" = "Gib deine Telefonnummer ein";
98
+ "tds_auth_phone_select_region" = "Land/Region auswählen";
98
99
  "tds_auth_phone_bind" = "Verbinde dein Mobiltelefon";
99
100
  "tds_auth_email_login" = "Mit E-Mail anmelden";
100
101
  "tds_auth_email_input_enter" = "Geben Sie Ihre E-Mail-Adresse ein";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "After the verification is passed, the unbind will be completed.";
96
96
  "tds_auth_phone_login" = "Log in with Phone Number";
97
97
  "tds_auth_phone_input_enter" = "Enter your phone number";
98
+ "tds_auth_phone_select_region" = "Select Country/Region";
98
99
  "tds_auth_phone_bind" = "Bind your Mobile Phone";
99
100
  "tds_auth_email_login" = "Log in with Email";
100
101
  "tds_auth_email_input_enter" = "Enter your email address";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "Después de aprobar la verificación, se completará la desvinculación.";
96
96
  "tds_auth_phone_login" = "Iniciar sesión con número de teléfono";
97
97
  "tds_auth_phone_input_enter" = "Ingresa tu número de teléfono";
98
+ "tds_auth_phone_select_region" = "Seleccionar país/región";
98
99
  "tds_auth_phone_bind" = "Vincula tu teléfono móvil";
99
100
  "tds_auth_email_login" = "Iniciar sesión con correo electrónico";
100
101
  "tds_auth_email_input_enter" = "Ingresa tu dirección de correo electrónico";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "Après la validation, la dissociation sera terminée.";
96
96
  "tds_auth_phone_login" = "Se connecter par téléphone";
97
97
  "tds_auth_phone_input_enter" = "Numéro de portable";
98
+ "tds_auth_phone_select_region" = "Choisir un pays/région";
98
99
  "tds_auth_phone_bind" = "Associez votre téléphone portable";
99
100
  "tds_auth_email_login" = "Se connecter avec l'email";
100
101
  "tds_auth_email_input_enter" = "Saisissez votre adresse e-mail";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "Setelah verifikasi berhasil, proses melepaskan akun akan selesai.";
96
96
  "tds_auth_phone_login" = "Masuk Dengan Nomor Telepon";
97
97
  "tds_auth_phone_input_enter" = "Masukkan nomor telepon Anda";
98
+ "tds_auth_phone_select_region" = "Pilih negara/wilayah";
98
99
  "tds_auth_phone_bind" = "Hubungkan Ponsel Anda";
99
100
  "tds_auth_email_login" = "Masuk dengan Email";
100
101
  "tds_auth_email_input_enter" = "Masukkan alamat email Anda";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "確認が完了すると、解除が完了します。";
96
96
  "tds_auth_phone_login" = "電話番号でログイン";
97
97
  "tds_auth_phone_input_enter" = "電話番号を入力";
98
+ "tds_auth_phone_select_region" = "国/地域を選択";
98
99
  "tds_auth_phone_bind" = "電話番号を連携";
99
100
  "tds_auth_email_login" = "メールでログイン";
100
101
  "tds_auth_email_input_enter" = "メールアドレスを入力";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "검증이 완료되면 언바인딩이 완료됩니다.";
96
96
  "tds_auth_phone_login" = "전화번호로 로그인";
97
97
  "tds_auth_phone_input_enter" = "전화번호를 입력하세요";
98
+ "tds_auth_phone_select_region" = "국가/지역 선택";
98
99
  "tds_auth_phone_bind" = "모바일 폰을 연결하세요";
99
100
  "tds_auth_email_login" = "이메일로 로그인하기";
100
101
  "tds_auth_email_input_enter" = "이메일 주소를 입력하세요";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "Após a verificação ser aprovada, o desvincular será concluído.";
96
96
  "tds_auth_phone_login" = "Faça Login com o Número de Telefone";
97
97
  "tds_auth_phone_input_enter" = "Insira o seu número de telefone";
98
+ "tds_auth_phone_select_region" = "Escolha o país/região";
98
99
  "tds_auth_phone_bind" = "Vincule seu Celular";
99
100
  "tds_auth_email_login" = "Entrar com Email";
100
101
  "tds_auth_email_input_enter" = "Digite seu endereço de email";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "После прохождения верификации, отвязка будет завершена.";
96
96
  "tds_auth_phone_login" = "Войти с номером телефона";
97
97
  "tds_auth_phone_input_enter" = "Введите ваш номер телефона";
98
+ "tds_auth_phone_select_region" = "Выбор страны/региона";
98
99
  "tds_auth_phone_bind" = "Привяжите ваш мобильный телефон";
99
100
  "tds_auth_email_login" = "Войти с помощью электронной почты";
100
101
  "tds_auth_email_input_enter" = "Введите свой адрес электронной почты";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "เมื่อการตรวจสอบผ่านแล้ว การยกเลิกการเชื่อมต่อจะเสร็จสมบูรณ์";
96
96
  "tds_auth_phone_login" = "เข้าสู่ระบบด้วยหมายเลขโทรศัพท์";
97
97
  "tds_auth_phone_input_enter" = "ป้อนหมายเลขโทรศัพท์ของคุณ";
98
+ "tds_auth_phone_select_region" = "เลือกประเทศ/ภูมิภาค";
98
99
  "tds_auth_phone_bind" = "ผูกเบอร์โทรศัพท์มือถือของคุณ";
99
100
  "tds_auth_email_login" = "เข้าสู่ระบบด้วยอีเมล";
100
101
  "tds_auth_email_input_enter" = "กรอกที่อยู่อีเมล์ของคุณ";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "Doğrulama geçtikten sonra, kaldırma işlemi tamamlanacak.";
96
96
  "tds_auth_phone_login" = "Telefon Numarası ile Giriş Yap";
97
97
  "tds_auth_phone_input_enter" = "Telefon numaranızı girin";
98
+ "tds_auth_phone_select_region" = "Ülke/bölge seçin";
98
99
  "tds_auth_phone_bind" = "Mobil Telefonunuzu Bağlayın";
99
100
  "tds_auth_email_login" = "E-posta ile Giriş Yap";
100
101
  "tds_auth_email_input_enter" = "E-posta adresinizi girin";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "Sau khi xác minh thành công, việc hủy liên kết sẽ được hoàn thành.";
96
96
  "tds_auth_phone_login" = "Đăng nhập bằng số điện thoại";
97
97
  "tds_auth_phone_input_enter" = "Nhập số điện thoại của bạn";
98
+ "tds_auth_phone_select_region" = "Chọn quốc gia/khu vực";
98
99
  "tds_auth_phone_bind" = "Kết nối Điện thoại di động của bạn";
99
100
  "tds_auth_email_login" = "Đăng nhập bằng email";
100
101
  "tds_auth_email_input_enter" = "Nhập địa chỉ email của bạn";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "在验证通过后,解绑将会完成。";
96
96
  "tds_auth_phone_login" = "手机号登录";
97
97
  "tds_auth_phone_input_enter" = "输入您的手机号码";
98
+ "tds_auth_phone_select_region" = "选择国家/地区";
98
99
  "tds_auth_phone_bind" = "绑定您的手机";
99
100
  "tds_auth_email_login" = "邮箱登录";
100
101
  "tds_auth_email_input_enter" = "输入您的邮箱";
@@ -95,6 +95,7 @@
95
95
  "tds_auth_phone_email_unbind_tip" = "在驗證通過後,解除綁定將會完成。";
96
96
  "tds_auth_phone_login" = "手機號登錄";
97
97
  "tds_auth_phone_input_enter" = "請輸入您的電話號碼";
98
+ "tds_auth_phone_select_region" = "選擇國家/地區";
98
99
  "tds_auth_phone_bind" = "綁定您的手機";
99
100
  "tds_auth_email_login" = "電子郵箱登入";
100
101
  "tds_auth_email_input_enter" = "輸入您的電子郵件地址";
@@ -21,6 +21,9 @@ NS_ASSUME_NONNULL_BEGIN
21
21
  - (NSSet *)xdg_setForKey:(NSString *)key;
22
22
  - (NSNumber *)xdg_numberForKey:(NSString *)key;
23
23
 
24
+ - (NSString *)xdg_jsonStringNotPretty;
25
+ - (NSString *)xdg_jsonStringPretty;
26
+ - (NSDictionary *)safeDictionary;
24
27
  @end
25
28
 
26
29
  NS_ASSUME_NONNULL_END
@@ -0,0 +1,33 @@
1
+ //
2
+ // NSString+XDG.h
3
+ // TDSGlobalSDKCommonKit
4
+ //
5
+ // Created by JiangJiahao on 2021/2/25.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @interface NSString (TDSGlobalTools)
13
+ - (NSDictionary *)xdg_toDictionary;
14
+ - (NSString *)URLEncodedString;
15
+ - (NSString *)URLDecodedString;
16
+ // The string's MD5 hash
17
+ - (NSString *) MD5Hash;
18
+
19
+ + (BOOL)isEmptyForXD:(NSString *)string;
20
+
21
+ + (BOOL)semanticVer:(NSString *)first greaterThan:(NSString *)second;
22
+
23
+ /// 将字符串编码为 Base64
24
+ - (NSString *)base64EncodedString;
25
+
26
+ /// 解码 Base64 字符串
27
+ - (NSString *)base64DecodedString;
28
+
29
+ /// 解码 Base64,如果不是有效 Base64,则返回原始字符串
30
+ - (NSString *)decodeBase64OrReturnOriginal;
31
+ @end
32
+
33
+ NS_ASSUME_NONNULL_END
@@ -27,9 +27,6 @@ FOUNDATION_EXPORT TDSGlobalNotification TDSG_PAY_FAIL_NOTIFICATION;
27
27
  FOUNDATION_EXPORT TDSGlobalNotification TDSG_RECEIPT_SEND_SUCCESS_NOTIFICATION;
28
28
  FOUNDATION_EXPORT TDSGlobalNotification TDSG_RECEIPT_SEND_FAIL_NOTIFICATION;
29
29
 
30
- /* Notifications */
31
- FOUNDATION_EXPORT TDSGlobalNotification TDSG_NOTI_STATU_CHANGE_NOTIFICATION;
32
-
33
30
  /* 微信网页端 */
34
31
  FOUNDATION_EXPORT TDSGlobalNotification XDG_NOTI_WXWeb_NOTIFICATION;
35
32
  /* 苹果网页端 */
@@ -37,6 +34,13 @@ FOUNDATION_EXPORT TDSGlobalNotification XDG_NOTI_APPLEWeb_NOTIFICATION;
37
34
  /* Steam 网页端 */
38
35
  FOUNDATION_EXPORT TDSGlobalNotification XDG_NOTI_STEAMWeb_NOTIFICATION;
39
36
 
37
+ FOUNDATION_EXPORT TDSGlobalNotification XDG_NOTI_TRACK_EVENT;
38
+ FOUNDATION_EXPORT TDSGlobalNotification XDG_NOTI_TRACK_PAYMENT;
39
+
40
+ FOUNDATION_EXPORT TDSGlobalNotification XDG_NOTI_TRACK_AF_CUSTOMER_ID;
41
+ FOUNDATION_EXPORT TDSGlobalNotification XDG_NOTI_TRACK_FB_SERVER_ID;
42
+ FOUNDATION_EXPORT TDSGlobalNotification XDG_NOTI_TRACK_AD_CREATE_ROLE;
43
+
40
44
  @interface TDSGlobalNotifications : NSObject
41
45
 
42
46
  @end
@@ -15,22 +15,6 @@ FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_STORE_INIT_SCHEME;
15
15
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_STORE_PAY_SCHEME;
16
16
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_STORE_CHECK_REFUND;
17
17
 
18
- /** 事件 */
19
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_AF_CUSTOMER_ID;
20
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_INIT_SCHEME;
21
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_EVENT_SCHEME;
22
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_ACHIEVEMENT_SCHEME;
23
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_TUTORIAL_SCHEME;
24
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_CREATEROLE_SCHEME;
25
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_SERVER_SCHEME;
26
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_LEVEL_SCHEME;
27
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_RATE_SCHEME;
28
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_PAY_SUCCESS_SCHEME;
29
-
30
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_OPEN_URL_SCHEME;
31
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_CONTINUE_USER_ACTIVITY_SCHEME;
32
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_TRACK_RECEIVE_REMOTE_NOTIFICATION_SCHEME;
33
-
34
18
  /** 登录 */
35
19
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_LOGIN_SMS_CODE;
36
20
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_LOGIN_AUTH_GOOGLE;
@@ -38,7 +22,6 @@ FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_LOGIN_AUTH_FACEBOOK;
38
22
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_LOGIN_AUTH_LINE;
39
23
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_LOGIN_AUTH_TWITTER;
40
24
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_LOGIN_AUTH_PHONE;
41
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_LOGIN_REFRESH_TOKEN;
42
25
 
43
26
 
44
27
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_QQ;
@@ -52,9 +35,6 @@ FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_FACEBOOK;
52
35
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_LINE;
53
36
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_TWITTER;
54
37
 
55
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_FACEBOOK_INIT_SCHEME;
56
- FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_BYTEDANCE_INIT_SCHEME;
57
-
58
38
  @interface TDSGlobalRouterSchemes : NSObject
59
39
 
60
40
  @end
@@ -3,13 +3,13 @@
3
3
 
4
4
  #import <UIKit/UIKit.h>
5
5
  #import <XDCommonSDK/TDSGlobalViewControllerBase.h>
6
- #import <XDCommonSDK/XDGNavicationBar.h>
6
+ #import <XDCommonSDK/XDGNavigationBar.h>
7
7
  #import <XDCommonSDK/TDSGlobalWKCookieWebview.h>
8
8
 
9
9
  NS_ASSUME_NONNULL_BEGIN
10
10
 
11
11
  @interface TDSGlobalWebController : TDSGlobalViewControllerBase
12
- @property (nonatomic, strong) XDGNavicationBar *navigationBar;
12
+ @property (nonatomic, strong) XDGNavigationBar *navigationBar;
13
13
  @property (nonatomic, strong) TDSGlobalWKCookieWebview *webView;
14
14
  @property (nonatomic, copy) NSString *url;
15
15
  @property (nonatomic, copy) NSString *webControllerTitle;
@@ -0,0 +1,18 @@
1
+ //
2
+ // UIImage+XDG.h
3
+ // TDSSDK
4
+ //
5
+ // Created by JiangJiahao on 2020/8/23.
6
+ // Copyright © 2020 JiangJiahao. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface UIImage (XDG)
14
+ + (UIImage *)xdg_imageNamed:(NSString *)name;
15
+ + (UIImage *)xdg_resizeableImageNamed:(NSString *)name;
16
+ @end
17
+
18
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,20 @@
1
+ //
2
+ // XDAliYunInfo.h
3
+ // XDCommonSDK
4
+ //
5
+ // Created by Fattycat on 2024/4/9.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @interface XDAliYunInfo : NSObject
13
+ @property (nonatomic, copy) NSString *numberAuthToken;
14
+ @property (nonatomic, copy) NSString *pushKey;
15
+ @property (nonatomic, copy) NSString *pushSecret;
16
+
17
+ + (instancetype)instanceWithInfoDic:(NSDictionary *)infoDic;
18
+ @end
19
+
20
+ NS_ASSUME_NONNULL_END
@@ -18,26 +18,29 @@ FOUNDATION_EXPORT const unsigned char XDCommonSDKVersionString[];
18
18
  #import <XDCommonSDK/XDGSDK.h>
19
19
  #import <XDCommonSDK/XDVersion.h>
20
20
  #import <XDCommonSDK/XDGConfig.h>
21
+ #import <XDCommonSDK/XDGPush.h>
21
22
  #import <XDCommonSDK/XDGAgreementConfig.h>
22
23
  #import <XDCommonSDK/XDConfigManager.h>
23
24
  #import <XDCommonSDK/XDGSDKSettings.h>
24
25
  #import <XDCommonSDK/XDGLocalizeManager.h>
25
26
  #import <XDCommonSDK/NSBundle+XDG.h>
26
27
  #import <XDCommonSDK/UIButton+XDG.h>
28
+ #import <XDCommonSDK/UIImage+XDG.h>
27
29
  #import <XDCommonSDK/UIApplication+XDG.h>
28
30
  #import <XDCommonSDK/NSDictionary+XDG.h>
29
31
  #import <XDCommonSDK/NSError+XDG.h>
32
+ #import <XDCommonSDK/NSString+XDG.h>
30
33
  #import <XDCommonSDK/XDGTimeUtil.h>
31
34
  #import <XDCommonSDK/XDGRegionUtil.h>
32
35
  #import <XDCommonSDK/XDGHandlerDefine.h>
33
36
  #import <XDCommonSDK/XDGCaptchaView.h>
34
37
  #import <XDCommonSDK/XDGCommonWebController.h>
38
+ #import <XDCommonSDK/XDGNotificationManager.h>
35
39
 
36
40
  #import <XDCommonSDK/XDGEntryType.h>
37
41
  #import <XDCommonSDK/XDGGameBindEntry.h>
38
42
  #import <XDCommonSDK/XDGTrackerManager.h>
39
43
  #import <XDCommonSDK/XDGReportManager.h>
40
- //#import <XDCommonSDK/XDGMessageManager.h>
41
44
  #import <XDCommonSDK/XDGShare.h>
42
45
  #import <XDCommonSDK/XDShare.h>
43
46
  #import <XDCommonSDK/XDGUser.h>
@@ -47,12 +50,10 @@ FOUNDATION_EXPORT const unsigned char XDCommonSDKVersionString[];
47
50
  #import <XDCommonSDK/XDGCloudLogHelper.h>
48
51
  #import <XDCommonSDK/XDGLoginLogger.h>
49
52
  #import <XDCommonSDK/XDGPaymentLogger.h>
50
- #import <XDCommonSDK/NSString+TDSGlobalTools.h>
51
53
  //#import <XDCommonSDK/NSData+TDSGlobalJson.h>
52
54
  #import <XDCommonSDK/TDSGlobalDeviceInfoTool.h>
53
55
  //#import <XDCommonSDK/CALayer+TDSGlobal.h>
54
56
  //#import <XDCommonSDK/TDSGlobalImageTool.h>
55
- #import <XDCommonSDK/NSDictionary+TDSGlobalJson.h>
56
57
  #import <XDCommonSDK/TDSGlobalTimer.h>
57
58
  #import <XDCommonSDK/TDSGlobalAutoLayout.h>
58
59
  #import <XDCommonSDK/TDSGlobalCommonUtility.h>
@@ -63,14 +64,13 @@ FOUNDATION_EXPORT const unsigned char XDCommonSDKVersionString[];
63
64
  #import <XDCommonSDK/TDSGlobalPopWindowManager.h>
64
65
  #import <XDCommonSDK/TDSGlobalNotifications.h>
65
66
  #import <XDCommonSDK/TDSGlobalUIDefine.h>
66
- #import <XDCommonSDK/UIImage+TDSSDK.h>
67
67
  //#import <XDCommonSDK/TDSGlobalReachability.h>
68
68
  #import <XDCommonSDK/TDSGlobalRouterSchemes.h>
69
69
  #import <XDCommonSDK/XDPlateWebController.h>
70
70
  #import <XDCommonSDK/XDGAlertView.h>
71
71
  #import <XDCommonSDK/XDGCoreService.h>
72
72
  #import <XDCommonSDK/XDGThirdTokenManager.h>
73
- #import <XDCommonSDK/XDGNavicationBar.h>
73
+ #import <XDCommonSDK/XDGNavigationBar.h>
74
74
  #import <XDCommonSDK/XDGCheckBox.h>
75
75
  #import <XDCommonSDK/XDGButton.h>
76
76
  #import <XDCommonSDK/XDGCardView.h>
@@ -102,6 +102,7 @@ FOUNDATION_EXPORT const unsigned char XDCommonSDKVersionString[];
102
102
  #import <XDCommonSDK/XDGTapTapShareParam.h>
103
103
  #import <XDCommonSDK/XDGAgreementManager.h>
104
104
 
105
+ #import <XDCommonSDK/XDGCommonTool.h>
105
106
  #import <XDCommonSDK/XDGWebParams.h>
106
107
  #import <XDCommonSDK/XDGWebRequest.h>
107
108
  #import <XDCommonSDK/XDGWebFunctionHolder.h>
@@ -46,6 +46,7 @@ typedef void (^XDConfigHandler)(BOOL success, NSString *_Nullable msg);
46
46
  + (BOOL)taptapEnable;
47
47
  + (BOOL)tapdbEnable;
48
48
  + (BOOL)aliyunAuthEnable;
49
+ + (BOOL)aliYunPushEnable;
49
50
  + (BOOL)firebaseEnable;
50
51
  + (BOOL)adjustEnable;
51
52
  + (BOOL)appsflyersEnable;
@@ -25,20 +25,8 @@ typedef void (^XDGExitHandler)(void);
25
25
 
26
26
  + (void)logout;
27
27
 
28
- + (NSArray<XDGAgreement *> *)getAgreementList;
29
-
30
28
  + (void)showDetailAgreement:(NSString *)type;
31
29
 
32
- + (void)recordKRPushSetting:(BOOL)pushOn;
33
-
34
- + (void)recordKRPushDaySetting:(BOOL)pushOn;
35
-
36
- + (void)recordKRPushNightSetting:(BOOL)pushOn;
37
-
38
- + (void)recordKRPushSettingWithDay:(BOOL)dayPushOn withNight:(BOOL)nightPushOn;
39
-
40
- + (BOOL)getKRPushSetting;
41
-
42
30
  + (BOOL)getKRPushDaySetting;
43
31
 
44
32
  + (BOOL)getKRPushNightSetting;
@@ -0,0 +1,18 @@
1
+ //
2
+ // XDGCommonTool.h
3
+ // XDGCommonSDK
4
+ //
5
+ // Created by jessy on 2021/9/8.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @interface XDGCommonTool : NSObject
13
+
14
+ + (void)xdgPerformSelectorOnClass:(NSString *)className withSelectorName:(NSString *)selectorName withParam:(id _Nullable)param withParam:(id _Nullable)param2;
15
+
16
+ @end
17
+
18
+ NS_ASSUME_NONNULL_END
@@ -22,6 +22,7 @@
22
22
  #import <XDCommonSDK/XDQQInfo.h>
23
23
  #import <XDCommonSDK/XDDouYinInfo.h>
24
24
  #import <XDCommonSDK/XDXHSInfo.h>
25
+ #import <XDCommonSDK/XDAliYunInfo.h>
25
26
 
26
27
  NS_ASSUME_NONNULL_BEGIN
27
28
 
@@ -78,6 +79,9 @@ typedef NS_ENUM(NSInteger, XDSDKRegionType) {
78
79
  @property (nonatomic, strong) XDDouYinInfo *douyinInfo;
79
80
  /// 小红书 配置信息
80
81
  @property (nonatomic, strong) XDXHSInfo *xhsInfo;
82
+ /// 阿里云 配置信息
83
+ @property (nonatomic, strong) XDAliYunInfo *aliyunInfo;
84
+
81
85
  /// 统一登录窗口中的品牌向 logo 素材 URL 数组,需要3个,不配置的话默认https://res.xdcdn.net/TDS/Global/res/xd_logo.png
82
86
  @property (nonatomic, copy) NSArray *logos;
83
87
  /// 统一登录窗口中的登录入口选项
@@ -47,9 +47,6 @@ NS_ASSUME_NONNULL_BEGIN
47
47
  /// trackEvent with properties
48
48
  + (void)eventName:(NSString *)eventName properties:(NSString *)propertiesJsonStr;
49
49
 
50
- /// 开启当前用户的推送
51
- + (void)enable:(NSNumber *)enable;
52
-
53
50
  // trackRole
54
51
  + (void)serverId:(NSString *)serverId
55
52
  roleId:(NSString *)roleId
@@ -62,12 +59,6 @@ NS_ASSUME_NONNULL_BEGIN
62
59
 
63
60
  + (void)eventCreateRole;
64
61
 
65
- #pragma mark - 推送
66
- /// Open or close firebase push service for current user. Call after user logged in.
67
- /// @param enable enable
68
-
69
- /// The user need push service or not. Call after user logged in.
70
- + (NSNumber *)isCurrentUserPushServiceEnable;
71
62
  /// 登陆成功埋点
72
63
  + (void)loginSuccessEvent;
73
64
  /// 登录失败埋点
@@ -39,4 +39,10 @@ typedef void (^XDGLoggerCallback) (NSString *content);
39
39
 
40
40
  @end
41
41
 
42
+ @interface XDGLogger (Track)
43
+
44
+ + (void)trackLog:(NSString *)content;
45
+
46
+ @end
47
+
42
48
  NS_ASSUME_NONNULL_END
@@ -0,0 +1,21 @@
1
+ //
2
+ // XDGNavigationBar.h
3
+ // XDCommonSDK
4
+ //
5
+ // Created by Fattycat on 2022/11/21.
6
+ //
7
+
8
+ #import <UIKit/UIKit.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @interface XDGNavigationBar : UIView
13
+ @property (nonatomic, strong) UIView *backgroundView;
14
+ @property (nonatomic, strong) UIButton *backButton;
15
+ @property (nonatomic, strong) UIButton *closeButton;
16
+ @property (nonatomic, strong) UILabel *titleLabel;
17
+
18
+ + (XDGNavigationBar *)createNavigationBar:(NSString *)title;
19
+ @end
20
+
21
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,59 @@
1
+ //
2
+ // XDGNotificationManager.h
3
+ // XDCommonSDK
4
+ //
5
+ // Created by Fattycat on 2024/7/19.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ #import <UserNotifications/UserNotifications.h>
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ typedef void (^XDGNotificationHandler)(NSString *title, NSString *body, NSDictionary *_Nullable extra);
15
+
16
+ /// 推送通知管理,内部使用
17
+ @interface XDGNotificationManager : NSObject <UNUserNotificationCenterDelegate>
18
+
19
+ @property (nonatomic, copy) XDGNotificationHandler notificationHandler;
20
+
21
+ @property(nonatomic, assign) UNNotificationPresentationOptions option;
22
+
23
+ + (XDGNotificationManager *)sharedInstance;
24
+
25
+ /// 获取最新推送数据
26
+ - (NSDictionary *_Nullable)getLatestPushData;
27
+
28
+ /// 设置通知展现选项
29
+ /// - Parameter option: 选项
30
+ - (void)setNotificationPresentationOption:(NSInteger)option;
31
+
32
+ /// 更新 APNs Token
33
+ /// - Parameter token: APNs token
34
+ - (void)updateAPNsToken:(NSData *_Nullable)token;
35
+
36
+ /// 配置默认推送设置
37
+ - (void)updateDefaultPushSettings;
38
+
39
+ /// 更新推送 ID
40
+ - (void)updatePushDeviceId;
41
+
42
+ /// 更新推送设置
43
+ /// - Parameters:
44
+ /// - deviceId: 推送 deviceId
45
+ /// - fromFirebase: 是否是 firebase
46
+ - (void)updatePushSettingsWithDeviceId:(NSString *_Nullable)deviceId fromFirebase:(BOOL)fromFirebase;
47
+
48
+ + (BOOL)didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
49
+
50
+ /// 收到远程推送通知
51
+ /// - Parameters:
52
+ /// - userInfo: 数据
53
+ /// - completionHandler: 回调
54
+ + (void)didReceiveRemoteNotification:(NSDictionary *)userInfo
55
+ fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler;
56
+
57
+ @end
58
+
59
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,56 @@
1
+ //
2
+ // XDGPush.h
3
+ // XDCommonSDK
4
+ //
5
+ // Created by Fattycat on 2024/10/25.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ typedef void (^XDGPushHandler)(NSString *_Nullable title, NSString *_Nullable body, NSDictionary *_Nullable extra);
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ /// 推送
15
+ @interface XDGPush : NSObject
16
+
17
+ /// 获取最新推送数据
18
+ /// - Returns: 推送数据
19
+ + (NSDictionary *_Nullable)getLatestPushData;
20
+
21
+ /// 设置通知展现效果
22
+ /// 建议在开启推送前设置
23
+ /// - Parameter option: 前台通知展现效果,默认值: Badge | Alert
24
+ /// - Badge = (1 << 0)
25
+ /// - Sound = (1 << 1)
26
+ /// - Alert = (1 << 2)
27
+ /// - List = (1 << 3) iOS 14.0+
28
+ /// - Banner = (1 << 4) iOS 14.0+
29
+ + (void)setPushPresentationOption:(NSInteger)option;
30
+
31
+ /// 设置通知回调
32
+ /// 建议在开启推送前设置
33
+ /// - Parameter handler: 回调
34
+ /// - title: 通知标题
35
+ /// - body: 通知内容
36
+ /// - extra: 通知额外信息
37
+ + (void)setPushHandler:(XDGPushHandler _Nullable)handler;
38
+
39
+ /// 开启系统通知
40
+ /// - Parameter handler: 开启结果回调
41
+ /// - success: 是否成功
42
+ + (void)registerPushWithHandler:(void (^)(BOOL success))handler;
43
+
44
+ /// 设定当前应用图标角标数量
45
+ /// - Parameter number: 角标数量
46
+ /// - 0: 清除角标
47
+ + (void)setAppIconBadgeNumber:(NSInteger)number;
48
+
49
+ /// 获取系统通知设置授权状态
50
+ /// - Parameter handler: 结果回调
51
+ /// - authorized: 是否已授权
52
+ + (void)getPushPermissionWithHandler:(void (^)(BOOL authorized))handler;
53
+
54
+ @end
55
+
56
+ NS_ASSUME_NONNULL_END
@@ -11,7 +11,8 @@
11
11
  NS_ASSUME_NONNULL_BEGIN
12
12
 
13
13
  @interface XDGSDK : NSObject
14
- /// 获取当前 SDK 版本
14
+
15
+ /// 获取 SDK 版本
15
16
  + (NSString *)getSDKVersionName;
16
17
 
17
18
  /// 初始化
@@ -21,8 +22,8 @@ NS_ASSUME_NONNULL_BEGIN
21
22
  /// 是否已经初始化
22
23
  + (BOOL)isInitialized;
23
24
 
24
- + (NSArray<XDGAgreement *> *)getAgreementList;
25
-
25
+ /// 展示细节协议
26
+ /// @param url 需要打开的 url
26
27
  + (void)showDetailAgreement:(NSString *)url;
27
28
 
28
29
  /// 当前登录用户,打开客服中心
@@ -59,9 +60,14 @@ NS_ASSUME_NONNULL_BEGIN
59
60
  /// 跟踪用户
60
61
  + (void)trackUser;
61
62
 
62
- /// @param userId 用户唯一ID,非角色ID
63
+ /// 跟踪用户
64
+ /// - Parameter userId: 用户 ID
63
65
  + (void)trackUser:(NSString *)userId;
64
66
 
67
+ /// 跟踪用户
68
+ /// @param userId 用户 ID
69
+ /// @param loginType 登录方式
70
+ /// @param properties 额外参数
65
71
  + (void)trackUser:(NSString *)userId
66
72
  loginType:(LoginEntryType)loginType
67
73
  properties:(nullable NSDictionary *)properties;
@@ -85,7 +91,6 @@ NS_ASSUME_NONNULL_BEGIN
85
91
  /// @param properties 属性
86
92
  + (void)trackEvent:(NSString *)eventName properties:(nullable NSDictionary *)properties;
87
93
 
88
-
89
94
  /// 跟踪完成成就
90
95
  + (void)trackAchievement;
91
96
 
@@ -95,25 +100,8 @@ NS_ASSUME_NONNULL_BEGIN
95
100
  /// 跟踪完成创角
96
101
  + (void)eventCreateRole;
97
102
 
98
- #pragma mark -- 推送
99
- /// Open or close firebase push service for current user. Call after user logged in.
100
- /// @param enable enable
101
- + (void)setCurrentUserPushServiceEnable:(BOOL)enable;
102
-
103
- /// The user need push service or not. Call after user logged in.
104
- + (BOOL)isCurrentUserPushServiceEnable;
105
-
106
- + (void)setCurrentUserDayPushServiceEnable:(BOOL)enable;
107
-
108
- + (BOOL)isCurrentUserDayPushServiceEnable;
109
-
110
- + (void)setCurrentUserNightPushServiceEnable:(BOOL)enable;
111
-
112
- + (BOOL)isCurrentUserNightPushServiceEnable;
113
-
114
- #pragma mark - Applicaiton Delegate
115
- + (void)application:(UIApplication *)application
116
- didFinishLaunchingWithOptions:(nullable NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions;
103
+ #pragma mark - Application Delegate
104
+ + (void)application:(UIApplication *)application didFinishLaunchingWithOptions:(nullable NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions;
117
105
 
118
106
  + (void)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *_Nullable)options;
119
107
 
@@ -123,6 +111,8 @@ didFinishLaunchingWithOptions:(nullable NSDictionary<UIApplicationLaunchOptionsK
123
111
 
124
112
  + (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler;
125
113
 
114
+ + (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
115
+
126
116
  + (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts API_AVAILABLE(ios(13.0));
127
117
 
128
118
  + (void)scene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity API_AVAILABLE(ios(13.0));
@@ -13,14 +13,20 @@ NS_ASSUME_NONNULL_BEGIN
13
13
 
14
14
  + (void)initThirdPartySDK;
15
15
 
16
- //+ (void)setupThirdPartySDK:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
16
+ + (void)setupThirdPartySDK:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
17
17
 
18
18
  + (void)openURL:(NSDictionary *)params;
19
19
 
20
20
  + (void)handleUserActivity:(NSUserActivity *)userActivity restorationHandler:(nullable void (^)(NSArray<id<UIUserActivityRestoring>> *_Nullable))restorationHandler;
21
21
 
22
+ + (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
23
+
22
24
  + (void)didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler;
23
25
 
26
+ + (void)aliyunPushACK:(NSDictionary *)userInfo;
27
+
28
+ + (void)registerWithAPNsToken:(NSData *_Nullable)deviceToken;
29
+
24
30
  + (void)logout;
25
31
 
26
32
  //+ (void)trackEvent:(NSString *)eventName properties:(nullable NSDictionary *)properties;
@@ -11,6 +11,12 @@
11
11
 
12
12
  @end
13
13
 
14
+ @protocol XDGThirdSDKApplicationInitProtocol <NSObject>
15
+
16
+ + (BOOL)setupThirdPartySDK:(UIApplication *_Nonnull)application didFinishLaunchingWithOptions:(NSDictionary *_Nullable)launchOptions;
17
+
18
+ @end
19
+
14
20
  @protocol XDGThirdSDKApplicationProtocol <NSObject>
15
21
 
16
22
  + (BOOL)handleOpenURL:(NSDictionary *_Nonnull)params;
@@ -4,6 +4,18 @@
4
4
 
5
5
  NS_ASSUME_NONNULL_BEGIN
6
6
 
7
+ FOUNDATION_EXPORT NSString *const XDG_TRACK_EVENT_TYPE;
8
+ FOUNDATION_EXPORT NSString *const XDG_TRACK_EVENT_NAME;
9
+ FOUNDATION_EXPORT NSString *const XDG_TRACK_EVENT_PROPERTIES;
10
+
11
+ FOUNDATION_EXPORT NSString *const XDG_TRACK_EVENT_TYPE_CUSTOMER_ID;
12
+ FOUNDATION_EXPORT NSString *const XDG_TRACK_EVENT_TYPE_SERVER;
13
+ FOUNDATION_EXPORT NSString *const XDG_TRACK_EVENT_TYPE_LEVEL;
14
+ FOUNDATION_EXPORT NSString *const XDG_TRACK_EVENT_TYPE_CREATE_ROLE;
15
+ FOUNDATION_EXPORT NSString *const XDG_TRACK_EVENT_TYPE_COMPLETED_TUTORIAL;
16
+ FOUNDATION_EXPORT NSString *const XDG_TRACK_EVENT_TYPE_UNLOCKED_ACHIEVEMENT;
17
+ FOUNDATION_EXPORT NSString *const XDG_TRACK_EVENT_TYPE_RATE;
18
+
7
19
  @interface XDGTrackerManager : NSObject
8
20
  /// 跟踪用户,默认是 XDID
9
21
  + (void)trackUser;
@@ -6,6 +6,10 @@
6
6
  NS_ASSUME_NONNULL_BEGIN
7
7
  @interface XDGUserDataManager : NSObject
8
8
 
9
+ @property (nonatomic, strong, nullable) XDGAccessToken *tempAccessToken;
10
+
11
+ + (XDGUserDataManager *)shareInstance;
12
+
9
13
  + (void)setCurrentUser:(XDGUser *)user;
10
14
  + (XDGUser *)getCurrentUserData;
11
15
 
@@ -20,10 +24,6 @@ NS_ASSUME_NONNULL_BEGIN
20
24
  + (BOOL)hasOldVersionAgreementSigned;
21
25
  + (void)saveCurrentUser;
22
26
 
23
- /// 推送开关
24
- + (BOOL)needPushService;
25
- + (void)updatePushServiceStatu:(BOOL)statu;
26
-
27
27
  @end
28
28
 
29
29
  NS_ASSUME_NONNULL_END
@@ -5,6 +5,6 @@
5
5
  // Created by Fattycat on 2022/5/13.
6
6
  //
7
7
 
8
- #define XDSDK_VERSION @"6.23.8"
9
- #define XDSDK_VERSION_CODE @"6023080"
10
- // HASH 838231ea
8
+ #define XDSDK_VERSION @"6.26.0"
9
+ #define XDSDK_VERSION_CODE @"6026000"
10
+ // HASH dc0678b1
@@ -8,7 +8,7 @@ namespace XD.SDK.Common
8
8
  {
9
9
  string UserId { get; set; }
10
10
 
11
- void InitSDK(XDGInitParam param, Action<bool, string> callback);
11
+ void InitSDK(Action<bool, string> callback);
12
12
 
13
13
  void IsInitialized(Action<bool> callback);
14
14
 
@@ -1,3 +1,11 @@
1
1
  fileFormatVersion: 2
2
2
  guid: e77dead93cf04e3697c4fe69898d0bee
3
- timeCreated: 1736841085
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -48,12 +48,7 @@ namespace XD.SDK.Common
48
48
 
49
49
  public static void InitSDK(Action<bool, string> callback)
50
50
  {
51
- InitSDK(new XDGInitParam(), callback);
52
- }
53
-
54
- public static void InitSDK(XDGInitParam param, Action<bool, string> callback)
55
- {
56
- platformWrapper.InitSDK(param, callback);
51
+ platformWrapper.InitSDK(callback);
57
52
  }
58
53
 
59
54
  public static void IsInitialized(Action<bool> callback)
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "com.xd.sdk.common",
3
3
  "displayName": "XDSDK Common",
4
- "version": "6.23.10",
4
+ "version": "6.26.0",
5
5
  "description": "XDSDK",
6
6
  "unity": "2018.3",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.xd.tds.common": "3.29.8-xd.1"
9
+ "com.xd.tds.common": "3.29.6-xd.1"
10
10
  }
11
11
  }
@@ -1,41 +0,0 @@
1
- using System;
2
-
3
- namespace XD.SDK.Common
4
- {
5
-
6
- public class XDGPackageType
7
- {
8
- // 普通包
9
- public const string PackageTypeDefault = "Default";
10
- // App Store 包
11
- public const string PackageTypeAppStore = "AppStore";
12
- // 普通 Android 包
13
- public const string PackageTypeAndroidNormal = "Android-Normal";
14
- // GooglePlay 包
15
- public const string PackageTypeAndroidGooglePlay = "Android-GooglePlay";
16
- // TapTap 国内包
17
- public const string PackageTypeAndroidTapTap = "Android-TapTap";
18
- // TapTap 海外包
19
- public const string PackageTypeAndroidTapIO = "Android-TapIO";
20
- // 普通 PC 包
21
- public const string PackageTypePCNormal = "PC-Normal";
22
- // Steam 包
23
- public const string PackageTypePCSteam = "PC-Steam";
24
- // 国内 TapTap PC 启动器
25
- public const string PackageTypePCTapTap = "PC-TapTap";
26
- }
27
-
28
- public class XDGInitParam
29
- {
30
-
31
- /// <summary>
32
- /// 包体类型,请优先使用 XDGPackageType 预定义的类型
33
- /// </summary>
34
- public string PackageType;
35
-
36
- public XDGInitParam()
37
- {
38
-
39
- }
40
- }
41
- }
@@ -1,11 +0,0 @@
1
- fileFormatVersion: 2
2
- guid: 78547f8311de4b72bf0b4317668b06c2
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant: