2023-10-06 03:25:57 +04:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
2023-10-25 03:20:42 +04:00
|
|
|
//lab 3
|
|
|
|
id 'kotlin-kapt'
|
2023-10-06 03:25:57 +04:00
|
|
|
}
|
|
|
|
|
2023-11-21 00:36:30 +04:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'com.google.dagger.hilt.android'
|
|
|
|
|
2023-10-06 03:25:57 +04:00
|
|
|
android {
|
|
|
|
namespace 'com.example.shawarma'
|
2023-10-08 15:33:55 +04:00
|
|
|
compileSdk 34
|
2023-10-06 03:25:57 +04:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.example.shawarma"
|
|
|
|
minSdk 23
|
2023-10-08 15:33:55 +04:00
|
|
|
targetSdk 34
|
2023-10-06 03:25:57 +04:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
vectorDrawables {
|
|
|
|
useSupportLibrary true
|
|
|
|
}
|
2023-10-25 03:20:42 +04:00
|
|
|
|
|
|
|
kapt {
|
|
|
|
arguments {arg("room.schemaLocation", "$projectDir/schemas")}
|
|
|
|
}
|
2023-10-06 03:25:57 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2023-10-08 15:33:55 +04:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20"
|
|
|
|
def nav_version = "2.7.0"
|
|
|
|
implementation "androidx.navigation:navigation-compose:$nav_version"
|
2023-10-06 03:25:57 +04:00
|
|
|
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"
|
2023-10-25 03:20:42 +04:00
|
|
|
|
|
|
|
// lab 3
|
|
|
|
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' // Дополнительно для Kotlin Coroutines, Kotlin Flows
|
2023-11-20 19:34:55 +04:00
|
|
|
|
|
|
|
// lab4
|
2023-11-21 00:36:30 +04:00
|
|
|
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")
|
2023-11-21 03:29:52 +04:00
|
|
|
implementation 'androidx.compose.runtime:runtime-livedata:1.0.0-beta01'
|
2023-11-21 22:13:04 +04:00
|
|
|
implementation "androidx.datastore:datastore-preferences:1.0.0"
|
Пагинация, стагнация, ампутация, цивилизация, синхронизация, фракция, грация, конкатанация, нация, рация, сублимация, аннотация, субстанция
2023-12-03 23:42:14 +04:00
|
|
|
|
|
|
|
|
|
|
|
implementation("androidx.room:room-paging:2.5.0")
|
|
|
|
implementation("androidx.paging:paging-compose:3.2.1")
|
2023-10-06 03:25:57 +04:00
|
|
|
}
|