99 lines
3.2 KiB
Groovy
99 lines
3.2 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'kotlin-kapt'
|
|
id 'com.google.dagger.hilt.android'
|
|
id 'kotlinx-serialization'
|
|
}
|
|
|
|
android {
|
|
namespace 'com.el3asas.mpostman'
|
|
compileSdkVersion 33
|
|
|
|
defaultConfig {
|
|
applicationId "com.el3asas.mpostman"
|
|
minSdk 21
|
|
targetSdk 33
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '11'
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion '1.3.2'
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.core:core-ktx:1.9.0'
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
|
|
implementation 'androidx.activity:activity-compose:1.6.1'
|
|
implementation "androidx.compose.ui:ui:$compose_version"
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
|
|
implementation 'androidx.compose.material:material:1.4.0-alpha02'
|
|
implementation project(path: ':Data')
|
|
implementation project(path: ':Models')
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
|
|
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
|
|
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
|
|
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
|
|
implementation 'androidx.compose.runtime:runtime-livedata:1.4.0-alpha02'
|
|
|
|
//hilt
|
|
implementation "com.google.dagger:hilt-android:2.44"
|
|
kapt "com.google.dagger:hilt-compiler:2.44"
|
|
|
|
//ktor
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3'
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
|
|
implementation("io.ktor:ktor-client-core:2.1.3")
|
|
implementation("io.ktor:ktor-client-android:2.1.3")
|
|
implementation("io.ktor:ktor-client-okhttp:2.1.3")
|
|
implementation("io.ktor:ktor-client-plugins:2.1.3")
|
|
implementation("io.ktor:ktor-client-logging:2.1.3")
|
|
implementation("io.ktor:ktor-server-default-headers:2.1.3")
|
|
implementation("io.ktor:ktor-client-content-negotiation:2.1.3")
|
|
|
|
//pager
|
|
implementation "com.google.accompanist:accompanist-pager:0.23.1"
|
|
//constraint
|
|
implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1"
|
|
implementation "com.google.accompanist:accompanist-pager-indicators:0.23.1"
|
|
|
|
//gson
|
|
implementation 'com.google.code.gson:gson:2.10'
|
|
//collapsing toolbar
|
|
implementation "me.onebone:toolbar-compose:2.3.5"
|
|
|
|
|
|
}
|
|
kapt {
|
|
correctErrorTypes true
|
|
} |