Skip to content

Commit 69e70c0

Browse files
Fatme Havaluovateobugslayer
Fatme Havaluova
authored andcommitted
Remove unneeded code that copies .jar files from plugin
1 parent 8a8dc79 commit 69e70c0

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/services/android-project-service.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
252252
this.$fs.ensureDirectoryExists(targetPath).wait();
253253

254254
shell.cp("-f", path.join(libraryPath, "*.jar"), targetPath);
255-
let projectLibsDir = path.join(this.platformData.projectRoot, "libs");
256-
this.$fs.ensureDirectoryExists(projectLibsDir).wait();
257-
shell.cp("-f", path.join(libraryPath, "*.jar"), projectLibsDir);
258255
}).future<void>()();
259256
}
260257

@@ -281,12 +278,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
281278
return (() => {
282279
let pluginPlatformsFolderPath = this.getPluginPlatformsFolderPath(pluginData, AndroidProjectService.ANDROID_PLATFORM_NAME);
283280

284-
// Handle *.jars inside libs folder
285-
let libsFolderPath = path.join(pluginPlatformsFolderPath, AndroidProjectService.LIBS_FOLDER_NAME);
286-
if(this.$fs.exists(libsFolderPath).wait()) {
287-
this.addLibrary(libsFolderPath).wait();
288-
}
289-
290281
let configurationsDirectoryPath = path.join(this.platformData.projectRoot, "configurations");
291282
this.$fs.ensureDirectoryExists(configurationsDirectoryPath).wait();
292283

@@ -310,14 +301,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
310301
public removePluginNativeCode(pluginData: IPluginData): IFuture<void> {
311302
return (() => {
312303
try {
313-
let pluginPlatformsFolderPath = this.getPluginPlatformsFolderPath(pluginData, AndroidProjectService.ANDROID_PLATFORM_NAME);
314-
let libsFolderPath = path.join(pluginPlatformsFolderPath, AndroidProjectService.LIBS_FOLDER_NAME);
315-
316-
if(this.$fs.exists(libsFolderPath).wait()) {
317-
let pluginJars = this.$fs.enumerateFilesInDirectorySync(libsFolderPath);
318-
_.each(pluginJars, jarName => this.$fs.deleteFile(path.join(libsFolderPath, jarName)).wait());
319-
}
320-
321304
this.$fs.deleteDirectory(path.join(this.platformData.projectRoot, "configurations", pluginData.name)).wait();
322305
this.$fs.deleteDirectory(path.join(this.platformData.projectRoot, "src", pluginData.name)).wait();
323306
} catch(e) {

0 commit comments

Comments
 (0)