This repository has been archived on 2019-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
ensichat/app/build.gradle

78 lines
2.0 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
apply plugin: 'jp.leafytree.android-scala'
2014-10-07 13:20:24 +00:00
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "jp.leafytree.gradle:gradle-android-scala-plugin:1.3.2"
2014-10-07 13:20:24 +00:00
}
}
dependencies {
2015-01-23 19:00:04 +00:00
compile "com.android.support:support-v4:21.0.3"
// For `flat` debug config, as `flatProvided` is unknown.
2015-03-13 20:52:16 +00:00
provided "org.scala-lang:scala-library:2.11.6"
debugCompile "org.scala-lang:scala-library:2.11.6"
releaseCompile "org.scala-lang:scala-library:2.11.6"
compile 'com.google.guava:guava:18.0'
2014-10-07 13:20:24 +00:00
}
2014-10-03 09:55:35 +00:00
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
2014-10-03 09:55:35 +00:00
defaultConfig {
applicationId "com.nutomic.ensichat"
minSdkVersion 15
targetSdkVersion 21
2015-03-07 15:32:20 +00:00
versionCode 3
versionName "0.1.2"
2014-10-03 09:55:35 +00:00
}
2014-10-07 13:20:24 +00:00
sourceSets {
main.scala.srcDir "src/main/scala"
androidTest.scala.srcDir "src/androidTest/scala"
2014-10-07 13:20:24 +00:00
}
2014-10-03 09:55:35 +00:00
buildTypes {
thin {
applicationIdSuffix ".debug"
minifyEnabled false
signingConfig signingConfigs.debug
}
2014-10-07 13:20:24 +00:00
debug {
applicationIdSuffix ".debug"
minifyEnabled true
proguardFile file("proguard-rules.pro")
2014-10-07 13:20:24 +00:00
}
release {
minifyEnabled true
proguardFile file("proguard-rules.pro")
}
}
2014-10-07 13:20:24 +00:00
// Needed to rename `app-thin.apk` to `app-debug.apk` (because Android Studio doesn't let us
// specify a different apk name).
/*
applicationVariants.all { variant ->
def apk = variant.outputFile;
def newName = apk.name.replace("app-thin", "app-debug");
variant.outputFile = new File(apk.parentFile, newName);
}
*/
// Avoid duplicate file errors during packaging.
packagingOptions {
exclude 'decoder.properties'
exclude 'rootdoc.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
2014-10-03 09:55:35 +00:00
}
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.useCompileDaemon = true
}