Add input to set version code

Use action input `androidVersionCode` when provided. Generate the androidVersionCode from the version otherwise.
This commit is contained in:
Benoit Dion
2020-06-24 18:02:05 -04:00
committed by Webber Takken
parent 401ddcaae0
commit bdc3a88d22
17 changed files with 130 additions and 7 deletions

View File

@@ -28,6 +28,7 @@ namespace UnityBuilderAction
// Set version for this build
VersionApplicator.SetVersion(options["version"]);
VersionApplicator.SetAndroidVersionCode(options["androidVersionCode"]);
// Perform build
BuildReport buildReport = BuildPipeline.BuildPlayer(buildOptions);