Skip to content

Commit a1c8a76

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Remove unneeded code that copies .jar files from plugin
1 parent e5736a1 commit a1c8a76

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/services/android-project-service.ts

-17
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
243243
this.$fs.ensureDirectoryExists(targetPath).wait();
244244

245245
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);
249246
}).future<void>()();
250247
}
251248

@@ -272,12 +269,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
272269
return (() => {
273270
let pluginPlatformsFolderPath = this.getPluginPlatformsFolderPath(pluginData, AndroidProjectService.ANDROID_PLATFORM_NAME);
274271

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-
281272
let configurationsDirectoryPath = path.join(this.platformData.projectRoot, "configurations");
282273
this.$fs.ensureDirectoryExists(configurationsDirectoryPath).wait();
283274

@@ -301,14 +292,6 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
301292
public removePluginNativeCode(pluginData: IPluginData): IFuture<void> {
302293
return (() => {
303294
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-
312295
this.$fs.deleteDirectory(path.join(this.platformData.projectRoot, "configurations", pluginData.name)).wait();
313296
this.$fs.deleteDirectory(path.join(this.platformData.projectRoot, "src", pluginData.name)).wait();
314297
} catch(e) {

0 commit comments

Comments
 (0)