This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>gd.wa</groupId> | |
<artifactId>minimal-pom</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A blacklist of absolute package path directories that will be excluded from the main dex list. ex: 'com/company/package/path' | |
// the package name can be partial, since class names encountered that start with any of the given package names will be discarded. | |
ext.packagesToDiscardFromMainDexFile = [] | |
def shouldDiscardClass(String className) { | |
packagesToDiscardFromMainDexFile.any { className.startsWith(it) } | |
} | |
def patchMainDexKeepList(Project proj, String variantName) { | |
Task collectTask = proj.tasks.findByName("collect${variantName.capitalize()}MultiDexComponents") |