plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-kapt' id 'dagger.hilt.android.plugin' id 'androidx.navigation.safeargs' } android { compileSdkVersion 33 defaultConfig { applicationId "com.theapache64.topcorn2" minSdkVersion 21 targetSdkVersion 33 versionCode 10003 versionName "1.0.0-alpha04" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } buildFeatures { compose true } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' // Disabling coroutine's ExperimentalCoroutinesApi warning freeCompilerArgs += [ "-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi", "-Xuse-experimental=kotlin.time.ExperimentalTime", "-Xopt-in=coil.annotation.ExperimentalCoilApi" ] } composeOptions { kotlinCompilerExtensionVersion compose_compiler_version } } dependencies { implementation 'androidx.core:core-ktx:1.9.0' implementation 'androidx.appcompat:appcompat:1.5.1' implementation 'com.google.android.material:material:1.7.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' // Navigation implementation "androidx.navigation:navigation-fragment-ktx:$nav_version" implementation "androidx.navigation:navigation-ui-ktx:$nav_version" // Compose implementation "androidx.compose.ui:ui:$compose_version" implementation "androidx.compose.runtime:runtime-livedata:$compose_version" implementation "androidx.compose.ui:ui-tooling:$compose_version" implementation "androidx.compose.foundation:foundation:$compose_version" implementation "androidx.compose.material:material:$compose_version" // Hilt implementation "com.google.dagger:hilt-android:$hilt_version" kapt "com.google.dagger:hilt-compiler:$hilt_version" implementation "androidx.hilt:hilt-navigation-fragment:1.0.0" // Room def room_version = "2.4.3" implementation "androidx.room:room-runtime:$room_version" implementation "androidx.room:room-ktx:$room_version" kapt "androidx.room:room-compiler:$room_version" // Retrofit def retrofit_version = '2.9.0' implementation "com.squareup.retrofit2:retrofit:$retrofit_version" implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.2' implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version" // Moshi : Moshi implementation 'com.squareup.moshi:moshi:1.13.0' kapt 'com.squareup.moshi:moshi-kotlin-codegen:1.13.0' implementation 'com.squareup.retrofit2:converter-moshi:2.9.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" // Timber : No-nonsense injectable logging. implementation 'com.jakewharton.timber:timber:5.0.1' // Kotlinx Coroutines Core : Coroutines support libraries for Kotlin implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' // Coil - Image loading library implementation("io.coil-kt:coil-compose:2.1.0") // Kotlin Lifecycle KTX def lifecycle_version = "2.5.1" implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version" }