Fix removal of META-INF/services folder

- copy the META-INF/services folder to the destination APK folder so it does not get dropped
This commit is contained in:
Adib Faramarzi 2019-05-30 19:08:21 +04:30
parent 154da4c643
commit fa99bdd19d

View File

@ -568,7 +568,6 @@ public class Androlib {
buildLibrary(appDir, "lib");
buildLibrary(appDir, "libs");
buildLibrary(appDir, "kotlin");
buildLibrary(appDir, "META-INF/services");
}
public void buildLibrary(File appDir, String folder) throws AndrolibException {
@ -579,7 +578,7 @@ public class Androlib {
}
File stored = new File(appDir, APK_DIRNAME + "/" + folder);
if (apkOptions.forceBuildAll || isModified(working, stored) || folder.contains("services")) {
if (apkOptions.forceBuildAll || isModified(working, stored)) {
LOGGER.info("Copying libs... (/" + folder + ")");
try {
OS.rmdir(stored);