Skip to content

Commit

Permalink
implement licenseFile and licenseDevID options for AIR adt (references
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Aug 26, 2024
1 parent 018c791 commit 35e6d10
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 8 additions & 0 deletions schemas/asconfig.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
3 changes: 3 additions & 0 deletions src/com/as3mxml/asconfigc/AIROptions.as
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 11 additions & 0 deletions src/com/as3mxml/asconfigc/AIROptionsParser.as
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 35e6d10

Please sign in to comment.