-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.