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

85 lines
2.2 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 {
2014-11-30 19:52:47 +00:00
classpath "com.android.tools.build:gradle:0.14.4"
2014-11-12 21:45:38 +00:00
classpath "jp.leafytree.gradle:gradle-android-scala-plugin:1.3.1"
2014-10-07 13:20:24 +00:00
}
}
dependencies {
compile "com.android.support:support-v4:21.0.0"
// For `flat` debug config, as `flatProvided` is unknown.
provided "org.scala-lang:scala-library:2.11.4"
debugCompile "org.scala-lang:scala-library:2.11.4"
releaseCompile "org.scala-lang:scala-library:2.11.4"
compile("org.msgpack:msgpack-scala_2.11:0.6.11") {
transitive = false;
}
compile('org.msgpack:msgpack:0.6.11') {
transitive = false;
}
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
2014-11-12 21:45:38 +00:00
buildToolsVersion "21.1.1"
2014-10-03 09:55:35 +00:00
defaultConfig {
applicationId "com.nutomic.ensichat"
minSdkVersion 15
targetSdkVersion 21
2014-10-03 09:55:35 +00:00
versionCode 1
versionName "0.1.0"
}
2014-10-07 13:20:24 +00:00
sourceSets {
main {
scala.srcDir "src/main/scala"
2014-10-07 13:20:24 +00:00
}
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
}
}