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
ant.taskdef(resource: 'proguard/ant/task.properties', | |
classpath: "/usr/local/java/proguard/lib/proguard.jar") | |
task proguard << { | |
description = "Process classes and JARs with ProGuard" | |
group = "ProGuard" | |
def proguardDir = new File(getProguardDir(project)) | |
proguardDir.mkdir() |
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
task signJar << { | |
description = "Signs JAR" | |
def config = loadProperties(project.ext.keystorePropsFilename) | |
ant.signjar(jar: project.ext.jarToSign, | |
alias: config.key.alias, | |
keystore: config.key.store, | |
storepass: config.key.'store.password', | |
keypass: config.key.'alias.password') | |
} |
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
task fatJar(type: Jar, dependsOn: 'compileJava') { | |
from { | |
sourceSets.main.output.classesDir | |
} | |
// Add all dependencies except for android.jar to the fat jar | |
from { | |
configurations.compile.findAll { | |
it.getName() != 'android.jar' | |
}.collect { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> | |
<appender name="console" class="org.apache.log4j.ConsoleAppender"> | |
<param name="Target" value="System.out" /> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%d{ISO8601} %-5p %c{1} - %m%n" /> | |
</layout> | |
</appender> |