mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 08:17:04 +05:30
64 lines
2 KiB
Kotlin
64 lines
2 KiB
Kotlin
import java.util.Properties
|
|
|
|
plugins {
|
|
id("org.jetbrains.compose") version "0.5.0-build235"
|
|
id("com.android.application")
|
|
id("me.amanjeet.daggertrack")
|
|
kotlin("android")
|
|
kotlin("kapt")
|
|
id("dagger.hilt.android.plugin")
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
|
|
content { includeModule("me.amanjeet.daggertrack", "dagger-track-clocks") }
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
kapt(libs.dagger.hilt.compiler)
|
|
implementation(projects.api)
|
|
implementation(projects.common)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.androidx.paging.compose)
|
|
implementation(libs.dagger.hilt.android)
|
|
implementation(libs.dagger.track.clocks)
|
|
implementation(libs.retrofit.moshiConverter)
|
|
implementation(libs.moshix.metadatareflect)
|
|
}
|
|
|
|
android {
|
|
compileSdk = 30
|
|
defaultConfig {
|
|
applicationId = "dev.msfjarvis.claw.android"
|
|
minSdk = 23
|
|
targetSdk = 30
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
}
|
|
val keystoreConfigFile = rootProject.layout.projectDirectory.file("keystore.properties")
|
|
if (keystoreConfigFile.asFile.exists()) {
|
|
val contents = providers.fileContents(keystoreConfigFile).asText.forUseAtConfigurationTime()
|
|
val keystoreProperties = Properties()
|
|
keystoreProperties.load(contents.get().byteInputStream())
|
|
signingConfigs {
|
|
register("release") {
|
|
keyAlias = keystoreProperties["keyAlias"] as String
|
|
keyPassword = keystoreProperties["keyPassword"] as String
|
|
storeFile = rootProject.file(keystoreProperties["storeFile"] as String)
|
|
storePassword = keystoreProperties["storePassword"] as String
|
|
}
|
|
}
|
|
buildTypes.all { signingConfig = signingConfigs.getByName("release") }
|
|
}
|
|
buildTypes { getByName("release") { isMinifyEnabled = false } }
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
configure<me.amanjeet.daggertrack.DaggerTrackPlugin.DaggerTrackExtension> {
|
|
applyFor = arrayOf("debug")
|
|
}
|
|
}
|