com.xd.sdk.common 7.1.1 → 7.2.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 (141) hide show
  1. package/Editor/Android/XDCommonAndroidGradleProcessor.cs +2 -0
  2. package/Editor/XD.SDK.Common.Editor.asmdef +2 -1
  3. package/Plugins/Android/libs/XDGBridgeCommon_v7_7.2.0.aar +0 -0
  4. package/Plugins/Android/libs/XDGCommon_7.2.0.aar +0 -0
  5. package/Plugins/Android/libs/XDGTapTapWrapperInternal_7.2.0.aar +0 -0
  6. package/Plugins/Android/libs/{XDTapTapWrapper_7.1.0.aar → XDTapTapWrapper_7.2.0.aar} +0 -0
  7. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_chat.png +0 -0
  8. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_chat.png.meta +7 -0
  9. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_invite.png +0 -0
  10. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_invite.png.meta +7 -0
  11. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_unfollow.png +0 -0
  12. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_unfollow.png.meta +7 -0
  13. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark.meta +8 -0
  14. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_chat.png +0 -0
  15. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_chat.png.meta +7 -0
  16. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_invite.png +0 -0
  17. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_invite.png.meta +7 -0
  18. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_unfollow.png +0 -0
  19. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_unfollow.png.meta +7 -0
  20. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light.meta +8 -0
  21. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_achievement.png +0 -0
  22. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_achievement.png.meta +7 -0
  23. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_achievement_platinum.png +0 -0
  24. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_achievement_platinum.png.meta +7 -0
  25. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_arrow.png +0 -0
  26. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_arrow.png.meta +7 -0
  27. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_close.png +0 -0
  28. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_close.png.meta +7 -0
  29. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_default_background.png +0 -0
  30. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_default_background.png.meta +7 -0
  31. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_logo.png +0 -0
  32. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_logo.png.meta +7 -0
  33. package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile.meta +8 -0
  34. package/Plugins/iOS/XDCommonSDK.framework/Headers/NSError+XDG.h +1 -0
  35. package/Plugins/iOS/XDCommonSDK.framework/Headers/TDSGlobalRouterSchemes.h +2 -0
  36. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDConfigManager.h +1 -1
  37. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGAnnouncementConfig.h.meta +7 -0
  38. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGAnnouncementManager.h.meta +7 -0
  39. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGCloudLogHelper.h +4 -0
  40. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGConfig.h +2 -0
  41. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGInitParam.h +5 -0
  42. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDTapTapInfo.h +7 -1
  43. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDVersion.h +3 -3
  44. package/Plugins/iOS/XDCommonSDK.framework/Info.plist +0 -0
  45. package/Plugins/iOS/XDCommonSDK.framework/XDCommonSDK +0 -0
  46. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Headers/XDTapSDK4WrapperSDK-Swift.h +1 -1
  47. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Headers/XDTapSDK4WrapperSDK.h +3 -3
  48. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Info.plist +0 -0
  49. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Modules/XDTapSDK4WrapperSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  50. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Modules/XDTapSDK4WrapperSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  51. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Modules/XDTapSDK4WrapperSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  52. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/XDTapSDK4WrapperSDK +0 -0
  53. package/Resources/Prefabs/AccountCell.prefab +24 -15
  54. package/Resources/Prefabs/AgreementOptionAll.prefab +15 -9
  55. package/Resources/Prefabs/AgreementOptionNormal.prefab +16 -10
  56. package/Resources/Prefabs/AreaCodeCell.prefab +13 -8
  57. package/Resources/Prefabs/CancelAccountAlert.prefab +23 -23
  58. package/Resources/Prefabs/CenterErrorView.prefab +8 -8
  59. package/Resources/Prefabs/ConfirmDialog.prefab +20 -20
  60. package/Resources/Prefabs/DeleteAccountAlert.prefab +48 -45
  61. package/Resources/Prefabs/DeleteCell.prefab +6 -6
  62. package/Resources/Prefabs/Dialog.prefab +24 -24
  63. package/Resources/Prefabs/DisagreeConfirmAlert.prefab +15 -15
  64. package/Resources/Prefabs/GeneralAgreementAlert.prefab +53 -31
  65. package/Resources/Prefabs/LoadFailedView.prefab +12 -12
  66. package/Resources/Prefabs/LoadingView.prefab +9 -6
  67. package/Resources/Prefabs/PayHintAlert.prefab +17 -15
  68. package/Resources/Prefabs/PayLoadFailedView.prefab +13 -13
  69. package/Resources/Prefabs/PaymentAlert.prefab +9 -5
  70. package/Resources/Prefabs/SmallLoadingView.prefab +4 -4
  71. package/Resources/Prefabs/UserCenterAlert.prefab +76 -46
  72. package/Resources/Prefabs/XDCodeUnbindAlert.prefab +56 -34
  73. package/Resources/Prefabs/XDEmailAlert.prefab +84 -49
  74. package/Resources/Prefabs/XDPhoneAlertIO.prefab +129 -65
  75. package/Resources/Prefabs/XDPhoneNumberInputAlert.prefab +46 -28
  76. package/Resources/Prefabs/XDRiskControlAlert.prefab +12 -7
  77. package/Resources/Prefabs/XDSDKUI.prefab +3 -3
  78. package/Resources/Prefabs/XDVerifyCodeInputAlert.prefab +47 -28
  79. package/Resources/Prefabs/XDWebBridgeView.prefab +11 -11
  80. package/Resources/Prefabs/XDWebViewAlert.prefab +10 -10
  81. package/Resources/Shaders/UI/UI-Default-Gamma.shader +129 -0
  82. package/Resources/Shaders/UI/UI-Default-Gamma.shader.meta +9 -0
  83. package/Resources/Shaders/UI/UI_Default-Gamma.mat +36 -0
  84. package/Resources/Shaders/UI/UI_Default-Gamma.mat.meta +8 -0
  85. package/Resources/Shaders/UI/UI_Default-Mask.mat +36 -0
  86. package/Resources/Shaders/UI/UI_Default-Mask.mat.meta +8 -0
  87. package/Resources/Shaders/UI.meta +8 -0
  88. package/Resources/Shaders.meta +8 -0
  89. package/Runtime/Internal/Events/XDGEventBus.cs +140 -17
  90. package/Runtime/Internal/Mobile/CommonFeaturesImpl.cs +11 -10
  91. package/Runtime/Internal/Mobile/Http/CommonParamsInterceptor.cs +1 -1
  92. package/Runtime/Internal/Standalone/Agreement/AgreementModule.cs +4 -4
  93. package/Runtime/Internal/Standalone/CommonFeaturesImpl.cs +7 -5
  94. package/Runtime/Internal/Standalone/Config/AppConfig.cs +3 -1
  95. package/Runtime/Internal/Standalone/Config/ConfigModule.cs +5 -2
  96. package/Runtime/Internal/Standalone/Http/Interceptor/MacAuthenticationInterceptor.cs +7 -7
  97. package/Runtime/Internal/Standalone/Http/Interceptor/StandaloneErrorHandlingInterceptor.cs +5 -5
  98. package/Runtime/Internal/Standalone/Http/XDHttpUtils.cs +39 -16
  99. package/Runtime/Internal/Standalone/IPInfo/IPInfoModule.cs +42 -20
  100. package/Runtime/Internal/Standalone/IPInfo/XDGAreaCode.cs +1 -1
  101. package/Runtime/Internal/Standalone/Persistence/Persistence.cs +42 -22
  102. package/Runtime/Internal/Standalone/Steam/SteamUtils.cs +14 -7
  103. package/Runtime/Internal/Standalone/Track/AliyunTrack.cs +41 -34
  104. package/Runtime/Internal/Standalone/UI/Base/UIManager.cs +4 -3
  105. package/Runtime/Internal/Standalone/UI/Base/XDGCommonUIResources.cs +107 -0
  106. package/Runtime/Internal/Standalone/UI/Base/XDGCommonUIResources.cs.meta +11 -0
  107. package/Runtime/Internal/Standalone/UI/Controllers/CancelAccountAlert.cs +69 -33
  108. package/Runtime/Internal/Standalone/UI/Controllers/GeneralAgreementAlert.cs +29 -22
  109. package/Runtime/Internal/Standalone/UI/Controllers/XDWebViewAlert.cs +4 -5
  110. package/Runtime/Internal/Standalone/Utils/SteamWrapper.cs +2 -2
  111. package/Runtime/Internal/Standalone/Utils/TaskDispatcher.cs +1 -1
  112. package/Runtime/Internal/Standalone/Utils/WindowsRegistryAccess.cs +7 -7
  113. package/Runtime/Internal/Standalone/Web/Function/BackgroundColorWebFunction.cs +1 -1
  114. package/Runtime/Internal/Standalone/Web/Function/ClipboardWebFunction.cs +1 -1
  115. package/Runtime/Internal/Standalone/Web/Function/CloseWebFunction.cs +13 -4
  116. package/Runtime/Internal/Standalone/Web/Function/DeviceInfoWebFunction.cs +1 -1
  117. package/Runtime/Internal/Standalone/Web/Function/GameMessageWebFunction.cs +1 -1
  118. package/Runtime/Internal/Standalone/Web/Function/GetSafeAreaWebFunction.cs +1 -1
  119. package/Runtime/Internal/Standalone/Web/Function/GetStorageWebFunction.cs +1 -1
  120. package/Runtime/Internal/Standalone/Web/Function/HttpRequestWebFunction.cs +1 -1
  121. package/Runtime/Internal/Standalone/Web/Function/LoadingWebFunction.cs +1 -1
  122. package/Runtime/Internal/Standalone/Web/Function/LogWebFunction.cs +5 -5
  123. package/Runtime/Internal/Standalone/Web/Function/NavigationWebFunction.cs +1 -1
  124. package/Runtime/Internal/Standalone/Web/Function/OpenPageWebFunction.cs +1 -1
  125. package/Runtime/Internal/Standalone/Web/Function/PutStorageWebFunction.cs +1 -1
  126. package/Runtime/Internal/Standalone/Web/Function/ToastWebFunction.cs +1 -1
  127. package/Runtime/Internal/Standalone/Web/Function/TrackEventWebFunction.cs +1 -1
  128. package/Runtime/Internal/Standalone/Web/WebBridgeController.cs +6 -7
  129. package/Runtime/Internal/Standalone/Web/WebRequest.cs +3 -3
  130. package/Runtime/Internal/Standalone/Web/XDWebBridgeView.cs +1 -1
  131. package/Runtime/Internal/XDGCommonInternal.cs +1 -1
  132. package/package.json +2 -2
  133. package/Plugins/Android/libs/XDGBridgeCommon_v7_7.1.0.aar +0 -0
  134. package/Plugins/Android/libs/XDGCommon_7.1.0.aar +0 -0
  135. package/Plugins/Android/libs/XDGTapTapWrapperInternal_7.1.0.aar +0 -0
  136. package/Runtime/Internal/Core/ReflectionUtils.cs +0 -640
  137. package/Runtime/Internal/Core/ReflectionUtils.cs.meta +0 -3
  138. /package/Plugins/Android/libs/{XDGBridgeCommon_v7_7.1.0.aar.meta → XDGBridgeCommon_v7_7.2.0.aar.meta} +0 -0
  139. /package/Plugins/Android/libs/{XDGCommon_7.1.0.aar.meta → XDGCommon_7.2.0.aar.meta} +0 -0
  140. /package/Plugins/Android/libs/{XDGTapTapWrapperInternal_7.1.0.aar.meta → XDGTapTapWrapperInternal_7.2.0.aar.meta} +0 -0
  141. /package/Plugins/Android/libs/{XDTapTapWrapper_7.1.0.aar.meta → XDTapTapWrapper_7.2.0.aar.meta} +0 -0
@@ -15,7 +15,7 @@ namespace XD.SDK.Common.Internal.Standalone
15
15
 
16
16
  public void Handler(IBridgeWebView webView, string data, Action<object> callbackFunction)
17
17
  {
18
- XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}");
18
+ XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}", XDGLoggerTag.Web);
19
19
  webView.ProviderWebTrans()?.Transparent(GetName(), data);
20
20
  }
21
21
  }
@@ -16,7 +16,7 @@ namespace XD.SDK.Common.Internal.Standalone
16
16
 
17
17
  public void Handler(IBridgeWebView webView, string data, Action<object> callbackFunction)
18
18
  {
19
- XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}");
19
+ XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}", XDGLoggerTag.Web);
20
20
  var bean = JsonConvert.DeserializeObject<OpenPageBean>(data);
21
21
  if (string.IsNullOrEmpty(bean.URL)) return;
22
22
  switch (bean.Type)
@@ -15,7 +15,7 @@ namespace XD.SDK.Common.Internal.Standalone
15
15
 
16
16
  public void Handler(IBridgeWebView webView, string data, Action<object> callbackFunction)
17
17
  {
18
- XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}");
18
+ XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}", XDGLoggerTag.Web);
19
19
  try
20
20
  {
21
21
  var dic = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
@@ -15,7 +15,7 @@ namespace XD.SDK.Common.Internal.Standalone
15
15
 
16
16
  public void Handler(IBridgeWebView webView, string data, Action<object> callbackFunction)
17
17
  {
18
- XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}");
18
+ XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}", XDGLoggerTag.Web);
19
19
  var message = JsonConvert.DeserializeObject<Dictionary<string, object>>(data)["message"] as string;
20
20
  UIManager.ShowToast(message);
21
21
  }
@@ -14,7 +14,7 @@ namespace XD.SDK.Common.Internal.Standalone
14
14
 
15
15
  public void Handler(IBridgeWebView webView, string data, Action<object> callbackFunction)
16
16
  {
17
- XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}");
17
+ XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}", XDGLoggerTag.Web);
18
18
  var trackEventBean = JsonConvert.DeserializeObject<WebTrackEventBean>(data);
19
19
  XDGCommon.TrackEvent(trackEventBean.TrackEvent, trackEventBean.EventsMap);
20
20
  }
@@ -42,7 +42,7 @@ namespace XD.SDK.Common.Internal.Standalone
42
42
  {
43
43
  if (!IsWhiteList())
44
44
  {
45
- XDGLogger.Debug($"WebBridgeController OnMessageEmitted 白名单校验失败");
45
+ XDGLogger.Debug($"WebBridgeController OnMessageEmitted 白名单校验失败", XDGLoggerTag.Bridge);
46
46
  return;
47
47
  }
48
48
 
@@ -50,7 +50,7 @@ namespace XD.SDK.Common.Internal.Standalone
50
50
  var dic = JsonConvert.DeserializeObject<Dictionary<string, object>>(content);
51
51
  if (dic == null)
52
52
  {
53
- XDGLogger.Debug($"WebBridgeController OnMessageEmitted 解析 jsBridge 参数失败");
53
+ XDGLogger.Debug($"WebBridgeController OnMessageEmitted 解析 jsBridge 参数失败", XDGLoggerTag.Bridge);
54
54
  return;
55
55
  }
56
56
 
@@ -66,13 +66,13 @@ namespace XD.SDK.Common.Internal.Standalone
66
66
  }
67
67
  catch (Exception e)
68
68
  {
69
- XDGLogger.Debug(e.Message);
69
+ XDGLogger.Debug(e.Message, XDGLoggerTag.Bridge);
70
70
  }
71
71
  };
72
72
  }
73
73
  catch (Exception e)
74
74
  {
75
- XDGLogger.Debug(e.Message);
75
+ XDGLogger.Debug(e.Message, XDGLoggerTag.Bridge);
76
76
  }
77
77
  }
78
78
 
@@ -129,7 +129,7 @@ namespace XD.SDK.Common.Internal.Standalone
129
129
  // messageJson = Regex.Replace(messageJson, "%22", HttpUtility.UrlEncode("%22"));
130
130
  // messageJson = Regex.Replace(messageJson, "%", HttpUtility.UrlEncode("%"));
131
131
 
132
- XDGLogger.Debug($"WebBridge ExecuteJavaScript :{messageJson}");
132
+ XDGLogger.Debug($"WebBridge ExecuteJavaScript :{messageJson}", XDGLoggerTag.Bridge);
133
133
  var jsCommand = string.Format(WebBridgeConstants.JsHandleMessageFromCsharp,
134
134
  Convert.ToBase64String(Encoding.UTF8.GetBytes(messageJson)));
135
135
  webView.ExecuteJavaScript(jsCommand);
@@ -137,7 +137,6 @@ namespace XD.SDK.Common.Internal.Standalone
137
137
 
138
138
  public void Release()
139
139
  {
140
- webView?.Dispose();
141
140
  bridgeCallbacks?.Clear();
142
141
  handlerCallbacks?.Clear();
143
142
  }
@@ -163,7 +162,7 @@ namespace XD.SDK.Common.Internal.Standalone
163
162
  {
164
163
  var bridgeCallback = bridgeCallbacks[responseId];
165
164
  if (bridgeCallback == null) return;
166
- XDGLogger.Debug($"responseData:{JsonConvert.SerializeObject(responseData)}");
165
+ XDGLogger.Debug($"responseData:{JsonConvert.SerializeObject(responseData)}", XDGLoggerTag.Bridge);
167
166
  bridgeCallback(JsonConvert.SerializeObject(responseData));
168
167
  }
169
168
 
@@ -29,7 +29,7 @@ namespace XD.SDK.Common.Internal.Standalone
29
29
  }
30
30
  }
31
31
 
32
- XDGLogger.Debug("===> OpenWebPage " + url);
32
+ XDGLogger.Debug("===> OpenWebPage " + url, XDGLoggerTag.Web);
33
33
 
34
34
  UIManager.ShowUI<XDWebBridgeView>("XDWebBridgeView", new Dictionary<string, object>
35
35
  {
@@ -46,7 +46,7 @@ namespace XD.SDK.Common.Internal.Standalone
46
46
 
47
47
  private static async void PreloadWithCallback(string url, Action<WebActionEnum, Dictionary<string, object>> callback, bool noUI = false)
48
48
  {
49
- XDGLogger.Debug("===> Preload " + url);
49
+ XDGLogger.Debug("===> Preload " + url, XDGLoggerTag.Web);
50
50
 
51
51
  try
52
52
  {
@@ -81,7 +81,7 @@ namespace XD.SDK.Common.Internal.Standalone
81
81
  return dic;
82
82
  }
83
83
 
84
- internal static TValue GetValueOrDefault<TKey, TValue>(
84
+ public static TValue GetValueOrDefault<TKey, TValue>(
85
85
  Dictionary<TKey, TValue> dictionary,
86
86
  TKey key,
87
87
  TValue defaultValue)
@@ -94,7 +94,7 @@ namespace XD.SDK.Common.Internal.Standalone
94
94
  }
95
95
  catch (Exception e)
96
96
  {
97
- XDGLogger.Warn(e.Message);
97
+ XDGLogger.Warn(e.Message, XDGLoggerTag.Web);
98
98
  }
99
99
  }
100
100
 
@@ -17,7 +17,7 @@ namespace XD.SDK.Common.Internal
17
17
  #endif
18
18
  if (platformWrapper == null)
19
19
  {
20
- XDGLogger.Error("unsupported platform: " + Application.platform);
20
+ XDGLogger.Error("unsupported platform: " + Application.platform, XDGLoggerTag.Common);
21
21
  }
22
22
  }
23
23
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "com.xd.sdk.common",
3
3
  "displayName": "XDGSDK Common",
4
- "version": "7.1.1",
4
+ "version": "7.2.0",
5
5
  "description": "XDGSDK",
6
6
  "unity": "2019.3",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.xd.sdk.foundation": "7.1.1"
9
+ "com.xd.sdk.foundation": "7.2.0"
10
10
  }
11
11
  }