From 49bf56ec20c36d9a5bc5b2459bf631b4e7c4b835 Mon Sep 17 00:00:00 2001 From: cloud Date: Thu, 22 Oct 2020 10:29:01 +0800 Subject: [PATCH] allow embed aar that has no classes.jar #157 --- .../main/groovy/com/kezong/fataar/ExplodedHelper.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/src/main/groovy/com/kezong/fataar/ExplodedHelper.groovy b/source/src/main/groovy/com/kezong/fataar/ExplodedHelper.groovy index 6eb64eeb..b6d1e7f2 100644 --- a/source/src/main/groovy/com/kezong/fataar/ExplodedHelper.groovy +++ b/source/src/main/groovy/com/kezong/fataar/ExplodedHelper.groovy @@ -51,12 +51,12 @@ class ExplodedHelper { Utils.logInfo('[warning]' + androidLibrary.rootFolder + ' not found!') continue } - File classJarFile = new File(androidLibrary.classesJarFile); - if (classJarFile.exists()) { - allJarFiles.add(androidLibrary.classesJarFile) - } + allJarFiles.add(androidLibrary.classesJarFile) } for (jarFile in allJarFiles) { + if (!jarFile.exists()) { + continue; + } project.copy { from project.zipTree(jarFile) into folderOut