2016-11-17 15:17:02 +01:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
2018-01-13 21:34:38 +01:00
|
|
|
ext {
|
|
|
|
supportLibraryVersion = "23.0.1"
|
|
|
|
wearableVersion = "2.0.1"
|
|
|
|
}
|
|
|
|
|
2017-08-08 02:06:46 +02: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) {
|
|
|
|
stringBuilder.append('NoGitSystemAvailable')
|
|
|
|
}
|
|
|
|
stringBuilder.append('-')
|
|
|
|
stringBuilder.append((new Date()).format('yyyy.MM.dd'))
|
|
|
|
stringBuilder.append('"')
|
|
|
|
return stringBuilder.toString()
|
|
|
|
}
|
2016-11-17 15:17:02 +01: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-11-17 15:17:02 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "info.nightscout.androidaps"
|
|
|
|
minSdkVersion 20
|
2017-04-22 10:18:31 +02:00
|
|
|
targetSdkVersion 23
|
2016-11-17 15:17:02 +01:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0.2"
|
2017-08-08 02:06:46 +02:00
|
|
|
buildConfigField "String", "BUILDVERSION", generateGitBuild()
|
2016-11-17 15:17:02 +01:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publishNonDefault true
|
|
|
|
|
2017-10-28 13:42:42 +02:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2016-11-17 15:17:02 +01:00
|
|
|
}
|
|
|
|
|
2016-11-25 21:29:46 +01:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
flatDir {
|
|
|
|
dirs 'libs'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-11-17 15:17:02 +01:00
|
|
|
dependencies {
|
2016-11-18 01:01:42 +01:00
|
|
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
2018-01-13 21:34:38 +01:00
|
|
|
compile files("libs/hellocharts-library-1.5.5.jar")
|
|
|
|
//compile "com.ustwo.android:clockwise-wearable:1.0.2"
|
|
|
|
provided "com.google.android.wearable:wearable:${wearableVersion}"
|
|
|
|
compile "com.google.android.support:wearable:${wearableVersion}"
|
|
|
|
compile "com.google.android.gms:play-services-wearable:7.3.0"
|
|
|
|
compile(name:"ustwo-clockwise-debug", ext:"aar")
|
|
|
|
compile "com.android.support:support-v4:23.0.1"
|
|
|
|
compile "me.denley.wearpreferenceactivity:wearpreferenceactivity:0.5.0"
|
2017-12-27 14:57:54 +01:00
|
|
|
}
|