Skip to content

Commit 427683e

Browse files
committed
chore: update after review
1 parent ce3a823 commit 427683e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/services/android-project-service.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,14 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
106106
}
107107

108108
private getDeviceBuildOutputPath(currentPath: string, projectData: IProjectData): string {
109-
const currentPlatformData: IDictionary<any> = this.$projectDataService.getNSValue(projectData.projectDir, constants.TNS_ANDROID_RUNTIME_NAME),
110-
platformVersion = currentPlatformData && currentPlatformData[constants.VERSION_STRING],
111-
normalizedPath = path.join(currentPath, "debug");
109+
const currentPlatformData: IDictionary<any> = this.$projectDataService.getNSValue(projectData.projectDir, constants.TNS_ANDROID_RUNTIME_NAME);
110+
const platformVersion = currentPlatformData && currentPlatformData[constants.VERSION_STRING];
111+
const normalizedPath = path.join(currentPath, "debug");
112112

113113
if (semver.valid(platformVersion)) {
114114
const gradleAndroidPluginVersion3xx = "4.0.0";
115115
const normalizedPlatformVersion = `${semver.major(platformVersion)}.${semver.minor(platformVersion)}.0`;
116-
if (semver.gte(normalizedPlatformVersion, gradleAndroidPluginVersion3xx)) {
117-
return normalizedPath;
118-
} else {
116+
if (semver.lt(normalizedPlatformVersion, gradleAndroidPluginVersion3xx)) {
119117
return currentPath;
120118
}
121119
}

0 commit comments

Comments
 (0)