Exemple #1
0
        private static void ManuallyGenerateManifest()
        {
            string jdkPath = EM_EditorUtil.GetJdkPath();

            if (string.IsNullOrEmpty(jdkPath))
            {
                EM_EditorUtil.Alert("Missing JDK Path", "A JDK path needs to be specified for the generation of Easy Mobile's AndroidManifest.xml as well as for the Android build. " +
                                    "Go to Preferences > External Tools > JDK to set it.");
            }
            else
            {
                EM_AndroidManifestBuilder.GenerateManifest(jdkPath, true, true);
                EM_EditorUtil.Alert("Android Manifest Updated", "Easy Mobile's Android manifest (Assets/Plugins/Android/EasyMobile/AndroidManifest.xml) has been updated!");
            }
        }
 private void GenerateCustomManifest()
 {
     GeneratableAndroidManifest.Save(EM_AndroidManifestBuilder.sCustomManifestPath, ManifestElementsFactory);
     EditorApplication.delayCall += () => EM_AndroidManifestBuilder.GenerateManifest(EM_EditorUtil.GetJdkPath(), true);
 }