@@ -100,9 +100,7 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
100100 return this . _platformData ;
101101 }
102102
103- // TODO: Remove prior to the 4.0 CLI release @Pip3r4o @PanayotCankov
104- // Similar to the private method of the same name in platform-service.
105- private getCurrentPlatformVersion ( platformData : IPlatformData , projectData : IProjectData ) : string {
103+ public getCurrentPlatformVersion ( platformData : IPlatformData , projectData : IProjectData ) : string {
106104 const currentPlatformData : IDictionary < any > = this . $projectDataService . getNSValue ( projectData . projectDir , platformData . frameworkPackageName ) ;
107105
108106 return currentPlatformData && currentPlatformData [ constants . VERSION_STRING ] ;
@@ -422,6 +420,7 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
422420 const pluginPlatformsFolderPath = this . getPluginPlatformsFolderPath ( pluginData , AndroidProjectService . ANDROID_PLATFORM_NAME ) ;
423421 if ( this . $fs . exists ( pluginPlatformsFolderPath ) ) {
424422 const options : IBuildOptions = {
423+ projectDir : projectData . projectDir ,
425424 pluginName : pluginData . name ,
426425 platformsAndroidDirPath : pluginPlatformsFolderPath ,
427426 aarOutputDir : pluginPlatformsFolderPath ,
@@ -533,9 +532,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
533532
534533 public async removePluginNativeCode ( pluginData : IPluginData , projectData : IProjectData ) : Promise < void > {
535534 try {
536- // check whether the dependency that's being removed has native code
537- // TODO: Remove prior to the 4.1 CLI release @Pip3r4o @PanayotCankov
538- // the updated gradle script will take care of cleaning the prepared android plugins
539535 if ( ! this . runtimeVersionIsGreaterThanOrEquals ( projectData , "3.3.0" ) ) {
540536 const pluginConfigDir = path . join ( this . getPlatformData ( projectData ) . projectRoot , "configurations" , pluginData . name ) ;
541537 if ( this . $fs . exists ( pluginConfigDir ) ) {
@@ -563,8 +559,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
563559 if ( shouldUseNewRoutine ) {
564560 this . provideDependenciesJson ( projectData , dependencies ) ;
565561 } else {
566- // TODO: Remove prior to the 4.1 CLI release @Pip3r4o @PanayotCankov
567-
568562 const platformDir = path . join ( projectData . platformsDir , AndroidProjectService . ANDROID_PLATFORM_NAME ) ;
569563 const buildDir = path . join ( platformDir , "build-tools" ) ;
570564 const checkV8dependants = path . join ( buildDir , "check-v8-dependants.js" ) ;
@@ -580,7 +574,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
580574 }
581575
582576 if ( ! shouldUseNewRoutine ) {
583- // TODO: Remove prior to the 4.0 CLI release @Pip3r4o @PanayotCankov
584577 const projectRoot = this . getPlatformData ( projectData ) . projectRoot ;
585578 await this . cleanProject ( projectRoot , projectData ) ;
586579 }
0 commit comments