-
-
Notifications
You must be signed in to change notification settings - Fork 12
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 #127 from timcassell/unity-helpers-nuget-package
Create nuget package for Unity helpers.
- Loading branch information
Showing
22 changed files
with
281 additions
and
179 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<!--We target .Net Framework 3.5 to support old Unity versions, and we also target .Net Standard 2.1 to support new Unity versions, even after it drops old Framework support.--> | ||
<TargetFrameworks>net35;netstandard2.1</TargetFrameworks> | ||
<Configurations>Release;Debug;</Configurations> | ||
<Version>2.2.0</Version> | ||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo> | ||
<!--The newest language version Unity 5.5 supports (by default).--> | ||
<LangVersion>4</LangVersion> | ||
</PropertyGroup> | ||
|
||
<!--Unity uses NET_LEGACY for old runtime prior to .Net 4.6, so we will do the same here.--> | ||
<PropertyGroup Condition="'$(TargetFramework)'=='net35'"> | ||
<DefineConstants>$(DefineConstants);NET_LEGACY</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<ProduceReferenceAssembly>false</ProduceReferenceAssembly> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\ProtoPromise_Unity\Assets\Plugins\ProtoPromise\UnityHelpers\**/*.cs" /> | ||
<Compile Remove="nuget\**" /> | ||
<EmbeddedResource Remove="nuget\**" /> | ||
<None Remove="nuget\**" /> | ||
<None Remove="UnityEngine.dll" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\ProtoPromise\ProtoPromise.csproj"> | ||
<Private>false</Private> | ||
</ProjectReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="UnityEngine"> | ||
<HintPath>UnityEngine.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
</ItemGroup> | ||
|
||
</Project> |
Binary file not shown.
36 changes: 36 additions & 0 deletions
36
ProtoPromiseUnityHelpers/nuget/ProtoPromiseUnityHelpers.nuspec
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,36 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package > | ||
<metadata minClientVersion="2.5"> | ||
<id>ProtoPromiseUnityHelpers</id> | ||
<version>{VERSION}</version> | ||
<title>ProtoPromise Unity Helpers</title> | ||
<authors>Tim Cassell</authors> | ||
<owners>Tim Cassell</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/timcassell/ProtoPromise</projectUrl> | ||
<repository type="git" url="https://github.com/timcassell/ProtoPromise" /> | ||
<description>ProtoPromise helpers for UnityEngine.</description> | ||
<releaseNotes></releaseNotes> | ||
<copyright>Copyright ©2022 Tim Cassell</copyright> | ||
<tags>promise promises task tasks csharp unity dotnet mono coroutine coroutines concurrency concurrent parallel asynchronous async await thread threads threading then thenable callback callbacks</tags> | ||
|
||
<dependencies> | ||
<group targetFramework="net35"> | ||
<dependency id="ProtoPromise" version="{VERSION}" exclude="Build,Analyzers" /> | ||
</group> | ||
<group targetFramework="netstandard2.1"> | ||
<dependency id="ProtoPromise" version="{VERSION}" exclude="Build,Analyzers" /> | ||
</group> | ||
</dependencies> | ||
|
||
<readme>readme.md</readme> | ||
</metadata> | ||
|
||
<files> | ||
<file src="..\bin\Release\net35\**" target="lib/net35/Release" /> | ||
<file src="..\bin\Release\netstandard2.1\**" target="lib/netstandard2.1/Release" /> | ||
|
||
<file src="readme.md" target="" /> | ||
</files> | ||
</package> |
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 @@ | ||
Helpers to assist with using Promises in UnityEngine. | ||
|
||
Note: it is not recommended to use this nuget package. Instead, you should use the Unity package available on [GitHub](https://github.com/timcassell/ProtoPromise/releases) or the [Unity Asset Store](https://assetstore.unity.com/packages/tools/integration/protopromise-181997). |
6 changes: 6 additions & 0 deletions
6
ProtoPromise_Unity/Assets/Plugins/ProtoPromise/Core/InternalShared/AssemblyAttributes.cs
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,6 @@ | ||
// File named AssemblyAttributes.cs instead of AssemblyInfo.cs to avoid conflicts with an auto-generated file of the same name. | ||
|
||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: InternalsVisibleTo("ProtoPromiseUnityHelpers")] | ||
[assembly: InternalsVisibleTo("ProtoPromiseTests")] |
11 changes: 11 additions & 0 deletions
11
...oPromise_Unity/Assets/Plugins/ProtoPromise/Core/InternalShared/AssemblyAttributes.cs.meta
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
2 changes: 1 addition & 1 deletion
2
...ins/ProtoPromise/Core/Promises/Unity.meta → ...ts/Plugins/ProtoPromise/UnityHelpers.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.