130 lines
4.7 KiB
Kotlin
130 lines
4.7 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
id("org.jetbrains.kotlin.kapt")
|
|
id("org.jetbrains.kotlin.plugin.serialization")
|
|
id("com.google.dagger.hilt.android")
|
|
id("com.google.gms.google-services")
|
|
id("com.google.firebase.crashlytics")
|
|
}
|
|
|
|
android {
|
|
namespace = "ru.daemonlord.messenger"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "ru.daemonlord.messenger"
|
|
minSdk = 26
|
|
targetSdk = 35
|
|
versionCode = 1
|
|
versionName = "0.1.0"
|
|
buildConfigField("String", "API_BASE_URL", "\"https://chat.daemonlord.ru/\"")
|
|
buildConfigField("String", "API_VERSION_HEADER", "\"2026-03\"")
|
|
buildConfigField("boolean", "FEATURE_ACCOUNT_MANAGEMENT", "true")
|
|
buildConfigField("boolean", "FEATURE_TWO_FACTOR", "true")
|
|
buildConfigField("boolean", "FEATURE_MEDIA_GALLERY", "true")
|
|
|
|
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,LGPL2.1}"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":core:common"))
|
|
implementation(platform("com.google.firebase:firebase-bom:34.10.0"))
|
|
|
|
implementation("androidx.core:core-ktx:1.15.0")
|
|
implementation("androidx.appcompat:appcompat:1.7.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-compose: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("androidx.compose.material:material-icons-extended:1.7.6")
|
|
implementation("io.coil-kt:coil:2.7.0")
|
|
implementation("io.coil-kt:coil-compose:2.7.0")
|
|
implementation("androidx.media3:media3-exoplayer:1.4.1")
|
|
implementation("androidx.media3:media3-datasource:1.4.1")
|
|
implementation("androidx.media3:media3-datasource-okhttp:1.4.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("androidx.security:security-crypto:1.1.0-alpha06")
|
|
implementation("androidx.room:room-runtime:2.6.1")
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
kapt("androidx.room:room-compiler:2.6.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")
|
|
implementation("com.google.firebase:firebase-messaging")
|
|
implementation("com.google.firebase:firebase-crashlytics")
|
|
implementation("com.jakewharton.timber:timber:5.0.1")
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
|
|
testImplementation("androidx.datastore:datastore-preferences-core:1.1.1")
|
|
testImplementation("androidx.room:room-testing:2.6.1")
|
|
testImplementation("androidx.test:core:1.6.1")
|
|
testImplementation("org.robolectric:robolectric:4.13")
|
|
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
|
|
androidTestImplementation("androidx.compose.ui:ui-test-junit4:1.7.6")
|
|
androidTestImplementation("androidx.test.ext:junit:1.2.1")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
|
|
|
|
debugImplementation("androidx.compose.ui:ui-tooling:1.7.6")
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest:1.7.6")
|
|
}
|
|
|
|
kapt {
|
|
correctErrorTypes = true
|
|
}
|