Felix Ableitner
83fc696cc7
For documentation on how AODVv2 works, see this link: https://datatracker.ietf.org/doc/draft-ietf-manet-aodvv2/ Note that this implementation is incompatible with AODVv2 itself, as various details are changed, and not all features have been implemented
68 lines
2.1 KiB
Groovy
68 lines
2.1 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'jp.leafytree.android-scala'
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "jp.leafytree.gradle:gradle-android-scala-plugin:1.4"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile 'com.android.support:design:23.4.0'
|
|
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'
|
|
compile 'com.google.zxing:android-integration:3.2.1'
|
|
compile 'com.google.zxing:core:3.2.1'
|
|
compile 'org.slf4j:slf4j-android:1.7.21'
|
|
compile project(path: ':core')
|
|
androidTestCompile 'com.android.support:multidex-instrumentation:1.0.1',
|
|
{ exclude module: 'multidex' }
|
|
}
|
|
|
|
// 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'
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 23
|
|
buildToolsVersion "22.0.1"
|
|
|
|
defaultConfig {
|
|
applicationId "com.nutomic.ensichat"
|
|
targetSdkVersion 23
|
|
versionCode 12
|
|
versionName "0.2.3"
|
|
multiDexEnabled true
|
|
testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner"
|
|
}
|
|
|
|
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')
|
|
}
|
|
}
|
|
|
|
// Increasing minSdkVersion reduces compilation time for MultiDex.
|
|
productFlavors {
|
|
dev.minSdkVersion 21
|
|
rel.minSdkVersion 15
|
|
}
|
|
}
|