Skip to content

Commit

Permalink
Always manifest merge if its an application
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam Korlam committed Jan 28, 2017
1 parent 9005261 commit 1525632
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ abstract class AndroidTarget extends JavaLibTarget {
mergedManifest.parentFile.mkdirs()
mergedManifest.createNewFile()

if (manifests.size() == 1) { // No need to merge
if (manifests.size() == 1 && mergeType == ManifestMerger2.MergeType.LIBRARY) { // No need to merge for libraries
parseManifest(project.file(manifests[0]).text, mergedManifest)
} else {
} else { // always merge if more than one manifest or its an application
File mainManifest = project.file(manifests[0])
List<File> secondaryManifests = []
secondaryManifests.addAll(
Expand Down

0 comments on commit 1525632

Please sign in to comment.