Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,8 @@ _UpgradeReport_Files/
Backup*/
UpgradeLog*.XML

# Include all files in Unity project templates.
!**/UnityProjectTemplate/**

# idea files
.idea/
.idea/
19 changes: 19 additions & 0 deletions Unity.Tasks.TypeForwards/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright (c) 2015-present, Parse, LLC. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory.

using System;
using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Parse")]
[assembly: AssemblyDescription("Makes accessing services from Parse native and straightforward.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Parse")]
[assembly: AssemblyCopyright("Copyright © Parse 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: ComVisible(true)]
14 changes: 14 additions & 0 deletions Unity.Tasks.TypeForwards/Public/TaskTypeForwards.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System.Runtime.CompilerServices;

[assembly: TypeForwardedToAttribute(typeof(System.AggregateException))]
[assembly: TypeForwardedToAttribute(typeof(System.Threading.CancellationToken))]
[assembly: TypeForwardedToAttribute(typeof(System.Threading.CancellationTokenRegistration))]
[assembly: TypeForwardedToAttribute(typeof(System.Threading.CancellationTokenSource))]
[assembly: TypeForwardedToAttribute(typeof(System.Threading.Tasks.Task))]
[assembly: TypeForwardedToAttribute(typeof(System.Threading.Tasks.Task<>))]
[assembly: TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskCompletionSource<>))]
[assembly: TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskContinuationOptions))]
[assembly: TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskCreationOptions))]
[assembly: TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskExtensions))]
[assembly: TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskFactory))]
[assembly: TypeForwardedToAttribute(typeof(System.Threading.Tasks.TaskScheduler))]
59 changes: 59 additions & 0 deletions Unity.Tasks.TypeForwards/Unity.Tasks.TypeForwards.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F4A424D3-1BBF-4F29-BE8E-D1336505987E}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Unity.Tasks</RootNamespace>
<AssemblyName>Unity.Tasks</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\Unity\</OutputPath>
<DefineConstants>TRACE;DEBUG;UNITY</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>5</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\Unity\</OutputPath>
<DefineConstants>TRACE;UNITY</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>5</LangVersion>
<DocumentationFile>bin\Release\Unity\Unity.Tasks.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup>
<!-- Assembly info, etc. -->
<Compile Include="Properties\*.cs" />
<Compile Include="Public\**\*.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
19 changes: 19 additions & 0 deletions Unity.Tasks.UnityPlugin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright (c) 2015-present, Parse, LLC. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory.

using System;
using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Parse")]
[assembly: AssemblyDescription("Makes accessing services from Parse native and straightforward.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Parse")]
[assembly: AssemblyCopyright("Copyright © Parse 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: ComVisible(true)]
115 changes: 115 additions & 0 deletions Unity.Tasks.UnityPlugin/Unity.Tasks.UnityPlugin.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2B36560F-64B5-4CEE-9F85-ED8A4FA64A1B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Unity.Tasks</RootNamespace>
<AssemblyName>Unity.Tasks.UnityPlugin</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\Unity\</OutputPath>
<DefineConstants>TRACE;DEBUG;UNITY</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>5</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\Unity\</OutputPath>
<DefineConstants>TRACE;UNITY</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>5</LangVersion>
<DocumentationFile>bin\Release\Unity\Unity.Tasks.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<!-- Assembly info, etc. -->
<Compile Include="Properties\*.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<ItemGroup>
<ProjectReference Include="..\Unity.Tasks\Unity.Tasks.csproj">
<Project>{CE75C800-A97F-4464-9A8B-3F65258456BF}</Project>
<Name>Unity.Tasks</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Unity.Tasks.TypeForwards\Unity.Tasks.TypeForwards.csproj">
<Project>{F4A424D3-1BBF-4F29-BE8E-D1336505987E}</Project>
<Name>Unity.Tasks.TypeForwards</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup>
<UnityProjectTemplatePath>UnityProjectTemplate</UnityProjectTemplatePath>
<UnityProjectIntermediatePath>$(IntermediateOutputPath)\UnityProject</UnityProjectIntermediatePath>
<UnityExecutablePath Condition="'$(OS)' == 'Windows'">$(ProgramFiles)\Unity\Editor\Unity.exe</UnityExecutablePath>
<UnityExecutablePath Condition="'$(OS)' == 'Unix'">/Applications/Unity/Unity.app/Contents/MacOS/Unity</UnityExecutablePath>
<BuildUnityPlugin Condition="'$(BuildUnityPlugin)' == ''">1</BuildUnityPlugin>
</PropertyGroup>
<ItemGroup>
<UnityProjectTemplateFiles Include="UnityProjectTemplate\**\*.meta" />
</ItemGroup>
<Target Name="CreateUnityProject">
<!-- Generate the Unity project. -->
<Copy SourceFiles="@(UnityProjectTemplateFiles)"
DestinationFolder="$(UnityProjectIntermediatePath)\%(RecursiveDir)" />
<Copy SourceFiles="..\Unity.Compat\$(OutputPath)\Unity.Compat.dll;
..\Unity.Tasks\$(OutputPath)\Unity.Tasks.dll;
..\Unity.Tasks.TypeForwards\$(OutputPath)\Unity.Tasks.dll;"
DestinationFiles="
$(UnityProjectIntermediatePath)\Assets\Parse\Plugins\Unity.Compat.dll;
$(UnityProjectIntermediatePath)\Assets\Parse\Plugins\Unity.Tasks.dll;
$(UnityProjectIntermediatePath)\Assets\Parse\Plugins\dotNet45\Unity.Tasks.dll;" />
</Target>
<Target Name="BuildUnityPlugin"
DependsOnTargets="CreateUnityProject"
Condition="'$(BuildUnityPlugin)' == '1'">
<!-- Convert paths to absolute paths (required to run Unity).
ConvertToAbsolutePath isn't available in xbuild so use CreateItem to expand the path. -->
<CreateItem Include="$(UnityProjectIntermediatePath)">
<Output TaskParameter="Include" ItemName="_UnityProjectIntermediatePath" />
</CreateItem>
<CreateItem Include="$(IntermediateOutputPath)">
<Output TaskParameter="Include" ItemName="_IntermediateOutputPath" />
</CreateItem>
<CreateItem Include="$(OutputPath)">
<Output TaskParameter="Include" ItemName="_OutputPath" />
</CreateItem>
<!-- Run Unity to generate the plugin package. -->
<ItemGroup>
<UnityArgs Include="-batchmode" />
<UnityArgs Include="-projectPath &quot;%(_UnityProjectIntermediatePath.FullPath)&quot;" />
<UnityArgs Include="-logFile &quot;%(_IntermediateOutputPath.FullPath)/UnityProject.log&quot;" />
<UnityArgs Include="-exportPackage Assets/Parse &quot;%(_OutputPath.FullPath)/ParseTasks.unitypackage&quot;" />
<UnityArgs Include="-quit" />
</ItemGroup>
<Exec Command="&quot;$(UnityExecutablePath)&quot; @(UnityArgs,' ')" Outputs="$(OutputPath)/ParseTasks.unitypackage" />
</Target>
<Target Name="AfterBuild" DependsOnTargets="CreateUnityProject;BuildUnityPlugin"/>
</Project>

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.

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.