Skip to content

Commit 9fe5509

Browse files
committed
fix: find correct apk name when --release passed
1 parent 283b31c commit 9fe5509

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/services/android-project-service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
109109
private getDeviceBuildOutputPath(currentPath: string, projectData: IProjectData): string {
110110
const currentPlatformData: IDictionary<any> = this.$projectDataService.getNSValue(projectData.projectDir, constants.TNS_ANDROID_RUNTIME_NAME);
111111
const platformVersion = currentPlatformData && currentPlatformData[constants.VERSION_STRING];
112-
const normalizedPath = path.join(currentPath, "debug");
112+
const buildType = this.$options.release === true ? "release" : "debug";
113+
const normalizedPath = path.join(currentPath, buildType);
113114

114115
if (semver.valid(platformVersion)) {
115116
const gradleAndroidPluginVersion3xx = "4.0.0";

0 commit comments

Comments
 (0)