98 lines
2.8 KiB
Kotlin
98 lines
2.8 KiB
Kotlin
plugins {
|
|
id(com.android.application)
|
|
id(org.jetbrains.kotlin.android)
|
|
id(org.jetbrains.kotlin.kapt)
|
|
id(org.jetbrains.kotlin.plugin.serialization)
|
|
id(com.google.dagger.hilt.android)
|
|
}
|
|
|
|
android {
|
|
namespace = ru.daemonlord.messenger
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = ru.daemonlord.messenger
|
|
minSdk = 26
|
|
targetSdk = 35
|
|
versionCode = 1
|
|
versionName = 0.1.0
|
|
|
|
testInstrumentationRunner = androidx.test.runner.AndroidJUnitRunner
|
|
vectorDrawables {
|
|
useSupportLibrary = true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile(proguard-android-optimize.txt),
|
|
proguard-rules.pro
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = 17
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = 1.5.15
|
|
}
|
|
|
|
packaging {
|
|
resources {
|
|
excludes += /META-INF/AL2.0
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(androidx.core:core-ktx:1.15.0)
|
|
implementation(androidx.lifecycle:lifecycle-runtime-ktx:2.8.7)
|
|
implementation(androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7)
|
|
implementation(androidx.activity:activity-compose:1.10.1)
|
|
implementation(androidx.navigation:navigation-compose:2.8.5)
|
|
|
|
implementation(androidx.compose.ui:ui:1.7.6)
|
|
implementation(androidx.compose.ui:ui-tooling-preview:1.7.6)
|
|
implementation(androidx.compose.material3:material3:1.3.1)
|
|
|
|
implementation(org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0)
|
|
implementation(org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3)
|
|
|
|
implementation(com.squareup.retrofit2:retrofit:2.11.0)
|
|
implementation(com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0)
|
|
implementation(com.squareup.okhttp3:okhttp:4.12.0)
|
|
implementation(com.squareup.okhttp3:logging-interceptor:4.12.0)
|
|
|
|
implementation(androidx.datastore:datastore-preferences:1.1.1)
|
|
|
|
implementation(com.google.dagger:hilt-android:2.52)
|
|
kapt(com.google.dagger:hilt-compiler:2.52)
|
|
implementation(androidx.hilt:hilt-navigation-compose:1.2.0)
|
|
|
|
testImplementation(junit:junit:4.13.2)
|
|
testImplementation(org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0)
|
|
testImplementation(io.mockk:mockk:1.13.13)
|
|
testImplementation(com.squareup.okhttp3:mockwebserver:4.12.0)
|
|
|
|
debugImplementation(androidx.compose.ui:ui-tooling:1.7.6)
|
|
debugImplementation(androidx.compose.ui:ui-test-manifest:1.7.6)
|
|
}
|
|
|
|
kapt {
|
|
correctErrorTypes = true
|
|
}
|