diff --git a/CHANGELOG.md b/CHANGELOG.md index 53978b1..90dd0be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] + +### Changed + +- Increased minimum supported Unity version to 2019.1. ## [1.3.0] - 2021-05-11 diff --git a/Editor/Build/BuildProject.cs b/Editor/Build/BuildProject.cs index cc5f004..98285d6 100644 --- a/Editor/Build/BuildProject.cs +++ b/Editor/Build/BuildProject.cs @@ -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; } @@ -303,8 +302,7 @@ 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++) { @@ -312,11 +310,7 @@ private static void PerformBuild(string[] buildConfigs, BuildOptions options = B // 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) diff --git a/README.md b/README.md index c332fe6..821b21c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 5b9f4fd..919e461 100644 --- a/package.json +++ b/package.json @@ -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"