95 lines
2.8 KiB
Kotlin
95 lines
2.8 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("androidx.navigation.safeargs.kotlin")
|
|
id("kotlin-kapt")
|
|
id("com.google.dagger.hilt.android")
|
|
}
|
|
|
|
kapt {
|
|
correctErrorTypes = true
|
|
}
|
|
|
|
android {
|
|
namespace = "com.mattintech.lchat"
|
|
compileSdk = 34
|
|
|
|
lint {
|
|
abortOnError = false
|
|
}
|
|
|
|
packaging {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId = "com.mattintech.lchat"
|
|
minSdk = 29
|
|
targetSdk = 34
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
applicationVariants.all {
|
|
val variant = this
|
|
variant.outputs
|
|
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
|
|
.forEach { output ->
|
|
val outputFileName = "localchat-${variant.versionName}-${variant.name}.apk"
|
|
output.outputFileName = outputFileName
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
buildFeatures {
|
|
viewBinding = true
|
|
buildConfig = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.core:core-ktx:1.12.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
|
|
implementation("androidx.activity:activity-compose:1.8.2")
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
implementation("com.google.android.material:material:1.11.0")
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0")
|
|
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.7.0")
|
|
implementation("androidx.fragment:fragment-ktx:1.6.2")
|
|
implementation("androidx.navigation:navigation-fragment-ktx:2.7.6")
|
|
implementation("androidx.navigation:navigation-ui-ktx:2.7.6")
|
|
|
|
// Hilt dependencies
|
|
implementation("com.google.dagger:hilt-android:2.50")
|
|
kapt("com.google.dagger:hilt-compiler:2.50")
|
|
|
|
// Room dependencies
|
|
val roomVersion = "2.6.1"
|
|
implementation("androidx.room:room-runtime:$roomVersion")
|
|
implementation("androidx.room:room-ktx:$roomVersion")
|
|
kapt("androidx.room:room-compiler:$roomVersion")
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
|
} |