Save Unity keystore passwords in project

From FIA Wiki
Jump to: navigation, search

Create script with the following


   using UnityEngine;
   using UnityEditor;
   using System.IO;

   [InitializeOnLoad]
   public class PreloadSigningAlias
   {
       static PreloadSigningAlias ()
       {
           PlayerSettings.Android.keystorePass = "KEYSTORE_PASS";
           PlayerSettings.Android.keyaliasName = "ALIAS_NAME";
           PlayerSettings.Android.keyaliasPass = "ALIAS_PASSWORD";
       }
   }