diff --git a/package-lock.json b/package-lock.json index 61670d8..5b31a67 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "asconfigc", - "version": "1.8.1", + "version": "1.9.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "asconfigc", - "version": "1.8.1", + "version": "1.9.0", "license": "Apache-2.0", "dependencies": { "adm-zip": "^0.5.14", diff --git a/package.json b/package.json index a57086e..141d4cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asconfigc", - "version": "1.8.1", + "version": "1.9.0", "description": "Builds an ActionScript & MXML project configured with asconfig.json, from simple compilation to packaging Adobe AIR apps.", "author": "Josh Tynjala", "repository": "BowlerHatLLC/asconfigc", diff --git a/schemas/asconfig.schema.json b/schemas/asconfig.schema.json index 3fe0963..dfc42ca 100644 --- a/schemas/asconfig.schema.json +++ b/schemas/asconfig.schema.json @@ -231,6 +231,14 @@ "description": "Instructs the ADT utility how to package the Adobe AIR application.", "additionalProperties": false, "properties": { + "licenseFile": { + "type": "string", + "description": "The AIR developer license file to use instead of lib/adt.cfg." + }, + "licenseDevID": { + "type": "string", + "description": "The AIR developer ID to use instead of the one in lib/adt.cfg." + }, "target": { "$ref": "#/definitions/airOptionsAllTargets" }, "extdir": { "$ref": "#/definitions/airOptionsExtdir" }, "files": { "$ref": "#/definitions/airOptionsFiles" }, diff --git a/src/com/as3mxml/asconfigc/AIROptions.as b/src/com/as3mxml/asconfigc/AIROptions.as index 4fa8471..db34e9b 100644 --- a/src/com/as3mxml/asconfigc/AIROptions.as +++ b/src/com/as3mxml/asconfigc/AIROptions.as @@ -32,6 +32,9 @@ package com.as3mxml.asconfigc public static const CONNECT:String = "connect"; public static const LISTEN:String = "listen"; + public static const LICENSE_DEV_ID:String = "licenseDevID"; + public static const LICENSE_FILE:String = "licenseFile"; + //ios public static const SAMPLER:String = "sampler"; public static const HIDE_ANE_LIB_SYMBOLS:String = "hideAneLibSymbols" diff --git a/src/com/as3mxml/asconfigc/AIROptionsParser.as b/src/com/as3mxml/asconfigc/AIROptionsParser.as index de0ec44..e03ac96 100644 --- a/src/com/as3mxml/asconfigc/AIROptionsParser.as +++ b/src/com/as3mxml/asconfigc/AIROptionsParser.as @@ -25,6 +25,15 @@ package com.as3mxml.asconfigc { result = []; } + if (AIROptions.LICENSE_DEV_ID in options) + { + setValueWithoutAssignment(AIROptions.LICENSE_DEV_ID, options[AIROptions.LICENSE_DEV_ID], result); + } + if (AIROptions.LICENSE_FILE in options) + { + setValueWithoutAssignment(AIROptions.LICENSE_FILE, options[AIROptions.LICENSE_FILE], result); + } + result.push("-" + AIROptions.PACKAGE); //AIR_SIGNING_OPTIONS begin @@ -279,6 +288,8 @@ package com.as3mxml.asconfigc case AIROptions.EXTDIR: case AIROptions.FILES: case AIROptions.HIDE_ANE_LIB_SYMBOLS: + case AIROptions.LICENSE_DEV_ID: + case AIROptions.LICENSE_FILE: case AIROptions.OUTPUT: case AIROptions.PLATFORMSDK: case AIROptions.SAMPLER: