Run formatter
This commit is contained in:
@@ -53,8 +53,12 @@ class CreateTemplate
|
||||
|
||||
if (FileSystem.exists(title + "/dependencies/android/src/main/java/org/haxe/extension/Extension.java"))
|
||||
{
|
||||
FileSystem.rename(title + "/dependencies/android/src/main/java/org/haxe/extension/Extension.java",
|
||||
title + "/dependencies/android/src/main/java/org/haxe/extension/" + file + ".java");
|
||||
FileSystem.rename(title
|
||||
+ "/dependencies/android/src/main/java/org/haxe/extension/Extension.java",
|
||||
title
|
||||
+ "/dependencies/android/src/main/java/org/haxe/extension/"
|
||||
+ file
|
||||
+ ".java");
|
||||
}
|
||||
|
||||
if (FileSystem.exists(title))
|
||||
@@ -411,8 +415,13 @@ class CreateTemplate
|
||||
Log.println(" " + Log.accentColor + "Usage:\x1b[0m \x1b[1m" + CommandLineTools.commandName + "\x1b[0m create extension (directory)");
|
||||
}
|
||||
|
||||
Log.println(" " + Log.accentColor + "Usage:\x1b[0m \x1b[1m" + CommandLineTools.commandName + "\x1b[0m create " + (projectName != CommandLineTools
|
||||
.commandName ? projectName + " " : "") + "<sample> (directory)");
|
||||
Log.println(" "
|
||||
+ Log.accentColor
|
||||
+ "Usage:\x1b[0m \x1b[1m"
|
||||
+ CommandLineTools.commandName
|
||||
+ "\x1b[0m create "
|
||||
+ (projectName != CommandLineTools.commandName ? projectName + " " : "")
|
||||
+ "<sample> (directory)");
|
||||
|
||||
if (templates.length > 0)
|
||||
{
|
||||
|
||||
@@ -499,8 +499,11 @@ class JavaExternGenerator
|
||||
java_out.writeString(" long __haxeHandle;\n");
|
||||
java_out.writeString(" public " + impl_name + "(long inHandle) { __haxeHandle=inHandle; }\n");
|
||||
|
||||
output(" public function new() { __jobject = openfl.utils.JNI.createInterface(this,\"" + dir_parts
|
||||
.join(".") + "." + impl_name + "\", classDef ); }\n \n");
|
||||
output(" public function new() { __jobject = openfl.utils.JNI.createInterface(this,\""
|
||||
+ dir_parts.join(".")
|
||||
+ "."
|
||||
+ impl_name
|
||||
+ "\", classDef ); }\n \n");
|
||||
}
|
||||
|
||||
var field_count = src.readUInt16();
|
||||
@@ -664,8 +667,8 @@ class JavaExternGenerator
|
||||
func_name = "_" + uniq_name + "_func";
|
||||
output(" if (" + func_name + " == null)\n");
|
||||
output(" " + func_name + " = openfl.utils.JNI." + (is_static ? "createStaticMethod" : "createMemberMethod"));
|
||||
output("(\"" + StringTools
|
||||
.replace(mCurrentType, ".", "/") + "\", \"" + mConstants[name_ref] + "\", \"" + mConstants[desc_ref] + "\", true);\n");
|
||||
output("(\"" + StringTools.replace(mCurrentType, ".", "/") + "\", \"" + mConstants[name_ref] + "\", \"" + mConstants[desc_ref]
|
||||
+ "\", true);\n");
|
||||
|
||||
output(" var a = new Array<Dynamic>();\n");
|
||||
|
||||
|
||||
@@ -467,7 +467,8 @@ class FirefoxHelper
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function validate(project:HXProject):{errors:Array<String>, warnings:Array<String>} {
|
||||
public static function validate(project:HXProject):{errors:Array<String>, warnings:Array<String>}
|
||||
{
|
||||
var errors:Array<String> = [];
|
||||
var warnings:Array<String> = [];
|
||||
|
||||
@@ -502,8 +503,7 @@ class FirefoxHelper
|
||||
|
||||
if (categories.length == 0)
|
||||
{
|
||||
errors
|
||||
.push("You need to have at least one category\n\n\t<config type=\"firefox-marketplace\">\n\t <categories>\n\t <category name=\"games\"/>\n\t </categories>\n\t</config>\n");
|
||||
errors.push("You need to have at least one category\n\n\t<config type=\"firefox-marketplace\">\n\t <categories>\n\t <category name=\"games\"/>\n\t </categories>\n\t</config>\n");
|
||||
}
|
||||
else if (categories.length > MAX_CATEGORIES)
|
||||
{
|
||||
@@ -512,22 +512,19 @@ class FirefoxHelper
|
||||
|
||||
if (project.config.getString("firefox-marketplace.privacyPolicy") == "")
|
||||
{
|
||||
errors
|
||||
.push("You need to have a privacy policy\n\n\t<config type=\"firefox-marketplace\">\n\t <privacyPolicy>Policy detail</privacyPolicy>\n\t</config>\n");
|
||||
errors.push("You need to have a privacy policy\n\n\t<config type=\"firefox-marketplace\">\n\t <privacyPolicy>Policy detail</privacyPolicy>\n\t</config>\n");
|
||||
}
|
||||
|
||||
if (project.config.getString("firefox-marketplace.support.email") == "")
|
||||
{
|
||||
errors
|
||||
.push("You need to have a support email address\n\n\t<config type=\"firefox-marketplace\">\n\t <support email=\"support@company.com\"/>\n\t</config>\n");
|
||||
errors.push("You need to have a support email address\n\n\t<config type=\"firefox-marketplace\">\n\t <support email=\"support@company.com\"/>\n\t</config>\n");
|
||||
}
|
||||
|
||||
var screenshots = project.config.getArrayString("firefox-marketplace.screenshots.screenshot", "path");
|
||||
|
||||
if (screenshots.length == 0)
|
||||
{
|
||||
errors
|
||||
.push("You need to have at least one screenshot\n\n\t<config type=\"firefox-marketplace\">\n\t <screenshots>\n\t <screenshot path=\"screenshot.png\"/>\n\t </screenshots>\n\t</config>\n");
|
||||
errors.push("You need to have at least one screenshot\n\n\t<config type=\"firefox-marketplace\">\n\t <screenshots>\n\t <screenshot path=\"screenshot.png\"/>\n\t </screenshots>\n\t</config>\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user