diff --git a/CHANGELOG.md b/CHANGELOG.md index ad0b342..ebad3bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ 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.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.14] + +### Fixed + +- Compiler error in Unity 2018 for `PlayerSettings.Android.useCustomKeystore` + ## [1.0.13] ### Added diff --git a/Editor/AzurePipelinesBuildTemplate.cs b/Editor/AzurePipelinesBuildTemplate.cs index a040fe6..f7c0c82 100644 --- a/Editor/AzurePipelinesBuildTemplate.cs +++ b/Editor/AzurePipelinesBuildTemplate.cs @@ -158,7 +158,9 @@ private static void CheckAndroidSettings(bool checkBuildAppBundle) Dinomite.AzurePipelines.Utilities.TryGetCommandLineArgumentValue(AndroidKeystorePassArgument, out var androidKeystorePass) && Dinomite.AzurePipelines.Utilities.TryGetCommandLineArgumentValue(AndroidKeystoreAliasNameArgument, out var androidKeystoreAliasName)) { +#if UNITY_2019_1_OR_NEWER PlayerSettings.Android.useCustomKeystore = true; +#endif PlayerSettings.Android.keystoreName = androidKeystoreName; PlayerSettings.Android.keystorePass = androidKeystorePass; PlayerSettings.Android.keyaliasName = androidKeystoreAliasName; @@ -171,7 +173,9 @@ private static void CheckAndroidSettings(bool checkBuildAppBundle) // If no credentials passed, we assume the user wants to build using a development keystore auto-generated by Unity. // We clear the custom keystore flag here in case developers have checked in a keystore config to the repository, which // would cause the build to fail. +#if UNITY_2019_1_OR_NEWER PlayerSettings.Android.useCustomKeystore = false; +#endif } if (checkBuildAppBundle) diff --git a/package.json b/package.json index b14f86a..6d3707f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "games.dinomite.azurepipelines", "displayName": "Dinomite.AzurePipelines", "description": "A Unity package containing build scripts for use with the Unity Tools for Azure DevOps extension.", - "version": "1.0.13", + "version": "1.0.14", "unity": "2018.1", "author": "Dinomite", "keywords": [