AndroidAPS/app/build.gradle

199 lines
6.8 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 {
2017-04-22 10:18:31 +02:00
compileSdkVersion 23
2017-12-03 21:15:12 +01:00
buildToolsVersion "26.0.2"
2016-06-04 17:28:05 +02:00
defaultConfig {
applicationId "info.nightscout.androidaps"
minSdkVersion 21
2017-04-22 10:18:31 +02:00
targetSdkVersion 23
2017-10-15 02:52:57 +02:00
multiDexEnabled true
2017-06-04 22:37:58 +02:00
versionCode 1500
Merge remote-tracking branch 'origin/dev' into combo-scripter-v2 * origin/dev: (68 commits) max connection time to 120 sec make chart zoomable again fix NPE lowest priority for background calculations wear timestamps long remove unneeded code fix landscape overview synchronized wait fix build tools for travis try to fix travis upgrade build tools R: resolve thread deadlock during bolus stop remove unsupported code from korean pump handle bolus stop prior to delivery correctly fix translations better logging Revert unnecessary change. Send OpenAPS timestamp to watch rather than minAgo, for more accurate updates on watch face. gradle update parse more iso formats ... # Conflicts: # app/build.gradle # app/src/main/AndroidManifest.xml # app/src/main/java/info/nightscout/androidaps/Config.java # app/src/main/java/info/nightscout/androidaps/PreferencesActivity.java # app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java # app/src/main/java/info/nightscout/androidaps/plugins/Actions/dialogs/FillDialog.java # app/src/main/java/info/nightscout/androidaps/plugins/Actions/dialogs/NewExtendedBolusDialog.java # app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java # app/src/main/java/info/nightscout/androidaps/plugins/Loop/LoopPlugin.java # app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/NewTreatmentDialog.java # app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java # app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java # app/src/main/java/info/nightscout/androidaps/plugins/Overview/notifications/DismissNotificationService.java # app/src/main/java/info/nightscout/androidaps/plugins/Overview/notifications/Notification.java # app/src/main/java/info/nightscout/androidaps/plugins/Overview/notifications/NotificationStore.java # app/src/main/java/info/nightscout/androidaps/plugins/ProfileCircadianPercentage/CircadianPercentageProfilePlugin.java # app/src/main/java/info/nightscout/androidaps/plugins/ProfileNS/NSProfilePlugin.java # app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRS/services/DanaRSService.java # app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRv2/services/DanaRv2ExecutionService.java # app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsFragment.java # app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java # app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveReceiver.java # app/src/main/res/values/strings.xml # app/src/main/res/xml/pref_others.xml # app/src/main/res/xml/pref_wear.xml # gradle/wrapper/gradle-wrapper.properties # wear/build.gradle
2017-12-05 00:32:47 +01:00
version "1.56-combo-dev"
2017-02-23 20:00:33 +01:00
buildConfigField "String", "VERSION", '"' + version + '"'
buildConfigField "String", "BUILDVERSION", generateGitBuild()
2017-09-13 00:35:03 +02:00
ndk {
moduleName "BleCommandUtil"
}
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 {
2017-10-12 18:24:48 +02:00
flavorDimensions "standard"
2017-02-10 16:53:39 +01:00
full {
2016-11-26 05:31:23 +01:00
dimension "standard"
2017-02-23 20:00:33 +01:00
resValue "string", "app_name", "AndroidAPS"
versionName version
manifestPlaceholders = [
appIcon: "@mipmap/blueowl"
]
buildConfigField "boolean", "APS", "true"
buildConfigField "boolean", "PUMPDRIVERS", "true"
2017-02-23 20:00:33 +01:00
buildConfigField "boolean", "NSCLIENTOLNY", "false"
buildConfigField "boolean", "CLOSEDLOOP", "true"
2017-11-29 16:07:26 +01:00
buildConfigField "boolean", "G5UPLOADER", "false"
}
2017-02-23 20:00:33 +01:00
openloop {
2016-11-26 05:31:23 +01:00
dimension "standard"
2017-02-23 20:00:33 +01:00
resValue "string", "app_name", "AndroidAPS"
versionName version
manifestPlaceholders = [
appIcon: "@mipmap/blueowl"
]
buildConfigField "boolean", "APS", "true"
2016-09-05 09:11:30 +02:00
buildConfigField "boolean", "PUMPDRIVERS", "true"
2017-02-23 20:00:33 +01:00
buildConfigField "boolean", "NSCLIENTOLNY", "false"
2016-09-05 09:11:30 +02:00
buildConfigField "boolean", "CLOSEDLOOP", "false"
2017-11-29 16:07:26 +01:00
buildConfigField "boolean", "G5UPLOADER", "false"
2016-09-05 09:11:30 +02:00
}
2017-02-23 20:00:33 +01:00
pumpcontrol {
2016-11-26 05:31:23 +01:00
dimension "standard"
2017-02-23 20:00:33 +01:00
resValue "string", "app_name", "AndroidAPS"
versionName version
manifestPlaceholders = [
appIcon: "@mipmap/blueowl"
]
2016-07-15 23:53:14 +02:00
buildConfigField "boolean", "APS", "false"
2017-02-23 20:00:33 +01:00
buildConfigField "boolean", "PUMPDRIVERS", "true"
buildConfigField "boolean", "NSCLIENTOLNY", "false"
2016-07-15 23:53:14 +02:00
buildConfigField "boolean", "CLOSEDLOOP", "false"
2017-11-29 16:07:26 +01:00
buildConfigField "boolean", "G5UPLOADER", "false"
2016-07-15 23:53:14 +02:00
}
2017-02-23 20:00:33 +01:00
nsclient {
2016-11-26 05:31:23 +01:00
dimension "standard"
2017-02-23 20:00:33 +01:00
resValue "string", "app_name", "NSClient"
versionName version + "-nsclient"
manifestPlaceholders = [
appIcon: "@mipmap/yellowowl"
]
buildConfigField "boolean", "APS", "false"
buildConfigField "boolean", "PUMPDRIVERS", "false"
buildConfigField "boolean", "NSCLIENTOLNY", "true"
2016-07-15 23:53:14 +02:00
buildConfigField "boolean", "CLOSEDLOOP", "false"
2017-11-29 16:07:26 +01:00
buildConfigField "boolean", "G5UPLOADER", "false"
}
g5uploader {
dimension "standard"
resValue "string", "app_name", "NSClient"
versionName version + "-nsclient"
manifestPlaceholders = [
appIcon: "@mipmap/yellowowl"
]
buildConfigField "boolean", "APS", "false"
buildConfigField "boolean", "PUMPDRIVERS", "false"
buildConfigField "boolean", "NSCLIENTOLNY", "false"
buildConfigField "boolean", "CLOSEDLOOP", "false"
buildConfigField "boolean", "G5UPLOADER", "true"
2016-07-15 23:53:14 +02:00
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
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 {
2017-10-12 18:01:10 +02:00
wearApp project(':wear')
2016-12-30 16:43:43 +01:00
compile fileTree(include: ['*.jar'], dir: 'libs')
2017-03-09 10:25:13 +01:00
compile('com.crashlytics.sdk.android:crashlytics:2.6.7@aar') {
2016-07-02 23:58:57 +02:00
transitive = true;
}
2017-03-09 10:25:13 +01:00
compile('com.crashlytics.sdk.android:answers:1.3.12@aar') {
2017-03-02 23:08:40 +01:00
transitive = true;
}
2017-01-29 13:00:21 +01:00
2017-04-22 10:18:31 +02:00
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:gridlayout-v7:23.4.0'
compile "com.android.support:design:23.4.0"
compile "com.android.support:percent:23.4.0"
2016-07-02 23:58:57 +02:00
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'
}
2017-10-14 15:31:03 +02:00
compile 'org.apache.commons:commons-lang3:3.6'
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-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'
2017-04-21 12:03:54 +02:00
testCompile 'org.mockito:mockito-core:2.7.22'
androidTestCompile 'org.mockito:mockito-core:2.7.22'
2017-03-07 10:52:25 +01:00
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
2017-03-07 10:52:25 +01:00
compile(name: 'android-edittext-validator-v1.3.4-mod', ext: 'aar')
2017-11-29 16:07:26 +01:00
compile('com.google.android:flexbox:0.3.0') {
2017-06-30 17:43:10 +02:00
exclude group: 'com.android.support'
}
2017-03-07 10:52:25 +01:00
compile('io.socket:socket.io-client:0.8.3') {
2017-02-17 13:18:36 +01:00
// excluding org.json which is provided by Android
exclude group: 'org.json', module: 'json'
}
2017-04-21 12:03:54 +02:00
compile 'com.google.code.gson:gson:2.7'
compile 'com.google.guava:guava:20.0'
compile project(path: ':ruffyscripter')
2017-07-21 16:49:43 +02:00
}