From 01b3d2607a8bc9aa4f6bed880c57a8f8f52907b5 Mon Sep 17 00:00:00 2001 From: Chase Pettit Date: Tue, 3 Jan 2017 12:51:03 -0500 Subject: [PATCH] Android build fix. --- Editor/Build/Action/UI.meta | 9 ++++ Editor/Build/Platform/BuildAndroid.cs | 53 ++++++++++++++++++++++ Editor/Build/Platform/BuildAndroid.cs.meta | 12 +++++ Editor/Build/Settings/Inspector.meta | 9 ++++ 4 files changed, 83 insertions(+) create mode 100644 Editor/Build/Action/UI.meta create mode 100644 Editor/Build/Platform/BuildAndroid.cs create mode 100644 Editor/Build/Platform/BuildAndroid.cs.meta create mode 100644 Editor/Build/Settings/Inspector.meta diff --git a/Editor/Build/Action/UI.meta b/Editor/Build/Action/UI.meta new file mode 100644 index 0000000..70a4718 --- /dev/null +++ b/Editor/Build/Action/UI.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: a5e81a30051945c4d80b1b346de604bd +folderAsset: yes +timeCreated: 1463212984 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/Build/Platform/BuildAndroid.cs b/Editor/Build/Platform/BuildAndroid.cs new file mode 100644 index 0000000..5d02445 --- /dev/null +++ b/Editor/Build/Platform/BuildAndroid.cs @@ -0,0 +1,53 @@ +using UnityEditor; + +namespace UnityBuild +{ + +public class BuildAndroid : BuildPlatform +{ + #region Constants (SET VALUES) + + private const BuildTarget _target = BuildTarget.Android; + private const string _name = "android"; + private const string _binaryNameFormat = "{0}.apk"; + private const string _dataDirNameFormat = "{0}_Data"; + + #endregion + + #region Methods & Properties (DO NOT EDIT) + + public override BuildTarget target + { + get { return _target; } + } + + public override string name + { + get { return _name; } + } + + public override string binaryNameFormat + { + get { return _binaryNameFormat; } + } + + public override string dataDirNameFormat + { + get { return _dataDirNameFormat; } + } + + [MenuItem("Build/Platforms/" + _name)] + private static void Toggle() + { + Toggle(_name); + } + [MenuItem("Build/Platforms/" + _name, true)] + private static bool ToggleValidate() + { + return ToggleValidate(_name); + } + + #endregion +} + +} \ No newline at end of file diff --git a/Editor/Build/Platform/BuildAndroid.cs.meta b/Editor/Build/Platform/BuildAndroid.cs.meta new file mode 100644 index 0000000..c6db3f8 --- /dev/null +++ b/Editor/Build/Platform/BuildAndroid.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89df54eebccd0704dbbe96915fbb9a6f +timeCreated: 1465515841 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/Build/Settings/Inspector.meta b/Editor/Build/Settings/Inspector.meta new file mode 100644 index 0000000..c827bb0 --- /dev/null +++ b/Editor/Build/Settings/Inspector.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 0164a62ba04fe784fa052deceb12d4b7 +folderAsset: yes +timeCreated: 1462479736 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: