2020-06-10 19:16:11 +00:00
|
|
|
plugins {
|
|
|
|
id("com.android.library")
|
|
|
|
id("kotlin-android")
|
|
|
|
id("kotlin-kapt")
|
2021-11-16 16:06:19 +00:00
|
|
|
kotlin("kapt")
|
|
|
|
id("dagger.hilt.android.plugin")
|
2020-06-10 19:16:11 +00:00
|
|
|
}
|
|
|
|
|
2020-10-11 18:14:49 +00:00
|
|
|
val homeAssistantAndroidPushUrl: String by project
|
|
|
|
val homeAssistantAndroidRateLimitUrl: String by project
|
|
|
|
|
2021-08-07 01:41:30 +00:00
|
|
|
val versionName = System.getenv("VERSION") ?: "LOCAL"
|
|
|
|
val versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
|
|
|
|
|
2020-06-10 19:16:11 +00:00
|
|
|
android {
|
2021-10-14 00:58:14 +00:00
|
|
|
compileSdk = 31
|
2020-06-10 19:16:11 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2021-10-13 03:35:05 +00:00
|
|
|
minSdk = 21
|
2020-10-11 18:14:49 +00:00
|
|
|
buildConfigField("String", "PUSH_URL", "\"$homeAssistantAndroidPushUrl\"")
|
|
|
|
buildConfigField("String", "RATE_LIMIT_URL", "\"$homeAssistantAndroidRateLimitUrl\"")
|
2021-03-10 20:37:10 +00:00
|
|
|
buildConfigField("String", "VERSION_NAME", "\"$versionName-$versionCode\"")
|
2021-11-27 18:08:26 +00:00
|
|
|
|
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
|
|
|
arguments(mapOf("room.incremental" to "true"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility(JavaVersion.VERSION_11)
|
|
|
|
targetCompatibility(JavaVersion.VERSION_11)
|
|
|
|
}
|
|
|
|
|
|
|
|
lint {
|
|
|
|
isAbortOnError = false
|
|
|
|
disable("MissingTranslation")
|
|
|
|
}
|
|
|
|
|
|
|
|
kapt {
|
|
|
|
correctErrorTypes = true
|
2020-06-10 19:16:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-11-15 23:04:35 +00:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.0")
|
2021-11-15 22:36:06 +00:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.0")
|
2021-10-14 00:58:14 +00:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
|
2020-06-10 19:16:11 +00:00
|
|
|
|
2021-11-27 19:34:58 +00:00
|
|
|
implementation("com.google.dagger:hilt-android:2.40.2")
|
2021-12-09 01:55:55 +00:00
|
|
|
kapt("com.google.dagger:hilt-android-compiler:2.40.5")
|
2020-06-10 19:16:11 +00:00
|
|
|
|
2021-11-27 18:08:26 +00:00
|
|
|
api("androidx.room:room-runtime:2.3.0")
|
|
|
|
api("androidx.room:room-ktx:2.3.0")
|
|
|
|
kapt("androidx.room:room-compiler:2.3.0")
|
|
|
|
|
2021-12-09 01:52:51 +00:00
|
|
|
api("androidx.work:work-runtime-ktx:2.7.1")
|
2021-11-27 18:08:26 +00:00
|
|
|
|
2021-07-25 19:33:59 +00:00
|
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
|
|
implementation("com.squareup.retrofit2:converter-jackson:2.9.0")
|
2021-11-23 01:34:52 +00:00
|
|
|
implementation("com.squareup.okhttp3:okhttp:4.9.3")
|
2021-11-23 01:36:19 +00:00
|
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.9.3")
|
2021-10-01 02:04:40 +00:00
|
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.0")
|
2021-10-13 02:31:05 +00:00
|
|
|
implementation("org.altbeacon:android-beacon-library:2.19.3")
|
2020-06-10 19:16:11 +00:00
|
|
|
}
|