-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from srcnalt/feature/cleanup
Avoid Code Stripping for Package
- Loading branch information
Showing
10 changed files
with
95 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.IO; | ||
using UnityEditor; | ||
using UnityEditor.Build; | ||
using UnityEditor.UnityLinker; | ||
using UnityEditor.Build.Reporting; | ||
|
||
namespace OpenAI | ||
{ | ||
public class LinkXmlTransferer : IUnityLinkerProcessor | ||
{ | ||
private const string SearchFolder = "Packages/com.srcnalt.openai-unity/Resources"; | ||
|
||
int IOrderedCallback.callbackOrder => 0; | ||
|
||
public string GenerateAdditionalLinkXmlFile(BuildReport report, UnityLinkerBuildPipelineData data) | ||
{ | ||
string[] linkXmlGuid = AssetDatabase.FindAssets("link", new string[] { SearchFolder }); | ||
string linkXmlPath = AssetDatabase.GUIDToAssetPath(linkXmlGuid[0]); | ||
return Path.GetFullPath(linkXmlPath); | ||
} | ||
|
||
public void OnBeforeRun(BuildReport report, UnityLinkerBuildPipelineData data) { } | ||
|
||
public void OnAfterRun(BuildReport report, UnityLinkerBuildPipelineData data) { } | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "OpenAI.Editor", | ||
"rootNamespace": "", | ||
"references": [], | ||
"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.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<linker> | ||
<assembly fullname="OpenAI.Runtime" preserve="all" /> | ||
</linker> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters