74 lines
1.6 KiB
Groovy
74 lines
1.6 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "com.android.tools.build:gradle:0.14.4"
|
|
classpath "jp.leafytree.gradle:gradle-android-scala-plugin:1.3.1"
|
|
}
|
|
}
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'jp.leafytree.android-scala'
|
|
|
|
android {
|
|
compileSdkVersion 21
|
|
buildToolsVersion "21.1.1"
|
|
|
|
defaultConfig {
|
|
applicationId "com.nutomic.ensichat"
|
|
minSdkVersion 15
|
|
targetSdkVersion 21
|
|
versionCode 1
|
|
versionName "0.1.0"
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
scala {
|
|
srcDir "src/main/scala"
|
|
}
|
|
}
|
|
|
|
androidTest {
|
|
scala {
|
|
srcDir "src/androidTest/scala"
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
// minifyEnabled true
|
|
proguardFile file("proguard-rules.pro")
|
|
applicationIdSuffix ".debug"
|
|
}
|
|
release {
|
|
minifyEnabled true
|
|
proguardFile file("proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
// Avoid duplicate file errors during packaging.
|
|
packagingOptions {
|
|
exclude 'decoder.properties'
|
|
exclude 'rootdoc.txt'
|
|
exclude 'META-INF/LICENSE'
|
|
exclude 'META-INF/NOTICE'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile "com.android.support:support-v4:21.+"
|
|
provided "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;
|
|
}
|
|
}
|
|
|
|
|