Skip to content

Commit c3661c6

Browse files
author
Fatme
authored
Merge pull request #3483 from NativeScript/fatme/android-rc-version
Fix invalid version rc when adding android platform
2 parents d341285 + 1eda772 commit c3661c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/constants.ts

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const APK_EXTENSION_NAME = ".apk";
4141
export class PackageVersion {
4242
static NEXT = "next";
4343
static LATEST = "latest";
44+
static RC = "rc";
4445
}
4546

4647
const liveSyncOperation = "LiveSync Operation";

lib/services/android-project-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
712712
}
713713
}
714714

715-
if (platformVersion === constants.PackageVersion.NEXT || platformVersion === constants.PackageVersion.LATEST) {
715+
if (platformVersion === constants.PackageVersion.NEXT || platformVersion === constants.PackageVersion.LATEST || platformVersion === constants.PackageVersion.RC) {
716716
return true;
717717
}
718718

0 commit comments

Comments
 (0)