File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments