AndroidAPS/app/build.gradle

150 lines
4.6 KiB
Groovy
Raw Normal View History

2016-06-24 17:48:11 +02:00
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
2016-06-04 17:28:05 +02:00
apply plugin: 'com.android.application'
2016-06-24 17:48:11 +02:00
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
def generateGitBuild = { ->
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append('"')
try {
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--always'
standardOutput = stdout
}
String commitObject = stdout.toString().trim()
stringBuilder.append(commitObject)
} catch (ignored) {
2016-11-08 22:55:08 +01:00
stringBuilder.append('NoGitSystemAvailable')
}
stringBuilder.append('-')
stringBuilder.append((new Date()).format('yyyy.MM.dd'))
stringBuilder.append('"')
return stringBuilder.toString()
}
2016-06-04 17:28:05 +02:00
android {
compileSdkVersion 23
2016-12-28 15:58:44 +01:00
buildToolsVersion "25.0.2"
2016-06-04 17:28:05 +02:00
defaultConfig {
applicationId "info.nightscout.androidaps"
minSdkVersion 21
targetSdkVersion 23
2017-01-07 23:39:29 +01:00
versionCode 1100
2017-02-09 17:17:40 +01:00
versionName "1.1e"
buildConfigField "String", "BUILDVERSION", generateGitBuild()
2016-06-04 17:28:05 +02:00
}
2016-10-21 22:16:20 +02:00
lintOptions {
disable 'MissingTranslation'
}
2016-06-04 17:28:05 +02:00
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
2016-07-15 23:53:14 +02:00
productFlavors {
2016-12-27 18:47:48 +01:00
flavorDimensions "standard", "limits", "wear"
adult {
dimension "limits"
buildConfigField "int", "MAXBOLUS", "17"
}
2016-12-27 18:47:48 +01:00
teenage {
dimension "limits"
buildConfigField "int", "MAXBOLUS", "10"
}
2016-12-27 18:47:48 +01:00
child {
dimension "limits"
buildConfigField "int", "MAXBOLUS", "5"
}
full {
2016-11-26 05:31:23 +01:00
dimension "standard"
buildConfigField "boolean", "APS", "true"
buildConfigField "boolean", "PUMPDRIVERS", "true"
buildConfigField "boolean", "CLOSEDLOOP", "true"
}
2016-12-27 18:47:48 +01:00
pumpcontrol {
2016-11-26 05:31:23 +01:00
dimension "standard"
2016-09-05 09:11:30 +02:00
buildConfigField "boolean", "APS", "false"
buildConfigField "boolean", "PUMPDRIVERS", "true"
buildConfigField "boolean", "CLOSEDLOOP", "false"
}
2016-07-15 23:53:14 +02:00
careportal {
2016-11-26 05:31:23 +01:00
dimension "standard"
2016-07-15 23:53:14 +02:00
buildConfigField "boolean", "APS", "false"
buildConfigField "boolean", "PUMPDRIVERS", "false"
buildConfigField "boolean", "CLOSEDLOOP", "false"
}
openloop {
2016-11-26 05:31:23 +01:00
dimension "standard"
2016-07-15 23:53:14 +02:00
buildConfigField "boolean", "APS", "true"
buildConfigField "boolean", "PUMPDRIVERS", "true"
buildConfigField "boolean", "CLOSEDLOOP", "false"
}
2016-11-26 05:31:23 +01:00
wear {
dimension "wear"
buildConfigField "boolean", "WEAR", "true"
}
nowear {
dimension "wear"
buildConfigField "boolean", "WEAR", "false"
}
2016-07-15 23:53:14 +02:00
}
2016-06-04 17:28:05 +02:00
}
2017-01-29 13:00:21 +01:00
allprojects {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
}
2016-06-04 17:28:05 +02:00
dependencies {
2016-11-26 05:31:23 +01:00
wearWearApp project(path: ':wear', configuration: 'fullRelease')
2016-12-30 16:43:43 +01:00
compile fileTree(include: ['*.jar'], dir: 'libs')
2016-07-02 23:58:57 +02:00
compile('com.crashlytics.sdk.android:crashlytics:2.5.7@aar') {
transitive = true;
}
2017-01-29 13:00:21 +01:00
2016-06-04 17:28:05 +02:00
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
2016-06-05 01:40:35 +02:00
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
2016-07-02 23:58:57 +02:00
compile 'com.android.support:gridlayout-v7:23.4.0'
compile 'com.wdullaer:materialdatetimepicker:2.3.0'
2016-06-05 01:40:35 +02:00
compile 'com.squareup:otto:1.3.7'
compile 'com.j256.ormlite:ormlite-core:4.46'
compile 'com.j256.ormlite:ormlite-android:4.46'
2016-12-27 16:21:04 +01:00
compile('com.github.tony19:logback-android-classic:1.1.1-6') {
exclude group: 'com.google.android', module: 'android'
}
2016-06-05 01:40:35 +02:00
compile 'org.slf4j:slf4j-api:1.7.12'
2016-06-09 00:01:28 +02:00
compile 'com.jjoe64:graphview:4.0.1'
2016-06-10 18:50:46 +02:00
compile 'com.eclipsesource.j2v8:j2v8:3.1.6@aar'
2016-07-08 00:17:02 +02:00
compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.1.1'
2016-11-17 15:17:02 +01:00
compile 'com.google.android.gms:play-services-wearable:7.5.0'
2016-12-30 16:43:43 +01:00
compile 'junit:junit:4.12'
testCompile 'org.json:json:20140107'
2016-12-31 13:11:32 +01:00
testCompile 'org.mockito:mockito-core:2.+'
androidTestCompile 'org.mockito:mockito-core:2.+'
androidTestCompile "com.google.dexmaker:dexmaker:1.2"
androidTestCompile "com.google.dexmaker:dexmaker-mockito:1.2"
2017-01-29 13:00:21 +01:00
compile(name:'android-edittext-validator-v1.3.4-mod', ext:'aar')
2016-06-05 01:40:35 +02:00
}