mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00

* Refactor to typescript (config part) * Refactor to typescript (convert extensions, minor fixes) * Refactor to typescript (move from `action` to `dist`) * Re-enable integrity-check for dist index.js * Fix all tests and lints * fix parsing major versions * Test patch level to be digits only * debug * debug * uncache * manual compile * debug * debug * Debug * Build lib - doh * remove diff check * Make kubernetes workflow manual * Properly generate 3 digit for simple major tags * Remove ts-ignore * re-enable cache
22 lines
1.0 KiB
C#
22 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
using UnityEditor;
|
|
|
|
namespace UnityBuilderAction.Input
|
|
{
|
|
public class AndroidSettings
|
|
{
|
|
public static void Apply(Dictionary<string, string> options)
|
|
{
|
|
EditorUserBuildSettings.buildAppBundle = options["customBuildPath"].EndsWith(".aab");
|
|
if (options.TryGetValue("androidKeystoreName", out string keystoreName) && !string.IsNullOrEmpty(keystoreName))
|
|
PlayerSettings.Android.keystoreName = keystoreName;
|
|
if (options.TryGetValue("androidKeystorePass", out string keystorePass) && !string.IsNullOrEmpty(keystorePass))
|
|
PlayerSettings.Android.keystorePass = keystorePass;
|
|
if (options.TryGetValue("androidKeyaliasName", out string keyaliasName) && !string.IsNullOrEmpty(keyaliasName))
|
|
PlayerSettings.Android.keyaliasName = keyaliasName;
|
|
if (options.TryGetValue("androidKeyaliasPass", out string keyaliasPass) && !string.IsNullOrEmpty(keyaliasPass))
|
|
PlayerSettings.Android.keyaliasPass = keyaliasPass;
|
|
}
|
|
}
|
|
}
|