@@ -243,9 +243,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
243
243
this . $fs . ensureDirectoryExists ( targetPath ) . wait ( ) ;
244
244
245
245
shell . cp ( "-f" , path . join ( libraryPath , "*.jar" ) , targetPath ) ;
246
- let projectLibsDir = path . join ( this . platformData . projectRoot , "libs" ) ;
247
- this . $fs . ensureDirectoryExists ( projectLibsDir ) . wait ( ) ;
248
- shell . cp ( "-f" , path . join ( libraryPath , "*.jar" ) , projectLibsDir ) ;
249
246
} ) . future < void > ( ) ( ) ;
250
247
}
251
248
@@ -272,12 +269,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
272
269
return ( ( ) => {
273
270
let pluginPlatformsFolderPath = this . getPluginPlatformsFolderPath ( pluginData , AndroidProjectService . ANDROID_PLATFORM_NAME ) ;
274
271
275
- // Handle *.jars inside libs folder
276
- let libsFolderPath = path . join ( pluginPlatformsFolderPath , AndroidProjectService . LIBS_FOLDER_NAME ) ;
277
- if ( this . $fs . exists ( libsFolderPath ) . wait ( ) ) {
278
- this . addLibrary ( libsFolderPath ) . wait ( ) ;
279
- }
280
-
281
272
let configurationsDirectoryPath = path . join ( this . platformData . projectRoot , "configurations" ) ;
282
273
this . $fs . ensureDirectoryExists ( configurationsDirectoryPath ) . wait ( ) ;
283
274
@@ -301,14 +292,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
301
292
public removePluginNativeCode ( pluginData : IPluginData ) : IFuture < void > {
302
293
return ( ( ) => {
303
294
try {
304
- let pluginPlatformsFolderPath = this . getPluginPlatformsFolderPath ( pluginData , AndroidProjectService . ANDROID_PLATFORM_NAME ) ;
305
- let libsFolderPath = path . join ( pluginPlatformsFolderPath , AndroidProjectService . LIBS_FOLDER_NAME ) ;
306
-
307
- if ( this . $fs . exists ( libsFolderPath ) . wait ( ) ) {
308
- let pluginJars = this . $fs . enumerateFilesInDirectorySync ( libsFolderPath ) ;
309
- _ . each ( pluginJars , jarName => this . $fs . deleteFile ( path . join ( libsFolderPath , jarName ) ) . wait ( ) ) ;
310
- }
311
-
312
295
this . $fs . deleteDirectory ( path . join ( this . platformData . projectRoot , "configurations" , pluginData . name ) ) . wait ( ) ;
313
296
this . $fs . deleteDirectory ( path . join ( this . platformData . projectRoot , "src" , pluginData . name ) ) . wait ( ) ;
314
297
} catch ( e ) {
0 commit comments