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' }
|
|
|
|
}
|
|
|
|
|
2016-11-08 19:10:25 +01:00
|
|
|
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')
|
2016-11-08 19:10:25 +01:00
|
|
|
}
|
|
|
|
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
|
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
|
2017-04-22 10:18:31 +02:00
|
|
|
targetSdkVersion 23
|
2017-06-04 22:37:58 +02:00
|
|
|
versionCode 1500
|
2017-09-18 21:59:01 +02:00
|
|
|
version "1.53"
|
2017-02-23 20:00:33 +01:00
|
|
|
buildConfigField "String", "VERSION", '"' + version + '"'
|
2016-11-08 19:10:25 +01:00
|
|
|
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 {
|
2017-02-22 20:29:41 +01:00
|
|
|
flavorDimensions "standard", "wear"
|
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"
|
|
|
|
]
|
2016-10-21 00:03:52 +02:00
|
|
|
buildConfigField "boolean", "APS", "true"
|
|
|
|
buildConfigField "boolean", "PUMPDRIVERS", "true"
|
2017-02-23 20:00:33 +01:00
|
|
|
buildConfigField "boolean", "NSCLIENTOLNY", "false"
|
2016-10-21 00:03:52 +02:00
|
|
|
buildConfigField "boolean", "CLOSEDLOOP", "true"
|
|
|
|
}
|
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-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-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"
|
|
|
|
}
|
2016-11-26 05:31:23 +01:00
|
|
|
wear {
|
|
|
|
dimension "wear"
|
|
|
|
buildConfigField "boolean", "WEAR", "true"
|
2017-02-13 01:55:35 +01:00
|
|
|
buildConfigField "boolean", "WEAR_CONTROL", "false"
|
|
|
|
|
|
|
|
}
|
|
|
|
wearcontrol {
|
|
|
|
dimension "wear"
|
|
|
|
buildConfigField "boolean", "WEAR", "true"
|
|
|
|
buildConfigField "boolean", "WEAR_CONTROL", "true"
|
2016-11-26 05:31:23 +01:00
|
|
|
}
|
|
|
|
nowear {
|
|
|
|
dimension "wear"
|
|
|
|
buildConfigField "boolean", "WEAR", "false"
|
2017-02-13 01:55:35 +01:00
|
|
|
buildConfigField "boolean", "WEAR_CONTROL", "false"
|
2016-11-26 05:31:23 +01:00
|
|
|
}
|
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 {
|
2017-02-13 01:55:35 +01:00
|
|
|
wearWearApp project(path: ':wear', configuration: 'restrictedRelease')
|
|
|
|
wearcontrolWearApp project(path: ':wear', configuration: 'fullRelease')
|
|
|
|
|
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'
|
|
|
|
}
|
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'
|
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'
|
|
|
|
compile(name: 'android-edittext-validator-v1.3.4-mod', ext: 'aar')
|
2017-06-30 17:43:10 +02:00
|
|
|
compile ('com.google.android:flexbox:0.3.0') {
|
|
|
|
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'
|
2017-01-29 13:00:21 +01:00
|
|
|
|
2017-07-21 16:49:43 +02:00
|
|
|
}
|