keystoresDedicatedLocation
Path to a location dedicated to keystores for signing Android applications.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Property
- Namespace: UnityEditor.Android
- Assembly: UnityEditor.Android.Extensions
public static string keystoresDedicatedLocation { get; set; }
Remarks
Additional Resources: Create a new keystore
Examples
using System.IO;using UnityEngine;using UnityEditor;using UnityEditor.Android;public class KeystoresDedicatedLocationSample{ [MenuItem("Build/Set Custom Keystores Location")] public static void SetKeystoresLocation() { // Example custom location. Replace this with the actual path. string customPath = "/path/to/your/keystores"; // Validate the directory before setting it if (Directory.Exists(customPath)) { AndroidExternalToolsSettings.keystoresDedicatedLocation = customPath; Debug.Log($"Custom Keystores Location set to: {AndroidExternalToolsSettings.keystoresDedicatedLocation}"); } else { Debug.LogError($"Invalid Keystores Location. Directory does not exist: {customPath}"); } } [MenuItem("Build/Get Current Keystores Location")] public static void GetKeystoresLocation() { // Retrieve the currently configured location of the keystores string currentLocation = AndroidExternalToolsSettings.keystoresDedicatedLocation; Debug.Log($"Current Keystores Location: {currentLocation}"); }}