@@ -100,9 +100,7 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
100
100
return this . _platformData ;
101
101
}
102
102
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 {
106
104
const currentPlatformData : IDictionary < any > = this . $projectDataService . getNSValue ( projectData . projectDir , platformData . frameworkPackageName ) ;
107
105
108
106
return currentPlatformData && currentPlatformData [ constants . VERSION_STRING ] ;
@@ -422,6 +420,7 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
422
420
const pluginPlatformsFolderPath = this . getPluginPlatformsFolderPath ( pluginData , AndroidProjectService . ANDROID_PLATFORM_NAME ) ;
423
421
if ( this . $fs . exists ( pluginPlatformsFolderPath ) ) {
424
422
const options : IBuildOptions = {
423
+ projectDir : projectData . projectDir ,
425
424
pluginName : pluginData . name ,
426
425
platformsAndroidDirPath : pluginPlatformsFolderPath ,
427
426
aarOutputDir : pluginPlatformsFolderPath ,
@@ -533,9 +532,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
533
532
534
533
public async removePluginNativeCode ( pluginData : IPluginData , projectData : IProjectData ) : Promise < void > {
535
534
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
539
535
if ( ! this . runtimeVersionIsGreaterThanOrEquals ( projectData , "3.3.0" ) ) {
540
536
const pluginConfigDir = path . join ( this . getPlatformData ( projectData ) . projectRoot , "configurations" , pluginData . name ) ;
541
537
if ( this . $fs . exists ( pluginConfigDir ) ) {
@@ -563,8 +559,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
563
559
if ( shouldUseNewRoutine ) {
564
560
this . provideDependenciesJson ( projectData , dependencies ) ;
565
561
} else {
566
- // TODO: Remove prior to the 4.1 CLI release @Pip3r4o @PanayotCankov
567
-
568
562
const platformDir = path . join ( projectData . platformsDir , AndroidProjectService . ANDROID_PLATFORM_NAME ) ;
569
563
const buildDir = path . join ( platformDir , "build-tools" ) ;
570
564
const checkV8dependants = path . join ( buildDir , "check-v8-dependants.js" ) ;
@@ -580,7 +574,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
580
574
}
581
575
582
576
if ( ! shouldUseNewRoutine ) {
583
- // TODO: Remove prior to the 4.0 CLI release @Pip3r4o @PanayotCankov
584
577
const projectRoot = this . getPlatformData ( projectData ) . projectRoot ;
585
578
await this . cleanProject ( projectRoot , projectData ) ;
586
579
}
0 commit comments