Skip to content

Commit

Permalink
asconfigc: implement licenseFile and licenseDevID options for AIR adt (
Browse files Browse the repository at this point in the history
…closes #761)
  • Loading branch information
joshtynjala committed Aug 26, 2024
1 parent cf6094a commit 125f9c2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public class AIROptions {
public static final String CONNECT = "connect";
public static final String LISTEN = "listen";

public static final String LICENSE_FILE = "licenseFile";
public static final String LICENSE_DEV_ID = "licenseDevID";

// ios
public static final String SAMPLER = "sampler";
public static final String HIDE_ANE_LIB_SYMBOLS = "hideAneLibSymbols";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ public AIROptionsParser() {

public void parse(String platform, boolean debug, String applicationDescriptorPath, String applicationContentPath,
List<String> modulePaths, List<String> workerPaths, JsonNode options, List<String> result) {
if (options.has(AIROptions.LICENSE_DEV_ID)) {
setValueWithoutAssignment(AIROptions.LICENSE_DEV_ID, options.get(AIROptions.LICENSE_DEV_ID).asText(),
result);
}
if (options.has(AIROptions.LICENSE_FILE)) {
setValueWithoutAssignment(AIROptions.LICENSE_FILE, options.get(AIROptions.LICENSE_FILE).asText(),
result);
}

result.add("-" + AIROptions.PACKAGE);

// AIR_SIGNING_OPTIONS begin
Expand Down Expand Up @@ -232,6 +241,8 @@ && overridesOptionForPlatform(options, AIROptions.SIGNING_OPTIONS, AIRPlatform.W
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
8 changes: 8 additions & 0 deletions distribution/src/assembly/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

0 comments on commit 125f9c2

Please sign in to comment.