-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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); | ||
}; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace TapSDK.Review.Internal { | ||
public interface ITapReviewBridge { | ||
void OpenReview(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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) | ||
{ | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.