Skip to content

Instantly share code, notes, and snippets.

@mattiaswargren-zz
Created March 7, 2017 13:37
Show Gist options
  • Save mattiaswargren-zz/e2eeb3d97d1237a603bf69f556fda921 to your computer and use it in GitHub Desktop.
Save mattiaswargren-zz/e2eeb3d97d1237a603bf69f556fda921 to your computer and use it in GitHub Desktop.
Editor Build Test to check if Keystore passwords are entered
using NUnit.Framework;
using UnityEditor;
public class BuildTests
{
[Test]
public void TestAndroidKeystoreBeforeBuild()
{
Assert.IsNotNullOrEmpty(PlayerSettings.keystorePass, "Key Store Password");
Assert.IsNotNullOrEmpty(PlayerSettings.keyaliasPass, "Key Alias Password");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment