2014-12-02 17:01:32 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'jp.leafytree.android-scala'
|
|
|
|
|
2014-10-07 13:20:24 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2015-04-14 20:09:47 +00:00
|
|
|
classpath "jp.leafytree.gradle:gradle-android-scala-plugin:1.4"
|
2014-10-07 13:20:24 +00:00
|
|
|
}
|
|
|
|
}
|
2014-12-02 17:01:32 +00:00
|
|
|
|
|
|
|
dependencies {
|
2015-06-18 19:52:21 +00:00
|
|
|
// Downgraded to work around compiler error
|
|
|
|
// https://github.com/saturday06/gradle-android-scala-plugin/issues/64
|
|
|
|
compile "com.android.support:appcompat-v7:22.1.0"
|
2015-04-14 20:09:47 +00:00
|
|
|
compile 'com.android.support:multidex:1.0.1'
|
|
|
|
androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" }
|
|
|
|
compile "org.scala-lang:scala-library:2.11.6"
|
2014-12-04 18:33:12 +00:00
|
|
|
compile 'com.google.guava:guava:18.0'
|
2014-10-07 13:20:24 +00:00
|
|
|
}
|
2014-12-02 17:01:32 +00:00
|
|
|
|
2014-10-03 09:55:35 +00:00
|
|
|
android {
|
2015-04-14 20:09:47 +00:00
|
|
|
compileSdkVersion 22
|
|
|
|
buildToolsVersion "22.0.1"
|
2014-10-03 09:55:35 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.nutomic.ensichat"
|
2015-04-14 20:09:47 +00:00
|
|
|
targetSdkVersion 22
|
2015-03-07 15:32:20 +00:00
|
|
|
versionCode 3
|
|
|
|
versionName "0.1.2"
|
2015-04-14 20:09:47 +00:00
|
|
|
multiDexEnabled true
|
|
|
|
testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner"
|
2014-10-07 13:20:24 +00:00
|
|
|
}
|
|
|
|
|
2014-10-03 09:55:35 +00:00
|
|
|
buildTypes {
|
2014-10-07 13:20:24 +00:00
|
|
|
debug {
|
2014-10-11 18:27:00 +00:00
|
|
|
applicationIdSuffix ".debug"
|
2015-04-14 20:09:47 +00:00
|
|
|
minifyEnabled false
|
|
|
|
testCoverageEnabled true
|
2014-10-07 13:20:24 +00:00
|
|
|
}
|
2014-10-30 15:54:53 +00:00
|
|
|
release {
|
2014-11-04 11:51:48 +00:00
|
|
|
minifyEnabled true
|
2014-10-30 15:54:53 +00:00
|
|
|
proguardFile file("proguard-rules.pro")
|
|
|
|
}
|
2014-10-29 22:23:01 +00:00
|
|
|
}
|
2014-10-07 13:20:24 +00:00
|
|
|
|
2015-04-28 15:10:07 +00:00
|
|
|
// Increasing minSdkVersion reduces compilation time for MultiDex.
|
2015-04-14 20:09:47 +00:00
|
|
|
productFlavors {
|
2015-04-28 15:10:07 +00:00
|
|
|
dev.minSdkVersion 21
|
2015-04-14 20:09:47 +00:00
|
|
|
rel.minSdkVersion 15
|
2014-12-02 17:01:32 +00:00
|
|
|
}
|
|
|
|
|
2014-10-29 22:23:01 +00:00
|
|
|
// Avoid duplicate file errors during packaging.
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'decoder.properties'
|
|
|
|
exclude 'rootdoc.txt'
|
2014-11-04 11:51:48 +00:00
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
|
exclude 'META-INF/NOTICE'
|
2014-10-03 09:55:35 +00:00
|
|
|
}
|
|
|
|
}
|
2014-12-11 22:13:22 +00:00
|
|
|
|
|
|
|
tasks.withType(ScalaCompile) {
|
|
|
|
scalaCompileOptions.useCompileDaemon = true
|
|
|
|
}
|