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 a3edbcc
Show file tree
Hide file tree
Showing 189 changed files with 20,414 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.

15 changes: 15 additions & 0 deletions Mobile/Editor/NativeDependencies.xml
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>
7 changes: 7 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.

21 changes: 21 additions & 0 deletions Mobile/Editor/TapComplianceMobileProcessBuild.cs
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);
};
}
}
3 changes: 3 additions & 0 deletions Mobile/Editor/TapComplianceMobileProcessBuild.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.Compliance.Mobile.Editor.asmdef
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
}
7 changes: 7 additions & 0 deletions Mobile/Editor/TapSDK.Compliance.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/Editor/iOS.meta

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

45 changes: 45 additions & 0 deletions Mobile/Editor/iOS/BuidPostProcessor.cs
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
11 changes: 11 additions & 0 deletions Mobile/Editor/iOS/BuidPostProcessor.cs.meta

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

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

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

Loading

0 comments on commit a3edbcc

Please sign in to comment.