-
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,15 @@ | ||
<?xml version="1.0" ?> | ||
<dependencies> | ||
<androidPackages> | ||
<repositories> | ||
<repository>https://repo.maven.apache.org/maven2</repository> | ||
</repositories> | ||
<androidPackage spec="com.taptap.sdk:tap-compliance:4.5.2"/> | ||
</androidPackages> | ||
<iosPods> | ||
<sources> | ||
<source>https://github.com/CocoaPods/Specs.git</source> | ||
</sources> | ||
<iosPod name="TapTapComplianceSDK" version="~> 4.5.2" bitcodeEnabled="false" addToAllTargets="false"/> | ||
</iosPods> | ||
</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,21 @@ | ||
using System; | ||
using TapSDK.Core.Editor; | ||
using UnityEditor.Build.Reporting; | ||
|
||
namespace TapSDK.Compliance.Mobile.Editor { | ||
public class TapComplianceMobileProcessBuild : SDKLinkProcessBuild { | ||
public override int callbackOrder => 4; | ||
|
||
public override string LinkPath => "TapSDK/Compliance/link.xml"; | ||
|
||
public override LinkedAssembly[] LinkedAssemblies => new LinkedAssembly[] { | ||
new LinkedAssembly { Fullname = "TapSDK.Compliance" }, | ||
new LinkedAssembly { Fullname = "TapSDK.Compliance.Runtime" }, | ||
new LinkedAssembly { Fullname = "TapSDK.Compliance.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.Compliance.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,45 @@ | ||
using UnityEngine; | ||
using UnityEditor; | ||
using UnityEditor.Callbacks; | ||
# if UNITY_IOS | ||
using UnityEditor.iOS.Xcode; | ||
#endif | ||
using System.IO; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using TapSDK.Core.Editor; | ||
|
||
#if UNITY_IOS | ||
public class BuildPostProcessor | ||
{ | ||
[PostProcessBuild(999)] | ||
public static void OnPostProcessBuild(BuildTarget buildTarget, string path) | ||
{ | ||
if (buildTarget == BuildTarget.iOS) | ||
{ | ||
var projPath = TapSDKCoreCompile.GetProjPath(path); | ||
var proj = TapSDKCoreCompile.ParseProjPath(projPath); | ||
var target = TapSDKCoreCompile.GetUnityTarget(proj); | ||
|
||
if (TapSDKCoreCompile.CheckTarget(target)) | ||
{ | ||
Debug.LogError("Unity-iPhone is NUll"); | ||
return; | ||
} | ||
if (TapSDKCoreCompile.HandlerIOSSetting(path, | ||
Application.dataPath, | ||
"TapTapComplianceResource", | ||
"com.taptap.sdk.compliance", | ||
"Compliance", | ||
new[] {"TapTapComplianceResource.bundle"}, | ||
target, projPath, proj, "TapTapComplianceSDK")) | ||
{ | ||
Debug.Log("TapCompliance add Bundle Success!"); | ||
return; | ||
} | ||
|
||
Debug.LogWarning("TapCompliance add Bundle Failed!"); | ||
} | ||
} | ||
} | ||
#endif |
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.