AndroidAPS/wear/build.gradle

134 lines
4.3 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
google()
mavenCentral()
2020-07-28 23:49:21 +02:00
maven { url "https://plugins.gradle.org/m2/" } // jacoco 0.2
}
dependencies {
2020-07-28 23:49:21 +02:00
//classpath 'com.dicedmelon.gradle:jacoco-android:0.1.4'
classpath 'com.hiya:jacoco-android:0.2'
}
}
2016-11-17 15:17:02 +01:00
apply plugin: 'com.android.application'
2021-05-18 19:02:25 +02:00
apply plugin: 'kotlin-android'
2021-12-09 22:42:43 +01:00
apply plugin: 'kotlin-kapt'
2021-09-21 21:57:56 +02:00
apply plugin: 'kotlin-allopen'
2020-07-28 23:49:21 +02:00
apply plugin: 'com.hiya.jacoco-android'
2022-04-07 14:15:44 +02:00
apply from: "${project.rootDir}/gradle/test_dependencies.gradle"
2021-12-09 22:42:43 +01:00
apply from: "${project.rootDir}/gradle/android_dependencies.gradle"
apply from: "${project.rootDir}/gradle/jacoco_global.gradle"
2021-07-09 20:02:22 +02:00
2016-11-17 15:17:02 +01:00
2018-01-13 21:34:38 +01:00
ext {
wearableVersion = "2.9.0"
2022-04-11 14:25:00 +02:00
playServicesWearable = "17.1.0"
2018-01-13 21:34:38 +01:00
}
2017-08-08 02:06:46 +02:00
def generateGitBuild = { ->
2019-07-26 23:21:01 +02:00
StringBuilder stringBuilder = new StringBuilder()
2017-08-08 02:06:46 +02:00
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 {
2021-12-08 15:20:34 +01:00
compileSdkVersion 31
2016-11-17 15:17:02 +01:00
defaultConfig {
2020-11-30 20:02:33 +01:00
minSdkVersion 23
2021-12-14 12:17:04 +01:00
targetSdkVersion 29
2021-01-09 07:00:32 +01:00
versionCode 2
versionName "1.0.3"
2017-08-08 02:06:46 +02:00
buildConfigField "String", "BUILDVERSION", generateGitBuild()
2016-11-17 15:17:02 +01:00
}
2019-03-14 10:47:29 +01:00
2021-02-04 12:57:35 +01:00
flavorDimensions "standard"
2018-08-29 17:56:34 +02:00
productFlavors {
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 {
google()
mavenCentral()
2016-11-25 21:29:46 +01:00
}
}
2016-11-17 15:17:02 +01:00
dependencies {
2021-12-10 08:58:23 +01:00
implementation project(':shared')
2018-03-30 21:26:07 +02:00
implementation fileTree(include: ['*.jar'], dir: 'libs')
2022-02-10 17:13:42 +01:00
implementation "androidx.core:core-ktx:$core_version"
implementation "androidx.appcompat:appcompat:$appcompat_version"
2021-12-10 15:19:19 +01:00
implementation "androidx.preference:preference-ktx:$preferencektx_version"
2021-12-10 16:29:05 +01:00
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.wear:wear:1.2.0'
2021-12-10 15:19:19 +01:00
2018-03-30 21:26:07 +02:00
compileOnly "com.google.android.wearable:wearable:${wearableVersion}"
implementation "com.google.android.support:wearable:${wearableVersion}"
2019-03-05 00:23:51 +01:00
implementation "com.google.android.gms:play-services-wearable:${playServicesWearable}"
2022-04-04 12:06:30 +02:00
implementation(files('libs/ustwo-clockwise-debug.aar'))
implementation(files('libs/wearpreferenceactivity-0.5.0.aar'))
2019-05-16 00:21:32 +02:00
implementation('com.github.lecho:hellocharts-library:1.5.8@aar')
2020-05-04 21:37:03 +02:00
2022-04-11 14:25:00 +02:00
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-guava:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$coroutines_version"
2022-02-13 16:09:31 +01:00
implementation "androidx.core:core-ktx:$core_version"
implementation "androidx.wear.tiles:tiles:1.0.1"
2021-12-08 15:20:34 +01:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
2021-12-09 22:42:43 +01:00
// for old fashioned support-app version
implementation "com.google.dagger:dagger:$dagger_version"
implementation "com.google.dagger:dagger-android:$dagger_version"
implementation "com.google.dagger:dagger-android-support:$dagger_version"
annotationProcessor "com.google.dagger:dagger-compiler:$dagger_version"
annotationProcessor "com.google.dagger:dagger-android-processor:$dagger_version"
kapt "com.google.dagger:dagger-android-processor:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
2021-05-18 19:02:25 +02:00
}
repositories {
mavenCentral()
2017-12-27 14:57:54 +01:00
}