Skip to content

Commit b437693

Browse files
authored
normalize platform version when checking whether to use old or new prepare logic for android builds (#3149)
1 parent a638f7d commit b437693

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
@@ -590,7 +590,8 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
590590
const platformVersion = this.getCurrentPlatformVersion(this.getPlatformData(projectData), projectData);
591591
const newRuntimeGradleRoutineVersion = "3.3.0";
592592

593-
return semver.gte(platformVersion, newRuntimeGradleRoutineVersion);
593+
const normalizedPlatformVersion = `${semver.major(platformVersion)}.${semver.minor(platformVersion)}.0`;
594+
return semver.gte(normalizedPlatformVersion, newRuntimeGradleRoutineVersion);
594595
}
595596
}
596597

0 commit comments

Comments
 (0)