11import java.io.FileInputStream
22import java.util.Properties
3+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
34
45plugins {
56 alias(libs.plugins.android.application)
67 alias(libs.plugins.kotlin.android)
78 alias(libs.plugins.kotlin.compose)
9+ id(" com.google.devtools.ksp" )
10+ id(" com.google.dagger.hilt.android" )
811}
912
1013// Keystore.properties
@@ -27,10 +30,10 @@ android {
2730
2831 defaultConfig {
2932 applicationId = " com.sampoom.android"
30- minSdk = 24
33+ minSdk = 26
3134 targetSdk = 36
32- versionCode = 1
33- versionName = " 1.0"
35+ versionCode = 2
36+ versionName = " 1.0.1 "
3437
3538 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
3639 }
@@ -48,17 +51,51 @@ android {
4851 compileOptions {
4952 sourceCompatibility = JavaVersion .VERSION_11
5053 targetCompatibility = JavaVersion .VERSION_11
51- }
52- kotlinOptions {
53- jvmTarget = " 11"
54+ isCoreLibraryDesugaringEnabled = true
5455 }
5556 buildFeatures {
5657 compose = true
58+ buildConfig = true
59+ }
60+ }
61+
62+ // Kotlin compiler options migrated to Compiler Options DSL
63+ kotlin {
64+ compilerOptions {
65+ jvmTarget.set(JvmTarget .JVM_11 )
5766 }
5867}
5968
6069dependencies {
70+ // hilt
71+ implementation(libs.hilt.android)
72+ ksp(libs.hilt.android.compiler)
73+ implementation(libs.androidx.hilt.lifecycle.viewmodel.compose)
74+ implementation(libs.androidx.hilt.navigation.compose)
75+
76+ // Navigation
77+ implementation(libs.androidx.navigation.compose)
78+
79+ // Retrofit
80+ implementation(libs.retrofit)
81+ implementation(libs.converter.gson)
82+
83+ // OKHttp
84+ implementation(libs.logging.interceptor)
85+
86+ // DataStore
87+ implementation(libs.androidx.datastore.preferences)
88+
89+ // Paging
90+ implementation(libs.androidx.paging.runtime)
91+ implementation(libs.androidx.paging.compose)
92+
93+ coreLibraryDesugaring(libs.desugar.jdk.libs)
6194
95+ implementation(libs.androidx.core.splashscreen)
96+ implementation(libs.androidx.material)
97+ implementation(libs.androidx.material.icons.core)
98+ implementation(libs.androidx.material.icons.extended)
6299 implementation(libs.androidx.core.ktx)
63100 implementation(libs.androidx.lifecycle.runtime.ktx)
64101 implementation(libs.androidx.activity.compose)
0 commit comments