119 lines
3.7 KiB
Groovy
119 lines
3.7 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'kotlin-kapt'
|
|
id 'dagger.hilt.android.plugin'
|
|
id 'kotlin-parcelize'
|
|
id 'com.google.devtools.ksp' version '1.6.21-1.0.6'
|
|
}
|
|
//kotlin {
|
|
// sourceSets {
|
|
// debug {
|
|
// kotlin.srcDir("build/generated/ksp/debug/kotlin")
|
|
// }
|
|
// release {
|
|
// kotlin.srcDir("build/generated/ksp/release/kotlin")
|
|
// }
|
|
// }
|
|
//}
|
|
android {
|
|
compileSdk 32
|
|
|
|
defaultConfig {
|
|
applicationId "com.aldikitta.movplaypt2"
|
|
minSdk 28
|
|
targetSdk 32
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
|
|
buildConfigField("String", "API_KEY", API_KEY)
|
|
}
|
|
|
|
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 compose_version
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
applicationVariants.all {
|
|
kotlin.sourceSets {
|
|
getByName(name) {
|
|
kotlin.srcDir("build/generated/ksp/$name/kotlin")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation 'androidx.core:core-ktx:1.8.0'
|
|
implementation "androidx.compose.ui:ui:$compose_version"
|
|
implementation 'androidx.compose.material3:material3:1.0.0-alpha14'
|
|
implementation 'androidx.compose.material:material:1.3.0-alpha01'
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.0'
|
|
implementation 'androidx.activity:activity-compose:1.5.0'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.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.1.1"
|
|
|
|
// Dagger -hilt
|
|
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'
|
|
kapt "androidx.hilt:hilt-compiler:1.0.0"
|
|
|
|
// Kotlin Extensions and Coroutines support for Room
|
|
implementation "androidx.room:room-runtime:2.4.2"
|
|
kapt "androidx.room:room-compiler:2.4.2"
|
|
implementation "androidx.room:room-ktx:2.4.2"
|
|
|
|
implementation 'androidx.compose.material:material-icons-extended:1.1.1'
|
|
|
|
// Retrofit
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
implementation "com.squareup.okhttp3:okhttp:5.0.0-alpha.9"
|
|
implementation "com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.9"
|
|
|
|
// Timber
|
|
implementation 'com.jakewharton.timber:timber:5.0.1'
|
|
|
|
// RamCosta Navigation
|
|
implementation 'io.github.raamcosta.compose-destinations:animations-core:1.6.12-beta'
|
|
ksp 'io.github.raamcosta.compose-destinations:ksp:1.6.12-beta'
|
|
|
|
// Coil
|
|
implementation "io.coil-kt:coil-compose:2.1.0"
|
|
|
|
// Paging Compose
|
|
implementation "androidx.paging:paging-compose:1.0.0-alpha15"
|
|
} |