Skip to content

Release v2.2.0#228

Merged
marchbold merged 4 commits into
masterfrom
feature/view-dependencies
Nov 4, 2025
Merged

Release v2.2.0#228
marchbold merged 4 commits into
masterfrom
feature/view-dependencies

Conversation

@marchbold

Copy link
Copy Markdown
Contributor

This update includes some additional outputs from the view and list commands allowing:

  • display of a packages dependencies with apm view PACKAGEID VERSION (specifying a version will display dependencies)
  • display of all installed packages including dependencies with apm list --deps

Additionally I have added a project config value called delayLoad which allows you to set the delay load attribute for native extensions in the generated application descriptor:

apm project config set delayLoad true

Updates

feat(list): add flag to list command that outputs all installed dependencies: apm list --deps (resolves #226)
feat(install, app-descriptor): initial ability to set delayLoad value for all extensions (resolves #224)
feat(view): add output of package dependencies when a specific version is viewed (resolves #225)

@marchbold marchbold requested a review from Copilot November 4, 2025 01:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces delay loading functionality for ANE packages in the project system. The changes involve adding a delayLoad property to package dependencies, updating the application descriptor generation to support delay-loaded extensions, and refactoring list output formatting with a utility class.

  • Added ProjectPackageDependency class extending PackageDependency with a delayLoad property
  • Updated project definition to use ProjectPackageDependency instead of PackageDependency
  • Enhanced application descriptor to support delay-loaded extensions with XML attributes
  • Introduced ListOutput utility class for consistent tree-style output formatting
  • Enhanced view command to support viewing specific package versions
  • Added --dependencies flag to list command for viewing all dependencies

Reviewed Changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
version.config Bumped minor version from 2.1 to 2.2
ProjectPackageDependency.as New class extending PackageDependency with delayLoad property
ProjectDefinition.as Changed dependency type from PackageDependency to ProjectPackageDependency and added shouldDelayLoadPackage method
ApplicationDescriptor.as Updated addExtension to support delayLoad parameter and refactored extension management
PackageDependency.as Changed _singleLineOutput visibility to protected and formatting cleanup
InstallData.as Added request and options fields for install process tracking
ListOutput.as New utility class for consistent list marker output
ProjectGetProcess.as Refactored to use ListOutput utility
ProjectDefinitionImportProcess.as Updated to use ProjectPackageDependency
ApplicationDescriptorGenerationProcess.as Integrated shouldDelayLoadPackage into extension generation
ViewPackageProcess.as Enhanced to support viewing specific versions and displaying dependencies
PackageGetProcess.as Refactored to use ListOutput utility
InstallLocalPackageProcess.as Updated to set install request on InstallData
InstallFinaliseProcess.as Updated to use ProjectPackageDependency
InstallDataValidationProcess.as Refactored to use ListOutput utility
ViewCommand.as Added support for version parameter in view command
SearchCommand.as Refactored to use ListOutput utility
ListCommand.as Added --dependencies flag and refactored to use ListOutput utility
InstallCommand.as Added option processing for delay-load flag

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread client/src/com/apm/data/install/InstallData.as Outdated
Comment thread client/src/com/apm/data/install/InstallData.as Outdated
Comment thread client/src/com/apm/data/project/ApplicationDescriptor.as Outdated

var extensionIDs:Array = [];
for each (var extensionIDNode:XML in _xml.extensions..extensionID)
var existingDelayLoad:Boolean = false;

Copilot AI Nov 4, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable existingDelayLoad is declared but never used. It's set on line 352 but the value is not utilized anywhere in the logic.

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@marchbold marchbold merged commit 1930028 into master Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants