Skip to content

Commit

Permalink
Increased minimum supported Unity version to 2019.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robinnorth committed May 11, 2021
1 parent 159e0b8 commit c7a28ea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

<!-- ## [Unreleased] -->
## [Unreleased]

### Changed

- Increased minimum supported Unity version to 2019.1.

## [1.3.0] - 2021-05-11

Expand Down
12 changes: 3 additions & 9 deletions Editor/Build/BuildProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ public static string GenerateVersionString(ProductParameters productParameters,
while (match.Success)
{
int daysSince = 0;
DateTime parsedTime;
if (DateTime.TryParse(match.Groups[1].Value, out parsedTime))
if (DateTime.TryParse(match.Groups[1].Value, out DateTime parsedTime))
{
daysSince = buildTime.Subtract(parsedTime).Days;
}
Expand Down Expand Up @@ -303,20 +302,15 @@ private static void PerformBuild(string[] buildConfigs, BuildOptions options = B
File.Copy(buildConstantsPath, currentBuildConstantsFile);
}

DateTime buildTime;
PerformPreBuild(out buildTime);
PerformPreBuild(out DateTime buildTime);

for (int i = 0; i < buildConfigs.Length; i++)
{
string configKey = buildConfigs[i];

// Parse build config and perform build.
string notification = string.Format("Building ({0}/{1}): ", i + 1, buildConfigs.Length);
BuildReleaseType releaseType;
BuildPlatform platform;
BuildArchitecture arch;
BuildDistribution dist;
BuildSettings.projectConfigurations.ParseKeychain(configKey, out releaseType, out platform, out arch, out dist);
BuildSettings.projectConfigurations.ParseKeychain(configKey, out BuildReleaseType releaseType, out BuildPlatform platform, out BuildArchitecture arch, out BuildDistribution dist);
bool success = BuildPlayer(notification, releaseType, platform, arch, dist, buildTime, options, configKey);

if (success)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Features:

## Basic Usage

Requires Unity 2018.1 or higher. Supports building for Windows, macOS, Linux, iOS, Android and WebGL.
Requires Unity 2019.1 or higher. Supports building for Windows, macOS, Linux, iOS, Android and WebGL.

### Installation

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.github.superunitybuild.buildtool",
"displayName": "SuperUnityBuild",
"version": "1.3.0",
"unity": "2018.1",
"unity": "2019.1",
"description": "SuperUnityBuild is a Unity utility that automates the process of generating builds. It's easy and quick enough to use on small apps, but it's also powerful and extensible enough to be extremely useful on larger projects. The key to this flexibility lies in SuperUnityBuild's configurable degrees of granularity and its BuildActions framework which allows additional operations to be added into the build process.",
"documentationUrl": "https://github.com/superunitybuild/buildtool/wiki",
"type": "tool"
Expand Down

0 comments on commit c7a28ea

Please sign in to comment.