Skip to content
This repository was archived by the owner on Oct 11, 2019. It is now read-only.

Commit 9d3724d

Browse files
authored
Merge pull request #10 from spatialos/release-2.0.0-rc-01
Release 2.0.0-rc-01
2 parents ac91982 + 9e60439 commit 9d3724d

27 files changed

+70
-598
lines changed

Assets/Plugins/Improbable/.Modules/MinimalBuildSystem/Editor/Configuration/FallbackIndentLevelScope.cs

-28
This file was deleted.

Assets/Plugins/Improbable/.Modules/MinimalBuildSystem/Editor/Configuration/FallbackIndentLevelScope.cs.meta

-13
This file was deleted.

Assets/Plugins/Improbable/.Modules/MinimalBuildSystem/Editor/Configuration/SpatialOSBuildConfigurationEditor.cs

-4
Original file line numberDiff line numberDiff line change
@@ -409,11 +409,7 @@ private static void SwapInList<T>(IList<T> list, int indexA, int indexB)
409409

410410
private static IDisposable IndentLevelScope(int increment)
411411
{
412-
#if UNITY_2017_3_OR_NEWER
413412
return new EditorGUI.IndentLevelScope(increment);
414-
#else
415-
return new FallbackIndentLevelScope(increment);
416-
#endif
417413
}
418414
}
419415
}

Assets/Plugins/Improbable/.Modules/MinimalBuildSystem/Editor/Configuration/WorkerBuildData.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ namespace Improbable.Unity.MinimalBuildSystem.Configuration
99
{
1010
public class WorkerBuildData
1111
{
12-
internal const BuildTarget OSXBuildTarget =
13-
#if UNITY_2017_3_OR_NEWER
14-
BuildTarget.StandaloneOSX;
15-
#else
16-
BuildTarget.StandaloneOSXIntel64;
17-
#endif
12+
internal const BuildTarget OSXBuildTarget = BuildTarget.StandaloneOSX;
1813

1914
private readonly WorkerPlatform workerPlatform;
2015
private readonly BuildTarget buildTarget;

Assets/Plugins/Improbable/Sdk/Dll/Improbable.WorkerSdkCsharp.Framework.dll.meta

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Plugins/Improbable/Sdk/Dll/Improbable.WorkerSdkCsharp.Framework.xml.meta

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Plugins/Improbable/Sdk/Dll/Improbable.WorkerSdkCsharp.dll.meta

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Plugins/Improbable/Sdk/Dll/Improbable.WorkerSdkCsharp.xml.meta

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Plugins/Improbable/Sdk/Src/Editor/Build/DefaultPlayerBuildConfiguration.cs

-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ internal static PlayerBuildConfiguation Generate()
3232
Targets = new List<string>
3333
{
3434
BuildTarget.StandaloneWindows.ToString(),
35-
#if UNITY_2017_3_OR_NEWER
3635
BuildTarget.StandaloneOSX.ToString()
37-
#else
38-
BuildTarget.StandaloneOSXIntel64.ToString()
39-
#endif
4036
}
4137
}
4238
},

Assets/Plugins/Improbable/Sdk/Src/Editor/Build/UnityPlayerBuilder.cs

+11-22
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
using Improbable.Unity.EditorTools.Util;
99
using Improbable.Unity.Util;
1010
using UnityEditor;
11+
#if UNITY_2018_1_OR_NEWER
12+
using UnityEditor.Build.Reporting;
13+
#endif
1114
using UnityEngine;
1215

1316
namespace Improbable.Unity.EditorTools.Build
@@ -51,15 +54,6 @@ private static BuildTarget ToRuntimePlatform(string platform)
5154
if (platform.ToLower() != "current")
5255
{
5356
var value = (BuildTarget) Enum.Parse(typeof(BuildTarget), platform);
54-
#if UNITY_2017_3_OR_NEWER
55-
#pragma warning disable 618
56-
if (value == BuildTarget.StandaloneOSXIntel64)
57-
{
58-
Debug.LogWarningFormat("{0} is deprecated and will be removed. Please update {1} to use {2} instead.", BuildTarget.StandaloneOSXIntel64, UnityPlayerBuilders.PlayerConfigurationFilePath, BuildTarget.StandaloneOSX);
59-
value = BuildTarget.StandaloneOSX;
60-
}
61-
#pragma warning restore 618
62-
#endif
6357
return value;
6458
}
6559

@@ -73,11 +67,7 @@ internal static BuildTarget CurrentPlatform()
7367
case RuntimePlatform.WindowsEditor:
7468
return BuildTarget.StandaloneWindows;
7569
case RuntimePlatform.OSXEditor:
76-
#if UNITY_2017_3_OR_NEWER
7770
return BuildTarget.StandaloneOSX;
78-
#else
79-
return BuildTarget.StandaloneOSXIntel64;
80-
#endif
8171
case RuntimePlatform.LinuxEditor:
8272
return BuildTarget.StandaloneLinux64;
8373
default:
@@ -120,11 +110,7 @@ internal string AssemblyDirectory
120110
{
121111
switch (BuildTarget)
122112
{
123-
#if UNITY_2017_3_OR_NEWER
124113
case BuildTarget.StandaloneOSX:
125-
#else
126-
case BuildTarget.StandaloneOSXIntel64:
127-
#endif
128114
{
129115
return PathUtil.Combine(PackagePath, string.Format("{0}.app", PackageName), "Contents", "Resources", "Data", "Managed");
130116
}
@@ -202,11 +188,7 @@ private static PlatformData CreatePlatformData(BuildTarget buildTarget)
202188
return new PlatformData("Managed", "Windows", "_Data", ".exe");
203189
case BuildTarget.StandaloneWindows64:
204190
return new PlatformData("Managed", "Windows", "_Data", ".exe");
205-
#if UNITY_2017_3_OR_NEWER
206191
case BuildTarget.StandaloneOSX:
207-
#else
208-
case BuildTarget.StandaloneOSXIntel64:
209-
#endif
210192
return new PlatformData("Contents/Data/Managed", "Mac", ".app", "");
211193
case BuildTarget.StandaloneLinux64:
212194
return new PlatformData("Managed", "Linux", "_Data", "");
@@ -228,12 +210,19 @@ internal void BuildPlayer()
228210

229211
var playerOptions = new BuildPlayerOptions { target = BuildTarget, locationPathName = tempExecutablePath, options = options, scenes = scenes };
230212
var buildErrorMessage = BuildPipeline.BuildPlayer(playerOptions);
213+
#if UNITY_2018_1_OR_NEWER
214+
if (buildErrorMessage.summary.result != BuildResult.Succeeded)
215+
{
216+
throw new ApplicationException(string.Format("Failed to build player {0} due to {1} errors", BuildConfigComment,
217+
buildErrorMessage.summary.totalErrors));
218+
}
219+
#else
231220
if (!string.IsNullOrEmpty(buildErrorMessage))
232221
{
233222
throw new ApplicationException(string.Format("Failed to build player {0} due to {1}", BuildConfigComment,
234223
buildErrorMessage));
235224
}
236-
225+
#endif
237226
Debug.LogFormat("Built player {0} into {1}", BuildConfigComment, PackagePath);
238227
}
239228

Assets/Plugins/Improbable/Sdk/Src/Editor/Core/SpatialOsWindow.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ namespace Improbable.Unity.EditorTools
1616
[InitializeOnLoad]
1717
public class SpatialOsWindow : EditorWindow
1818
{
19-
private const string MinVersion = "5.6.0";
20-
private const string MaxVersion = "2017.3.0";
19+
private const string MinVersion = "2017.3.0";
20+
private const string MaxVersion = "2018.1.3";
2121

2222
private static SharedGuiContent sharedContent;
2323
private static string versionMessage;

Assets/Plugins/Improbable/Sdk/Src/Editor/PrefabExport/EntityPrefabExporter.cs

-6
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@ public class EntityPrefabExporter
2020
{
2121
{ BuildTarget.StandaloneWindows, Platform.BuildPlatform.Windows },
2222
{ BuildTarget.StandaloneWindows64, Platform.BuildPlatform.Windows },
23-
#if UNITY_2017_3_OR_NEWER
2423
{ BuildTarget.StandaloneOSX, Platform.BuildPlatform.OSX },
25-
#else
26-
{ BuildTarget.StandaloneOSXIntel, Platform.BuildPlatform.OSX },
27-
{ BuildTarget.StandaloneOSXIntel64, Platform.BuildPlatform.OSX },
28-
{ BuildTarget.StandaloneOSXUniversal, Platform.BuildPlatform.OSX },
29-
#endif
3024
{ BuildTarget.StandaloneLinux, Platform.BuildPlatform.Linux },
3125
{ BuildTarget.StandaloneLinux64, Platform.BuildPlatform.Linux },
3226
{ BuildTarget.iOS, Platform.BuildPlatform.iOS }
Binary file not shown.
Binary file not shown.
Binary file not shown.

docs/get-started/requirements.md

+2-15
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Up-to-date versions of Windows 7 and 10 work with SpatialOS.
99
| Required for | |
1010
| --- | --- |
1111
| All SpatialOS development | `spatial` CLI ([download directly](setup/win.md#2-set-up-the-spatialos-cli)) <br> PowerShell 3.0 and later / Windows Command Prompt / Git BASH (For local deployments, you must use PowerShell or Command Prompt.) <br> [Visual C++ Redistributable for Visual Studio 2015](https://www.microsoft.com/en-gb/download/details.aspx?id=48145) |
12-
| [Unity SDK](../introduction.md) | [Unity 2017.3.0](https://unity3d.com/get-unity/download/archive), including `Linux Build Support` and `Mac Build Support` <br> Unity versions **5.6.0** and **2017.3.0** have been tested with SpatialOS. Other versions may work fine, but have not been extensively tested. |
12+
| [Unity SDK](../introduction.md) | [Unity 2018.1.3](https://unity3d.com/get-unity/download/archive), including `Linux Build Support` and `Mac Mono Scripting Backend Support` <br> Unity versions **2017.3.0** and **2018.1.3** have been tested with SpatialOS. Other versions may work fine, but have not been extensively tested. |
1313

1414
You can find installation instructions for the basic requirements in the [setup guide for Windows](setup/win.md).
1515

@@ -20,23 +20,10 @@ Up-to-date versions of macOS Sierra, El Capitan and High Sierra work with Spati
2020
| Required for | |
2121
| --- | --- |
2222
| All SpatialOS development | `spatial` CLI [download directly](setup/mac.md#2-set-up-the-spatialos-cli) <br> Any Bash terminal |
23-
| [Unity SDK](../introduction.md) | [Unity 2017.3.0](https://unity3d.com/get-unity/download/archive), including `Linux Build Support` and `Windows Build Support` |
23+
| [Unity SDK](../introduction.md) | [Unity 2018.1.3](https://unity3d.com/get-unity/download/archive), including `Linux Build Support` and `Windows Build Support` |
2424

2525
You can find installation instructions for the basic requirements in the [setup guide for macOS](setup/mac.md).
2626

27-
### Linux requirements
28-
29-
Major distributions (e.g,. Ubuntu, Fedora, CentOS) on machines with an AMD64 processor should work with the C++, C# and Java SDKs. The Launcher will not work.
30-
31-
Unity themselves only experimentally support Linux.
32-
33-
| Required for | |
34-
| --- | --- |
35-
| All SpatialOS development | `spatial` CLI ([download directly](setup/linux.md#2-set-up-the-spatialos-cli)) <br> Any Bash terminal |
36-
| [Unity SDK](../introduction.md) | You can try [experimental Unity 2017.3.0](https://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/#post-3017538) <br> [Mono latest](http://www.mono-project.com/docs/getting-started/install/linux/) |
37-
38-
You can find installation instructions for the basic requirements in the [setup guide for Linux](setup/linux.md).
39-
4027
### Browsers
4128

4229
To access the Console and Inspector, you'll need one of the following:

docs/get-started/setup/linux.md

-55
This file was deleted.

0 commit comments

Comments
 (0)