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/android/build.gradle

69 lines
2.1 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 {
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
}
}
dependencies {
2016-09-19 07:48:51 +00:00
compile 'com.android.support:design:24.2.0'
2015-04-14 20:09:47 +00:00
compile 'com.android.support:multidex:1.0.1'
compile 'org.scala-lang:scala-library:2.11.7'
compile 'com.mobsandgeeks:adapter-kit:0.5.3'
2016-09-19 07:48:51 +00:00
compile 'com.google.zxing:android-integration:3.3.0'
compile 'com.google.zxing:core:3.3.0'
2016-05-04 05:03:02 +00:00
compile 'org.slf4j:slf4j-android:1.7.21'
compile project(path: ':core')
androidTestCompile 'com.android.support:multidex-instrumentation:1.0.1',
{ exclude module: 'multidex' }
2014-10-07 13:20:24 +00:00
}
// RtlHardcoded behaviour differs between target API versions. We only care about API 15.
preBuild.doFirst {
android.applicationVariants.each { variant ->
if (variant.name == 'devDebug' || variant.name == 'devRelease') {
println variant.name
android.lintOptions.disable 'RtlHardcoded'
}
}
}
2014-10-03 09:55:35 +00:00
android {
2015-09-11 14:36:26 +00:00
compileSdkVersion 23
buildToolsVersion "22.0.1"
2014-10-03 09:55:35 +00:00
defaultConfig {
applicationId "com.nutomic.ensichat"
2015-09-11 14:36:26 +00:00
targetSdkVersion 23
2016-09-23 12:40:58 +00:00
versionCode 16
versionName "0.5.1"
2015-04-14 20:09:47 +00:00
multiDexEnabled true
testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner"
2014-10-07 13:20:24 +00:00
}
buildTypes {
debug {
applicationIdSuffix ".debug"
testCoverageEnabled true
}
release {
// HACK: This shouldn't be needed, but multidex isn't working correctly.
// https://code.google.com/p/android/issues/detail?id=206131
// https://code.google.com/p/android/issues/detail?id=209084
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), file('proguard-rules.txt')
}
}
2014-10-07 13:20:24 +00:00
// Increasing minSdkVersion reduces compilation time for MultiDex.
2015-04-14 20:09:47 +00:00
productFlavors {
dev.minSdkVersion 21
2015-04-14 20:09:47 +00:00
rel.minSdkVersion 15
}
}