ADB fix, treat Firefox as type WEB not MOBILE, it may be for desktop or mobile Firefox browsers
This commit is contained in:
@@ -81,7 +81,8 @@ class AndroidHelper {
|
||||
|
||||
public static function getDeviceSDKVersion (deviceID:String):Int {
|
||||
|
||||
ProcessHelper.runCommand (adbPath, adbName, [ "devices" ]);
|
||||
ProcessHelper.runCommand (adbPath, adbName, [ "kill-server" ]);
|
||||
ProcessHelper.runCommand (adbPath, adbName, [ "start-server" ]);
|
||||
|
||||
var args = [ "shell" ];
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ class HXProject {
|
||||
platformType = PlatformType.WEB;
|
||||
architectures = [];
|
||||
|
||||
case HTML5, EMSCRIPTEN:
|
||||
case HTML5, FIREFOX, EMSCRIPTEN:
|
||||
|
||||
platformType = PlatformType.WEB;
|
||||
architectures = [];
|
||||
@@ -137,15 +137,6 @@ class HXProject {
|
||||
defaultWindow.width = 0;
|
||||
defaultWindow.height = 0;
|
||||
defaultWindow.fps = 0;
|
||||
|
||||
case FIREFOX:
|
||||
|
||||
platformType = PlatformType.MOBILE;
|
||||
architectures = [];
|
||||
|
||||
defaultWindow.width = 0;
|
||||
defaultWindow.height = 0;
|
||||
defaultWindow.fps = 0;
|
||||
|
||||
case ANDROID, BLACKBERRY, IOS, TIZEN, WEBOS:
|
||||
|
||||
@@ -901,7 +892,7 @@ class HXProject {
|
||||
|
||||
if (asset.embed == null) {
|
||||
|
||||
embeddedAsset.embed = (platformType == PlatformType.WEB || target == Platform.FIREFOX);
|
||||
embeddedAsset.embed = (platformType == PlatformType.WEB);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user