Skip to content

Commit

Permalink
feat:update upm
Browse files Browse the repository at this point in the history
  • Loading branch information
lc1006 committed Dec 23, 2024
0 parents commit eb428e1
Show file tree
Hide file tree
Showing 28 changed files with 335 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Mobile.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Mobile/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Mobile/Editor/NativeDependencies.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" ?>
<dependencies>
<androidPackages>
<repositories>
<repository>https://repo.maven.apache.org/maven2</repository>
</repositories>
<androidPackage spec="com.taptap.sdk:tap-review-unity:4.5.2"/>
</androidPackages>
</dependencies>
3 changes: 3 additions & 0 deletions Mobile/Editor/NativeDependencies.xml.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions Mobile/Editor/TapReviewMobileProcessBuild.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using UnityEditor.Build.Reporting;
using TapSDK.Core.Editor;

namespace TapSDK.Review.Mobile.Editor {
public class TapReviewMobileProcessBuild : SDKLinkProcessBuild {
public override int callbackOrder => 0;

public override string LinkPath => "TapSDK/Review/link.xml";

public override LinkedAssembly[] LinkedAssemblies => new LinkedAssembly[] {
new LinkedAssembly { Fullname = "TapSDK.Review.Mobile.Runtime" }
};

public override Func<BuildReport, bool> IsTargetPlatform => (report) => {
return BuildTargetUtils.IsSupportMobile(report.summary.platform);
};
}
}
11 changes: 11 additions & 0 deletions Mobile/Editor/TapReviewMobileProcessBuild.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Mobile/Editor/TapSDK.Review.Mobile.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "TapSDK.Review.Mobile.Editor",
"references": [
"GUID:56f3da7a178484843974054bafe77e73"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
7 changes: 7 additions & 0 deletions Mobile/Editor/TapSDK.Review.Mobile.Editor.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Mobile/Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions Mobile/Runtime/TapReviewBridge.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Collections.Generic;
using TapSDK.Core;
using System;
using TapSDK.Review.Internal;

namespace TapSDK.Review.Mobile
{
public class TapReviewBridge : ITapReviewBridge
{
public static string TAP_REVIEW_SERVICE = "BridgeReviewService";

public static string TDS_REVIEW_SERVICE_CLZ = "com.taptap.sdk.review.unity.BridgeReviewService";

public static string TDS_REVIEW_SERVICE_IMPL = "com.taptap.sdk.review.unity.BridgeReviewServiceImpl";

public TapReviewBridge()
{
EngineBridge.GetInstance().Register(TDS_REVIEW_SERVICE_CLZ, TDS_REVIEW_SERVICE_IMPL);
}

public void OpenReview()
{
#if UNITY_ANDROID
EngineBridge.GetInstance().CallHandler(new Command.Builder()
.Service(TAP_REVIEW_SERVICE)
.Method("openReview")
.Callback(false)
.OnceTime(true)
.CommandBuilder());
#else
throw new NotImplementedException("TapReview::OpenReview Only Support On Android");
#endif
}
}
}
11 changes: 11 additions & 0 deletions Mobile/Runtime/TapReviewBridge.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Mobile/Runtime/TapSDK.Review.Mobile.Runtime.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "TapSDK.Review.Mobile.Runtime",
"references": [
"GUID:89a99d04b975e4813bb096587570e125",
"GUID:7d5ef2062f3704e1ab74aac0e4d5a1a7",
"GUID:10560023d8780423cb943c7a324b69f2",
"GUID:951a253a12cce498ba1ee7bd3c4fa282"
],
"includePlatforms": [
"Android",
"iOS"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
7 changes: 7 additions & 0 deletions Mobile/Runtime/TapSDK.Review.Mobile.Runtime.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Runtime/Internal.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Runtime/Internal/ITapReviewBridge.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace TapSDK.Review.Internal {
public interface ITapReviewBridge {
void OpenReview();
}
}
11 changes: 11 additions & 0 deletions Runtime/Internal/ITapReviewBridge.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions Runtime/Internal/TapReviewInitTask.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using TapSDK.Core;
using TapSDK.Core.Internal.Init;

namespace TapSDK.Review.Internal.Init
{
public sealed class TapReviewInitTask : IInitTask
{
public int Order => 17;

public void Init(TapTapSdkOptions coreOption)
{
}

public void Init(TapTapSdkOptions coreOption, TapTapSdkBaseOptions[] otherOptions)
{
}
}
}
11 changes: 11 additions & 0 deletions Runtime/Internal/TapReviewInitTask.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Runtime/Internal/TapTapReviewInner.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using TapSDK.Core.Internal.Utils;

namespace TapSDK.Review.Internal
{
internal class TapTapReviewInner
{

static readonly ITapReviewBridge reviewBridge;

static TapTapReviewInner()
{
reviewBridge = BridgeUtils.CreateBridgeImplementation(typeof(ITapReviewBridge), "TapSDK.Review")
as ITapReviewBridge;
}

internal static void OpenReview()
{
if (reviewBridge == null)
{
return;
}
reviewBridge.OpenReview();
}
}
}
11 changes: 11 additions & 0 deletions Runtime/Internal/TapTapReviewInner.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Runtime/Public.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Runtime/Public/TapTapReview.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using TapSDK.Review.Internal;

namespace TapSDK.Review
{
public class TapTapReview
{

public static readonly string Version = "4.5.2";

public static void OpenReview()
{
TapTapReviewInner.OpenReview();
}
}
}
11 changes: 11 additions & 0 deletions Runtime/Public/TapTapReview.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Runtime/TapSDK.Review.Runtime.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "TapSDK.Review.Runtime",
"references": [
"GUID:7d5ef2062f3704e1ab74aac0e4d5a1a7"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
7 changes: 7 additions & 0 deletions Runtime/TapSDK.Review.Runtime.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "com.taptap.sdk.review",
"displayName": "TapTapSDK Review",
"description": "TapTapSDK Review",
"version": "4.5.2",
"unity": "2019.4",
"license": "MIT",
"dependencies": {
"com.taptap.sdk.core": "4.5.2"
}
}
7 changes: 7 additions & 0 deletions package.json.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb428e1

Please sign in to comment.