114 lines
4.2 KiB
Plaintext
114 lines
4.2 KiB
Plaintext
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.hilt)
|
|
id("kotlin-kapt")
|
|
}
|
|
|
|
android {
|
|
namespace = "kr.smartsoltech.wellshe"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "kr.smartsoltech.wellshe"
|
|
minSdk = 26
|
|
targetSdk = 34
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
// Добавляем путь для экспорта схемы Room
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments += mapOf(
|
|
"room.schemaLocation" to "$projectDir/schemas",
|
|
"room.incremental" to "true"
|
|
)
|
|
}
|
|
}
|
|
|
|
buildConfigField("String", "API_BASE_URL", "\"${project.findProperty("API_BASE_URL")}\"")
|
|
}
|
|
|
|
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
|
|
viewBinding = true
|
|
buildConfig = true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.5.14"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
implementation(libs.androidx.compose.ui)
|
|
implementation(libs.androidx.compose.ui.graphics)
|
|
implementation(libs.androidx.compose.ui.tooling.preview)
|
|
implementation(libs.androidx.compose.material3)
|
|
implementation("androidx.hilt:hilt-navigation-compose:1.1.0")
|
|
implementation(libs.hilt.android)
|
|
implementation(libs.material)
|
|
kapt(libs.hilt.compiler)
|
|
implementation("androidx.room:room-runtime:2.6.1")
|
|
kapt("androidx.room:room-compiler:2.6.1")
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
implementation("androidx.datastore:datastore-preferences:1.0.0")
|
|
implementation("androidx.work:work-runtime-ktx:2.9.0")
|
|
implementation("androidx.compose.runtime:runtime-livedata:1.5.4")
|
|
implementation(libs.androidx.compose.ui.tooling)
|
|
implementation("androidx.compose.material:material-icons-extended:1.5.4")
|
|
implementation("androidx.navigation:navigation-compose:2.7.7")
|
|
implementation("androidx.security:security-crypto:1.1.0-alpha06")
|
|
implementation("com.google.code.gson:gson:2.10.1")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
|
|
implementation("com.github.PhilJay:MPAndroidChart:v3.1.0")
|
|
implementation("com.squareup.moshi:moshi:1.15.0")
|
|
implementation("com.squareup.moshi:moshi-kotlin:1.15.0")
|
|
implementation("com.squareup.moshi:moshi-adapters:1.15.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.6.2")
|
|
|
|
// Retrofit зависимости
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
|
|
|
|
// Fragment dependencies
|
|
implementation("androidx.fragment:fragment-ktx:1.6.2")
|
|
implementation("androidx.navigation:navigation-fragment-ktx:2.7.7")
|
|
implementation("androidx.navigation:navigation-ui-ktx:2.7.7")
|
|
|
|
// ViewBinding
|
|
implementation("androidx.databinding:databinding-runtime:8.2.2")
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
|
|
testImplementation(libs.junit)
|
|
testImplementation("io.mockk:mockk:1.13.8")
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
androidTestImplementation(platform(libs.androidx.compose.bom))
|
|
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
|
|
debugImplementation(libs.androidx.compose.ui.tooling)
|
|
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
|
} |