Skip to content

Commit

Permalink
Android build fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaser324 committed Jan 3, 2017
1 parent c90c8ad commit 01b3d26
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Editor/Build/Action/UI.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions Editor/Build/Platform/BuildAndroid.cs
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
}

}
12 changes: 12 additions & 0 deletions Editor/Build/Platform/BuildAndroid.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Editor/Build/Settings/Inspector.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 01b3d26

Please sign in to comment.