Skip to content

Commit be2bc50

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #681 from NativeScript/fatme/respect-correctly-jars-from-plugin
Respect correctly .jar files from plugin
2 parents 5c1beb9 + b19ac68 commit be2bc50

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/services/android-project-service.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
275275
// Handle *.jars inside libs folder
276276
let libsFolderPath = path.join(pluginPlatformsFolderPath, AndroidProjectService.LIBS_FOLDER_NAME);
277277
if(this.$fs.exists(libsFolderPath).wait()) {
278-
let libsFolderContents = this.$fs.readDirectory(libsFolderPath).wait();
279-
_(libsFolderContents)
280-
.filter(libsFolderItem => path.extname(libsFolderItem) === ".jar")
281-
.each(jar => this.addLibrary(path.join(libsFolderPath, jar)).wait())
282-
.value();
278+
this.addLibrary(libsFolderPath).wait();
283279
}
284280

285281
// Handle android libraries

0 commit comments

Comments
 (0)