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.
- package/Editor/Android/XDCommonAndroidGradleProcessor.cs +2 -0
- package/Editor/XD.SDK.Common.Editor.asmdef +2 -1
- package/Plugins/Android/libs/XDGBridgeCommon_v7_7.2.0.aar +0 -0
- package/Plugins/Android/libs/XDGCommon_7.2.0.aar +0 -0
- package/Plugins/Android/libs/XDGTapTapWrapperInternal_7.2.0.aar +0 -0
- package/Plugins/Android/libs/{XDTapTapWrapper_7.1.0.aar → XDTapTapWrapper_7.2.0.aar} +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_chat.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_chat.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_invite.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_invite.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_unfollow.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark/tap_profile_unfollow.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/dark.meta +8 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_chat.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_chat.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_invite.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_invite.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_unfollow.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light/tap_profile_unfollow.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/light.meta +8 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_achievement.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_achievement.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_achievement_platinum.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_achievement_platinum.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_arrow.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_arrow.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_close.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_close.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_default_background.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_default_background.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_logo.png +0 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile/tap_profile_logo.png.meta +7 -0
- package/Plugins/iOS/Resource/TapTapLoginResource.bundle/userProfile.meta +8 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/NSError+XDG.h +1 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/TDSGlobalRouterSchemes.h +2 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDConfigManager.h +1 -1
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGAnnouncementConfig.h.meta +7 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGAnnouncementManager.h.meta +7 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGCloudLogHelper.h +4 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGConfig.h +2 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGInitParam.h +5 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDTapTapInfo.h +7 -1
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDVersion.h +3 -3
- package/Plugins/iOS/XDCommonSDK.framework/Info.plist +0 -0
- package/Plugins/iOS/XDCommonSDK.framework/XDCommonSDK +0 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Headers/XDTapSDK4WrapperSDK-Swift.h +1 -1
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Headers/XDTapSDK4WrapperSDK.h +3 -3
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Info.plist +0 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Modules/XDTapSDK4WrapperSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Modules/XDTapSDK4WrapperSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Modules/XDTapSDK4WrapperSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/XDTapSDK4WrapperSDK +0 -0
- package/Resources/Prefabs/AccountCell.prefab +24 -15
- package/Resources/Prefabs/AgreementOptionAll.prefab +15 -9
- package/Resources/Prefabs/AgreementOptionNormal.prefab +16 -10
- package/Resources/Prefabs/AreaCodeCell.prefab +13 -8
- package/Resources/Prefabs/CancelAccountAlert.prefab +23 -23
- package/Resources/Prefabs/CenterErrorView.prefab +8 -8
- package/Resources/Prefabs/ConfirmDialog.prefab +20 -20
- package/Resources/Prefabs/DeleteAccountAlert.prefab +48 -45
- package/Resources/Prefabs/DeleteCell.prefab +6 -6
- package/Resources/Prefabs/Dialog.prefab +24 -24
- package/Resources/Prefabs/DisagreeConfirmAlert.prefab +15 -15
- package/Resources/Prefabs/GeneralAgreementAlert.prefab +53 -31
- package/Resources/Prefabs/LoadFailedView.prefab +12 -12
- package/Resources/Prefabs/LoadingView.prefab +9 -6
- package/Resources/Prefabs/PayHintAlert.prefab +17 -15
- package/Resources/Prefabs/PayLoadFailedView.prefab +13 -13
- package/Resources/Prefabs/PaymentAlert.prefab +9 -5
- package/Resources/Prefabs/SmallLoadingView.prefab +4 -4
- package/Resources/Prefabs/UserCenterAlert.prefab +76 -46
- package/Resources/Prefabs/XDCodeUnbindAlert.prefab +56 -34
- package/Resources/Prefabs/XDEmailAlert.prefab +84 -49
- package/Resources/Prefabs/XDPhoneAlertIO.prefab +129 -65
- package/Resources/Prefabs/XDPhoneNumberInputAlert.prefab +46 -28
- package/Resources/Prefabs/XDRiskControlAlert.prefab +12 -7
- package/Resources/Prefabs/XDSDKUI.prefab +3 -3
- package/Resources/Prefabs/XDVerifyCodeInputAlert.prefab +47 -28
- package/Resources/Prefabs/XDWebBridgeView.prefab +11 -11
- package/Resources/Prefabs/XDWebViewAlert.prefab +10 -10
- package/Resources/Shaders/UI/UI-Default-Gamma.shader +129 -0
- package/Resources/Shaders/UI/UI-Default-Gamma.shader.meta +9 -0
- package/Resources/Shaders/UI/UI_Default-Gamma.mat +36 -0
- package/Resources/Shaders/UI/UI_Default-Gamma.mat.meta +8 -0
- package/Resources/Shaders/UI/UI_Default-Mask.mat +36 -0
- package/Resources/Shaders/UI/UI_Default-Mask.mat.meta +8 -0
- package/Resources/Shaders/UI.meta +8 -0
- package/Resources/Shaders.meta +8 -0
- package/Runtime/Internal/Events/XDGEventBus.cs +140 -17
- package/Runtime/Internal/Mobile/CommonFeaturesImpl.cs +11 -10
- package/Runtime/Internal/Mobile/Http/CommonParamsInterceptor.cs +1 -1
- package/Runtime/Internal/Standalone/Agreement/AgreementModule.cs +4 -4
- package/Runtime/Internal/Standalone/CommonFeaturesImpl.cs +7 -5
- package/Runtime/Internal/Standalone/Config/AppConfig.cs +3 -1
- package/Runtime/Internal/Standalone/Config/ConfigModule.cs +5 -2
- package/Runtime/Internal/Standalone/Http/Interceptor/MacAuthenticationInterceptor.cs +7 -7
- package/Runtime/Internal/Standalone/Http/Interceptor/StandaloneErrorHandlingInterceptor.cs +5 -5
- package/Runtime/Internal/Standalone/Http/XDHttpUtils.cs +39 -16
- package/Runtime/Internal/Standalone/IPInfo/IPInfoModule.cs +42 -20
- package/Runtime/Internal/Standalone/IPInfo/XDGAreaCode.cs +1 -1
- package/Runtime/Internal/Standalone/Persistence/Persistence.cs +42 -22
- package/Runtime/Internal/Standalone/Steam/SteamUtils.cs +14 -7
- package/Runtime/Internal/Standalone/Track/AliyunTrack.cs +41 -34
- package/Runtime/Internal/Standalone/UI/Base/UIManager.cs +4 -3
- package/Runtime/Internal/Standalone/UI/Base/XDGCommonUIResources.cs +107 -0
- package/Runtime/Internal/Standalone/UI/Base/XDGCommonUIResources.cs.meta +11 -0
- package/Runtime/Internal/Standalone/UI/Controllers/CancelAccountAlert.cs +69 -33
- package/Runtime/Internal/Standalone/UI/Controllers/GeneralAgreementAlert.cs +29 -22
- package/Runtime/Internal/Standalone/UI/Controllers/XDWebViewAlert.cs +4 -5
- package/Runtime/Internal/Standalone/Utils/SteamWrapper.cs +2 -2
- package/Runtime/Internal/Standalone/Utils/TaskDispatcher.cs +1 -1
- package/Runtime/Internal/Standalone/Utils/WindowsRegistryAccess.cs +7 -7
- package/Runtime/Internal/Standalone/Web/Function/BackgroundColorWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/ClipboardWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/CloseWebFunction.cs +13 -4
- package/Runtime/Internal/Standalone/Web/Function/DeviceInfoWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/GameMessageWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/GetSafeAreaWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/GetStorageWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/HttpRequestWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/LoadingWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/LogWebFunction.cs +5 -5
- package/Runtime/Internal/Standalone/Web/Function/NavigationWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/OpenPageWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/PutStorageWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/ToastWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/TrackEventWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/WebBridgeController.cs +6 -7
- package/Runtime/Internal/Standalone/Web/WebRequest.cs +3 -3
- package/Runtime/Internal/Standalone/Web/XDWebBridgeView.cs +1 -1
- package/Runtime/Internal/XDGCommonInternal.cs +1 -1
- package/package.json +2 -2
- package/Plugins/Android/libs/XDGBridgeCommon_v7_7.1.0.aar +0 -0
- package/Plugins/Android/libs/XDGCommon_7.1.0.aar +0 -0
- package/Plugins/Android/libs/XDGTapTapWrapperInternal_7.1.0.aar +0 -0
- package/Runtime/Internal/Core/ReflectionUtils.cs +0 -640
- package/Runtime/Internal/Core/ReflectionUtils.cs.meta +0 -3
- /package/Plugins/Android/libs/{XDGBridgeCommon_v7_7.1.0.aar.meta → XDGBridgeCommon_v7_7.2.0.aar.meta} +0 -0
- /package/Plugins/Android/libs/{XDGCommon_7.1.0.aar.meta → XDGCommon_7.2.0.aar.meta} +0 -0
- /package/Plugins/Android/libs/{XDGTapTapWrapperInternal_7.1.0.aar.meta → XDGTapTapWrapperInternal_7.2.0.aar.meta} +0 -0
- /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
|
-
|
|
84
|
+
public static TValue GetValueOrDefault<TKey, TValue>(
|
|
85
85
|
Dictionary<TKey, TValue> dictionary,
|
|
86
86
|
TKey key,
|
|
87
87
|
TValue defaultValue)
|
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.
|
|
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.
|
|
9
|
+
"com.xd.sdk.foundation": "7.2.0"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|