Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.3.0 #168

Merged
merged 13 commits into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Close stale issues and PR'
on:
schedule:
- cron: '30 1 * * 2'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
stale-issue-label: 'stale'
exempt-issue-labels: 'enhancement,bug,bug-air-sdk'
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
days-before-stale: 60
days-before-close: 5
days-before-pr-close: -1
6 changes: 3 additions & 3 deletions client/apm.iml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<dependency linkage="Merged" />
</entry>
</entries>
<sdk name="current" />
<sdk name="AIRSDK_33.1.1" />
</dependencies>
<compiler-options>
<option name="resourceFilesMode" value="None" />
Expand All @@ -18,7 +18,7 @@
<packaging-air-desktop use-generated-descriptor="false" custom-descriptor-path="$MODULE_DIR$/src/apm.xml" package-file-name="apm-cli">
<files-to-package>
<FilePathAndPathInPackage file-path="$MODULE_DIR$/src/apm.bat" path-in-package="apm.bat" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/src/apm.sh" path-in-package="apm.sh" />
<FilePathAndPathInPackage file-path="$MODULE_DIR$/src/apm" path-in-package="apm" />
</files-to-package>
</packaging-air-desktop>
<packaging-android />
Expand All @@ -33,7 +33,7 @@
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
</content>
<orderEntry type="jdk" jdkName="current" jdkType="Flex SDK Type (new)" />
<orderEntry type="jdk" jdkName="AIRSDK_33.1.1" jdkType="Flex SDK Type (new)" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library" exported="">
<library type="flex">
Expand Down
5 changes: 2 additions & 3 deletions client/src/com/apm/client/commands/packages/InstallCommand.as
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ package com.apm.client.commands.packages
var lockFile:ProjectLock = APM.config.projectLock;

_installData = new InstallData();
_queue = new ProcessQueue();
_queue = new ProcessQueue();

var packageIdentifierOrPath:String = null;
if (_parameters != null && _parameters.length > 0)
Expand All @@ -139,8 +139,7 @@ package com.apm.client.commands.packages
var version:String = (_parameters.length > 1) ? _parameters[1] : "latest";

// Check if ends in "airpackage"
if (packageIdentifierOrPath.indexOf( PackageFileUtils.AIRPACKAGEEXTENSION ) ==
packageIdentifierOrPath.length - PackageFileUtils.AIRPACKAGEEXTENSION.length)
if (PackageFileUtils.isAirPackagePath( packageIdentifierOrPath ))
{
// Install from a local air package file
var localPackageFile:File = FileUtils.getSourceForPath( packageIdentifierOrPath );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ package com.apm.client.commands.packages
import com.apm.data.packages.PackageDefinitionFile;
import com.apm.data.packages.PackageDependency;
import com.apm.data.project.ProjectDefinition;
import com.apm.utils.PackageCacheUtils;
import com.apm.utils.ProjectPackageCache;

import flash.events.EventDispatcher;

Expand Down Expand Up @@ -121,7 +121,7 @@ package com.apm.client.commands.packages

public function execute():void
{
var includeDependencies:Boolean = false;
var includeDependencies:Boolean = false;
var printUpdateAvailableOnly:Boolean = true;
if (_parameters != null)
{
Expand Down Expand Up @@ -175,7 +175,7 @@ package com.apm.client.commands.packages
var hasUpdatesAvailable:Boolean = false;
for each (var packageData:InstallPackageData in _queryData.packagesToInstall)
{
var cachedPackage:PackageDefinitionFile = PackageCacheUtils.getCachedPackage( packageData.request.packageIdentifier );
var cachedPackage:PackageDefinitionFile = ProjectPackageCache.getPackage( packageData.request.packageIdentifier );

hasUpdatesAvailable ||= cachedPackage == null ? true : packageData.packageVersion.version.greaterThan(
cachedPackage.version.version );
Expand All @@ -192,7 +192,7 @@ package com.apm.client.commands.packages

for each (var packageData:InstallPackageData in _queryData.packagesToInstall)
{
var cachedPackage:PackageDefinitionFile = PackageCacheUtils.getCachedPackage(
var cachedPackage:PackageDefinitionFile = ProjectPackageCache.getPackage(
packageData.request.packageIdentifier );

var updateAvailable:Boolean = cachedPackage == null ? true : packageData.packageVersion.version.greaterThan(
Expand Down
Loading