95 lines
3.3 KiB
Groovy
95 lines
3.3 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'kotlin-kapt'
|
|
id 'org.jetbrains.kotlin.plugin.serialization'
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'com.google.dagger.hilt.android'
|
|
|
|
android {
|
|
namespace 'com.example.dtf'
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
applicationId "com.example.dtf"
|
|
minSdk 23
|
|
targetSdk 34
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
|
|
kapt {
|
|
arguments {arg("room.schemaLocation", "$projectDir/schemas")}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion '1.2.0'
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20"
|
|
def nav_version = "2.7.0"
|
|
implementation "androidx.navigation:navigation-compose:$nav_version"
|
|
implementation 'androidx.core:core-ktx:1.7.0'
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
|
|
implementation 'androidx.activity:activity-compose:1.3.1'
|
|
implementation "androidx.compose.ui:ui:$compose_ui_version"
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_ui_version"
|
|
implementation 'androidx.compose.material:material:1.2.0'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_ui_version"
|
|
debugImplementation "androidx.compose.ui:ui-tooling:$compose_ui_version"
|
|
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_ui_version"
|
|
|
|
implementation 'androidx.room:room-runtime:2.5.0' // Библиотека "Room"
|
|
kapt "androidx.room:room-compiler:2.5.0" // Кодогенератор
|
|
implementation 'androidx.room:room-ktx:2.5.0'
|
|
|
|
implementation "com.google.dagger:hilt-android:2.42"
|
|
kapt "com.google.dagger:hilt-android-compiler:2.42"
|
|
implementation("androidx.hilt:hilt-navigation-compose:1.0.0")
|
|
implementation 'androidx.compose.runtime:runtime-livedata:1.0.0-beta01'
|
|
implementation "androidx.datastore:datastore-preferences:1.0.0"
|
|
|
|
def paging_version = "3.2.1"
|
|
|
|
implementation "androidx.paging:paging-runtime-ktx:$paging_version"
|
|
implementation "androidx.paging:paging-compose:$paging_version"
|
|
implementation("androidx.room:room-paging:2.5.0")
|
|
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.11.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
|
|
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0")
|
|
} |