1
+ plugins {
2
+ id ' com.android.application'
3
+ id ' org.jetbrains.kotlin.android'
4
+ id ' org.jetbrains.kotlin.plugin.serialization' version ' 1.7.20'
5
+ }
6
+
7
+ android {
8
+ namespace ' com.example.bookshelf'
9
+ compileSdk 33
10
+
11
+ defaultConfig {
12
+ applicationId " com.example.bookshelf"
13
+ minSdk 26
14
+ targetSdk 33
15
+ versionCode 1
16
+ versionName " 1.0"
17
+
18
+ testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
19
+ vectorDrawables {
20
+ useSupportLibrary true
21
+ }
22
+ }
23
+
24
+ buildTypes {
25
+ release {
26
+ minifyEnabled false
27
+ proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
28
+ }
29
+ }
30
+ compileOptions {
31
+ sourceCompatibility JavaVersion . VERSION_1_8
32
+ targetCompatibility JavaVersion . VERSION_1_8
33
+ }
34
+ kotlinOptions {
35
+ jvmTarget = ' 1.8'
36
+ }
37
+ buildFeatures {
38
+ compose true
39
+ }
40
+ composeOptions {
41
+ kotlinCompilerExtensionVersion ' 1.2.0'
42
+ }
43
+ packagingOptions {
44
+ resources {
45
+ excludes + = ' /META-INF/{AL2.0,LGPL2.1}'
46
+ }
47
+ }
48
+ }
49
+
50
+ dependencies {
51
+
52
+ implementation ' androidx.core:core-ktx:1.9.0'
53
+ implementation ' androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
54
+ implementation ' androidx.activity:activity-compose:1.6.1'
55
+ implementation " androidx.compose.ui:ui:$compose_ui_version "
56
+ implementation " androidx.compose.ui:ui-tooling-preview:$compose_ui_version "
57
+ implementation ' androidx.compose.material:material:1.3.1'
58
+ testImplementation ' junit:junit:4.13.2'
59
+ androidTestImplementation ' androidx.test.ext:junit:1.1.5'
60
+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.5.1'
61
+ androidTestImplementation " androidx.compose.ui:ui-test-junit4:$compose_ui_version "
62
+ debugImplementation " androidx.compose.ui:ui-tooling:$compose_ui_version "
63
+ debugImplementation " androidx.compose.ui:ui-test-manifest:$compose_ui_version "
64
+
65
+
66
+ // viewmodel
67
+ implementation " androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1"
68
+ // retrofit
69
+ implementation " com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0"
70
+ implementation " com.squareup.retrofit2:retrofit:2.9.0"
71
+ // json file
72
+ implementation " org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
73
+ // images in json
74
+ implementation " io.coil-kt:coil-compose:2.2.2"
75
+ // Navigation
76
+ implementation " androidx.navigation:navigation-compose:2.5.3"
77
+ }
0 commit comments