home-assistant-android/common/build.gradle.kts

71 lines
2.1 KiB
Plaintext
Raw Normal View History

plugins {
id("com.android.library")
id("kotlin-android")
id("kotlin-kapt")
kotlin("kapt")
id("dagger.hilt.android.plugin")
}
val homeAssistantAndroidPushUrl: String by project
val homeAssistantAndroidRateLimitUrl: String by project
val versionName = System.getenv("VERSION") ?: "LOCAL"
val versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
android {
compileSdk = 31
defaultConfig {
minSdk = 21
buildConfigField("String", "PUSH_URL", "\"$homeAssistantAndroidPushUrl\"")
buildConfigField("String", "RATE_LIMIT_URL", "\"$homeAssistantAndroidRateLimitUrl\"")
buildConfigField("String", "VERSION_NAME", "\"$versionName-$versionCode\"")
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
}
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.0")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
Bump hilt-android from 2.40.1 to 2.40.2 (#1965) * Bump hilt-android-gradle-plugin from 2.40.1 to 2.40.2 Bumps [hilt-android-gradle-plugin](https://github.com/google/dagger) from 2.40.1 to 2.40.2. - [Release notes](https://github.com/google/dagger/releases) - [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/dagger/compare/dagger-2.40.1...dagger-2.40.2) --- updated-dependencies: - dependency-name: com.google.dagger:hilt-android-gradle-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hilt-android from 2.40.1 to 2.40.2 Bumps [hilt-android](https://github.com/google/dagger) from 2.40.1 to 2.40.2. - [Release notes](https://github.com/google/dagger/releases) - [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/dagger/compare/dagger-2.40.1...dagger-2.40.2) --- updated-dependencies: - dependency-name: com.google.dagger:hilt-android dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Bump hilt-android-compiler from 2.40.1 to 2.40.2 Bumps [hilt-android-compiler](https://github.com/google/dagger) from 2.40.1 to 2.40.2. - [Release notes](https://github.com/google/dagger/releases) - [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/dagger/compare/dagger-2.40.1...dagger-2.40.2) --- updated-dependencies: - dependency-name: com.google.dagger:hilt-android-compiler dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2021-11-27 19:34:58 +00:00
implementation("com.google.dagger:hilt-android:2.40.2")
kapt("com.google.dagger:hilt-android-compiler:2.40.5")
api("androidx.room:room-runtime:2.3.0")
api("androidx.room:room-ktx:2.3.0")
kapt("androidx.room:room-compiler:2.3.0")
api("androidx.work:work-runtime-ktx:2.7.1")
implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.squareup.retrofit2:converter-jackson:2.9.0")
implementation("com.squareup.okhttp3:okhttp:4.9.3")
implementation("com.squareup.okhttp3:logging-interceptor:4.9.3")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.0")
implementation("org.altbeacon:android-beacon-library:2.19.3")
}