1
1
plugins {
2
2
id ' com.android.application'
3
3
id ' org.jetbrains.kotlin.android'
4
- id ' kotlin-kapt'
5
4
id ' dagger.hilt.android.plugin'
5
+ id ' kotlin-kapt'
6
6
}
7
7
8
8
android {
9
9
compileSdk 33
10
10
11
11
defaultConfig {
12
12
applicationId " com.mhss.app.mybrain"
13
+ namespace " com.mhss.app.mybrain"
13
14
minSdk 24
14
15
targetSdk 33
15
- versionCode 3
16
- versionName " 1.0.2 "
16
+ versionCode 4
17
+ versionName " 1.0.3 "
17
18
18
19
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
19
20
vectorDrawables {
20
21
useSupportLibrary true
21
22
}
22
- resConfigs " en" , " ar" , " zh-rCN" , " hi" , " pl" , " ru"
23
+ resConfigs " en" , " ar" , " zh-rCN" , " hi" , " pl" , " ru" , " ro " , " pt-rBR " , " de "
23
24
kapt {
24
25
arguments {
25
26
arg(" room.schemaLocation" , " $projectDir /schemas" )
@@ -69,27 +70,28 @@ kotlin {
69
70
}
70
71
71
72
dependencies {
72
- def nav_version = " 2.5.1"
73
73
def room_version = " 2.4.3"
74
74
def coroutines_version = " 1.6.1"
75
75
76
- implementation ' androidx.core:core-ktx:1.8.0'
77
- implementation " androidx.compose.ui:ui:$compose_version "
78
- implementation " androidx.compose.material:material:$compose_version "
79
- implementation " androidx.compose.ui:ui-tooling-preview:$compose_version "
76
+ implementation platform(' androidx.compose:compose-bom:2022.10.00' )
77
+
78
+ implementation ' androidx.core:core-ktx:1.9.0'
79
+ implementation " androidx.compose.ui:ui"
80
+ implementation " androidx.compose.material:material"
81
+ implementation " androidx.compose.ui:ui-tooling-preview"
80
82
implementation ' androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
81
- implementation ' androidx.activity:activity-compose:1.5.1 '
83
+ implementation ' androidx.activity:activity-compose:1.6.0 '
82
84
testImplementation ' junit:junit:4.13.2'
83
85
androidTestImplementation ' androidx.test.ext:junit:1.1.3'
84
86
androidTestImplementation ' androidx.test.espresso:espresso-core:3.4.0'
85
- androidTestImplementation " androidx.compose.ui:ui-test-junit4: $c ompose_version "
86
- debugImplementation " androidx.compose.ui:ui-tooling: $c ompose_version "
87
+ androidTestImplementation " androidx.compose.ui:ui-test-junit4"
88
+ debugImplementation " androidx.compose.ui:ui-tooling"
87
89
88
90
// Compose navigation
89
- implementation " androidx.navigation:navigation-compose:$n av_version "
91
+ implementation " androidx.navigation:navigation-compose:2.5.2 "
90
92
implementation ' androidx.hilt:hilt-navigation-compose:1.0.0'
91
93
92
- // Room
94
+ // Room
93
95
implementation " androidx.room:room-runtime:$room_version "
94
96
kapt " androidx.room:room-compiler:$room_version "
95
97
implementation " androidx.room:room-ktx:$room_version "
@@ -98,13 +100,14 @@ dependencies {
98
100
implementation " com.google.dagger:hilt-android:2.43.2"
99
101
kapt " com.google.dagger:hilt-android-compiler:2.43.2"
100
102
kapt " androidx.hilt:hilt-compiler:1.0.0"
103
+ implementation ' androidx.hilt:hilt-work:1.0.0'
101
104
102
105
// Coroutines
103
106
implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version "
104
107
implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version "
105
108
106
109
// Gson
107
- implementation ' com.google.code.gson:gson:2.9.0 '
110
+ implementation ' com.google.code.gson:gson:2.9.1 '
108
111
109
112
// Preferences DataStore
110
113
implementation " androidx.datastore:datastore-preferences:1.0.0"
@@ -118,8 +121,16 @@ dependencies {
118
121
implementation ' com.github.jeziellago:compose-markdown:0.2.9'
119
122
120
123
// Compose Glance (Widgets)
121
- implementation " androidx.glance:glance-appwidget:1.0.0-alpha03"
124
+ implementation " androidx.glance:glance-appwidget:1.0.0-alpha05"
125
+
126
+ // Moshi
127
+ implementation " com.squareup.moshi:moshi-kotlin:1.14.0"
128
+
129
+ // WorkManager
130
+ implementation " androidx.work:work-runtime-ktx:2.7.1"
122
131
132
+ // Compose live data
133
+ implementation " androidx.compose.runtime:runtime-livedata"
123
134
}
124
135
125
136
kapt {
0 commit comments