AndroidAPS/wear/build.gradle

102 lines
2.8 KiB
Groovy
Raw Normal View History

2016-11-17 15:17:02 +01:00
apply plugin: 'com.android.application'
2018-01-13 21:34:38 +01:00
ext {
2018-04-04 21:38:44 +02:00
wearableVersion = "2.0.1"
2018-01-13 21:34:38 +01:00
}
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 {
compileSdkVersion 27
2016-11-17 15:17:02 +01:00
defaultConfig {
applicationId "info.nightscout.androidaps"
2018-06-27 08:04:57 +02:00
minSdkVersion 23
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'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2018-08-29 17:56:34 +02:00
2019-03-14 10:47:29 +01:00
lintOptions {
abortOnError false
}
2018-08-29 17:56:34 +02:00
productFlavors {
flavorDimensions "standard"
full {
applicationId "info.nightscout.androidaps"
dimension "standard"
versionName version
}
pumpcontrol {
2019-03-05 20:44:51 +01:00
applicationId "info.nightscout.aapspumpcontrol"
2018-08-29 17:56:34 +02:00
dimension "standard"
2019-03-05 20:44:51 +01:00
versionName version + "-pumpcontrol"
2018-08-29 17:56:34 +02:00
}
nsclient {
applicationId "info.nightscout.nsclient"
dimension "standard"
versionName version + "-nsclient"
}
nsclient2 {
applicationId "info.nightscout.nsclient2"
dimension "standard"
versionName version + "-nsclient"
}
}
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 {
2018-03-30 21:26:07 +02:00
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files("libs/hellocharts-library-1.5.5.jar")
2018-01-13 21:34:38 +01:00
//compile "com.ustwo.android:clockwise-wearable:1.0.2"
2018-03-30 21:26:07 +02:00
compileOnly "com.google.android.wearable:wearable:${wearableVersion}"
implementation "com.google.android.support:wearable:${wearableVersion}"
implementation "com.google.android.gms:play-services-wearable:7.3.0"
implementation(name:"ustwo-clockwise-debug", ext:"aar")
2018-06-27 08:04:57 +02:00
implementation "com.android.support:support-v4:27.0.1"
implementation 'com.android.support:wear:27.0.1'
2018-03-30 21:26:07 +02:00
implementation "me.denley.wearpreferenceactivity:wearpreferenceactivity:0.5.0"
2017-12-27 14:57:54 +01:00
}