com.taptap.sdk.review 4.4.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/Editor/NativeDependencies.xml +9 -0
- package/Mobile/Editor/NativeDependencies.xml.meta +3 -0
- package/Mobile/Editor/TapReviewMobileProcessBuild.cs +19 -0
- package/Mobile/Editor/TapReviewMobileProcessBuild.cs.meta +11 -0
- package/Mobile/Editor/TapSDK.Review.Mobile.Editor.asmdef +17 -0
- package/Mobile/Editor/TapSDK.Review.Mobile.Editor.asmdef.meta +7 -0
- package/Mobile/Editor.meta +8 -0
- package/Mobile/Runtime/TapReviewBridge.cs +35 -0
- package/Mobile/Runtime/TapReviewBridge.cs.meta +11 -0
- package/Mobile/Runtime/TapSDK.Review.Mobile.Runtime.asmdef +21 -0
- package/Mobile/Runtime/TapSDK.Review.Mobile.Runtime.asmdef.meta +7 -0
- package/Mobile/Runtime.meta +8 -0
- package/Mobile.meta +8 -0
- package/Runtime/Internal/ITapReviewBridge.cs +5 -0
- package/Runtime/Internal/ITapReviewBridge.cs.meta +11 -0
- package/Runtime/Internal/TapReviewInitTask.cs +18 -0
- package/Runtime/Internal/TapReviewInitTask.cs.meta +11 -0
- package/Runtime/Internal/TapTapReviewInner.cs +25 -0
- package/Runtime/Internal/TapTapReviewInner.cs.meta +11 -0
- package/Runtime/Internal.meta +8 -0
- package/Runtime/Public/TapTapReview.cs +15 -0
- package/Runtime/Public/TapTapReview.cs.meta +11 -0
- package/Runtime/Public.meta +8 -0
- package/Runtime/TapSDK.Review.Runtime.asmdef +15 -0
- package/Runtime/TapSDK.Review.Runtime.asmdef.meta +7 -0
- package/Runtime.meta +8 -0
- package/link.xml +3 -0
- package/link.xml.meta +7 -0
- package/package.json +11 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
using System;
|
|
2
|
+
using UnityEditor.Build.Reporting;
|
|
3
|
+
using TapSDK.Core.Editor;
|
|
4
|
+
|
|
5
|
+
namespace TapSDK.Review.Mobile.Editor {
|
|
6
|
+
public class TapReviewMobileProcessBuild : SDKLinkProcessBuild {
|
|
7
|
+
public override int callbackOrder => 0;
|
|
8
|
+
|
|
9
|
+
public override string LinkPath => "TapSDK/Review/link.xml";
|
|
10
|
+
|
|
11
|
+
public override LinkedAssembly[] LinkedAssemblies => new LinkedAssembly[] {
|
|
12
|
+
new LinkedAssembly { Fullname = "TapSDK.Review.Mobile.Runtime" }
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
public override Func<BuildReport, bool> IsTargetPlatform => (report) => {
|
|
16
|
+
return BuildTargetUtils.IsSupportMobile(report.summary.platform);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "TapSDK.Review.Mobile.Editor",
|
|
3
|
+
"references": [
|
|
4
|
+
"GUID:56f3da7a178484843974054bafe77e73"
|
|
5
|
+
],
|
|
6
|
+
"includePlatforms": [
|
|
7
|
+
"Editor"
|
|
8
|
+
],
|
|
9
|
+
"excludePlatforms": [],
|
|
10
|
+
"allowUnsafeCode": false,
|
|
11
|
+
"overrideReferences": false,
|
|
12
|
+
"precompiledReferences": [],
|
|
13
|
+
"autoReferenced": true,
|
|
14
|
+
"defineConstraints": [],
|
|
15
|
+
"versionDefines": [],
|
|
16
|
+
"noEngineReferences": false
|
|
17
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
using System.Collections.Generic;
|
|
2
|
+
using TapSDK.Core;
|
|
3
|
+
using System;
|
|
4
|
+
using TapSDK.Review.Internal;
|
|
5
|
+
|
|
6
|
+
namespace TapSDK.Review.Mobile
|
|
7
|
+
{
|
|
8
|
+
public class TapReviewBridge : ITapReviewBridge
|
|
9
|
+
{
|
|
10
|
+
public static string TAP_REVIEW_SERVICE = "BridgeReviewService";
|
|
11
|
+
|
|
12
|
+
public static string TDS_REVIEW_SERVICE_CLZ = "com.taptap.sdk.review.unity.BridgeReviewService";
|
|
13
|
+
|
|
14
|
+
public static string TDS_REVIEW_SERVICE_IMPL = "com.taptap.sdk.review.unity.BridgeReviewServiceImpl";
|
|
15
|
+
|
|
16
|
+
public TapReviewBridge()
|
|
17
|
+
{
|
|
18
|
+
EngineBridge.GetInstance().Register(TDS_REVIEW_SERVICE_CLZ, TDS_REVIEW_SERVICE_IMPL);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
public void OpenReview()
|
|
22
|
+
{
|
|
23
|
+
#if UNITY_ANDROID
|
|
24
|
+
EngineBridge.GetInstance().CallHandler(new Command.Builder()
|
|
25
|
+
.Service(TAP_REVIEW_SERVICE)
|
|
26
|
+
.Method("openReview")
|
|
27
|
+
.Callback(false)
|
|
28
|
+
.OnceTime(true)
|
|
29
|
+
.CommandBuilder());
|
|
30
|
+
#else
|
|
31
|
+
throw new NotImplementedException("TapReview::OpenReview Only Support On Android");
|
|
32
|
+
#endif
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "TapSDK.Review.Mobile.Runtime",
|
|
3
|
+
"references": [
|
|
4
|
+
"GUID:89a99d04b975e4813bb096587570e125",
|
|
5
|
+
"GUID:7d5ef2062f3704e1ab74aac0e4d5a1a7",
|
|
6
|
+
"GUID:10560023d8780423cb943c7a324b69f2",
|
|
7
|
+
"GUID:951a253a12cce498ba1ee7bd3c4fa282"
|
|
8
|
+
],
|
|
9
|
+
"includePlatforms": [
|
|
10
|
+
"Android",
|
|
11
|
+
"iOS"
|
|
12
|
+
],
|
|
13
|
+
"excludePlatforms": [],
|
|
14
|
+
"allowUnsafeCode": false,
|
|
15
|
+
"overrideReferences": false,
|
|
16
|
+
"precompiledReferences": [],
|
|
17
|
+
"autoReferenced": true,
|
|
18
|
+
"defineConstraints": [],
|
|
19
|
+
"versionDefines": [],
|
|
20
|
+
"noEngineReferences": false
|
|
21
|
+
}
|
package/Mobile.meta
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
using TapSDK.Core;
|
|
2
|
+
using TapSDK.Core.Internal.Init;
|
|
3
|
+
|
|
4
|
+
namespace TapSDK.Review.Internal.Init
|
|
5
|
+
{
|
|
6
|
+
public sealed class TapReviewInitTask : IInitTask
|
|
7
|
+
{
|
|
8
|
+
public int Order => 17;
|
|
9
|
+
|
|
10
|
+
public void Init(TapTapSdkOptions coreOption)
|
|
11
|
+
{
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public void Init(TapTapSdkOptions coreOption, TapTapSdkBaseOptions[] otherOptions)
|
|
15
|
+
{
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
using TapSDK.Core.Internal.Utils;
|
|
2
|
+
|
|
3
|
+
namespace TapSDK.Review.Internal
|
|
4
|
+
{
|
|
5
|
+
internal class TapTapReviewInner
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
static readonly ITapReviewBridge reviewBridge;
|
|
9
|
+
|
|
10
|
+
static TapTapReviewInner()
|
|
11
|
+
{
|
|
12
|
+
reviewBridge = BridgeUtils.CreateBridgeImplementation(typeof(ITapReviewBridge), "TapSDK.Review")
|
|
13
|
+
as ITapReviewBridge;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
internal static void OpenReview()
|
|
17
|
+
{
|
|
18
|
+
if (reviewBridge == null)
|
|
19
|
+
{
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
reviewBridge.OpenReview();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "TapSDK.Review.Runtime",
|
|
3
|
+
"references": [
|
|
4
|
+
"GUID:7d5ef2062f3704e1ab74aac0e4d5a1a7"
|
|
5
|
+
],
|
|
6
|
+
"includePlatforms": [],
|
|
7
|
+
"excludePlatforms": [],
|
|
8
|
+
"allowUnsafeCode": false,
|
|
9
|
+
"overrideReferences": false,
|
|
10
|
+
"precompiledReferences": [],
|
|
11
|
+
"autoReferenced": true,
|
|
12
|
+
"defineConstraints": [],
|
|
13
|
+
"versionDefines": [],
|
|
14
|
+
"noEngineReferences": false
|
|
15
|
+
}
|
package/Runtime.meta
ADDED
package/link.xml
ADDED
package/link.xml.meta
ADDED
package/package.json
ADDED