|
1 | 1 | plugins { |
2 | 2 | id 'com.android.application' |
3 | 3 | id 'org.jetbrains.kotlin.android' |
4 | | - id 'kotlin-kapt' |
| 4 | + id 'com.google.devtools.ksp' version '1.9.23-1.0.20' |
5 | 5 | id 'dagger.hilt.android.plugin' |
6 | 6 | } |
7 | 7 |
|
8 | 8 | android { |
9 | 9 | namespace 'com.opennotes' |
10 | 10 | compileSdk 35 |
11 | | - buildToolsVersion "34.0.0" |
12 | 11 |
|
13 | 12 | defaultConfig { |
14 | 13 | applicationId "com.opennotes" |
15 | 14 | minSdk 24 |
16 | 15 | targetSdk 35 |
17 | | - versionCode 4 |
18 | | - versionName "1.3" |
| 16 | + versionCode 5 |
| 17 | + versionName "1.3.1" |
19 | 18 |
|
20 | 19 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
21 | | - vectorDrawables.useSupportLibrary = true |
| 20 | + vectorDrawables { |
| 21 | + useSupportLibrary true |
| 22 | + } |
22 | 23 | } |
23 | 24 |
|
24 | | - |
25 | 25 | dependenciesInfo { |
26 | | - |
27 | | - includeInApk = false |
28 | | - |
29 | | - includeInBundle = false |
| 26 | + includeInApk false |
| 27 | + includeInBundle false |
30 | 28 | } |
31 | 29 |
|
32 | 30 | buildTypes { |
33 | 31 | release { |
34 | 32 | minifyEnabled true |
35 | 33 | shrinkResources true |
36 | | - proguardFiles( |
37 | | - getDefaultProguardFile('proguard-android-optimize.txt'), |
38 | | - 'proguard-rules.pro' |
39 | | - ) |
| 34 | + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
40 | 35 | } |
41 | 36 | } |
42 | 37 |
|
@@ -67,44 +62,48 @@ android { |
67 | 62 |
|
68 | 63 | dependencies { |
69 | 64 | // Compose BOM |
70 | | - implementation platform("androidx.compose:compose-bom:2024.04.00") |
71 | | - implementation "androidx.compose.ui:ui" |
72 | | - implementation "androidx.compose.material:material" |
73 | | - implementation "androidx.compose.material:material-icons-extended" |
74 | | - implementation "androidx.compose.ui:ui-tooling-preview" |
75 | | - debugImplementation "androidx.compose.ui:ui-tooling" |
76 | | - androidTestImplementation platform("androidx.compose:compose-bom:2024.04.00") |
77 | | - androidTestImplementation "androidx.compose.ui:ui-test-junit4" |
78 | | - |
79 | | - implementation "androidx.activity:activity-compose:1.8.2" |
80 | | - implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.2" |
81 | | - implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2" |
82 | | - implementation "androidx.navigation:navigation-compose:2.7.7" |
83 | | - implementation "androidx.hilt:hilt-navigation-compose:1.1.0" |
| 65 | + implementation platform('androidx.compose:compose-bom:2024.04.00') |
| 66 | + implementation 'androidx.compose.ui:ui' |
| 67 | + implementation 'androidx.compose.material:material' |
| 68 | + implementation 'androidx.compose.material:material-icons-extended' |
| 69 | + implementation 'androidx.compose.ui:ui-tooling-preview' |
| 70 | + implementation 'androidx.datastore:datastore-core-android:1.1.7' |
| 71 | + implementation 'androidx.datastore:datastore-preferences:1.1.1' |
| 72 | + debugImplementation 'androidx.compose.ui:ui-tooling' |
| 73 | + androidTestImplementation platform('androidx.compose:compose-bom:2024.04.00') |
| 74 | + androidTestImplementation 'androidx.compose.ui:ui-test-junit4' |
| 75 | + |
| 76 | + implementation 'androidx.activity:activity-compose:1.8.2' |
| 77 | + implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2' |
| 78 | + implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2' |
| 79 | + implementation 'androidx.navigation:navigation-compose:2.7.7' |
| 80 | + implementation 'androidx.hilt:hilt-navigation-compose:1.1.0' |
84 | 81 |
|
85 | 82 | // Material 3 |
86 | | - implementation "androidx.compose.material3:material3:1.2.1" |
| 83 | + implementation 'androidx.compose.material3:material3:1.2.1' |
87 | 84 |
|
88 | 85 | // Core Android |
89 | 86 | implementation 'androidx.core:core-ktx:1.13.1' |
90 | 87 | implementation 'androidx.appcompat:appcompat:1.6.1' |
91 | 88 | implementation 'com.google.android.material:material:1.11.0' |
92 | 89 |
|
93 | | - // Hilt |
94 | | - implementation "com.google.dagger:hilt-android:2.48" |
95 | | - kapt "com.google.dagger:hilt-android-compiler:2.48" |
96 | | - kapt "androidx.hilt:hilt-compiler:1.1.0" |
| 90 | + // Hilt with KSP |
| 91 | + implementation 'com.google.dagger:hilt-android:2.48' |
| 92 | + ksp 'com.google.dagger:hilt-android-compiler:2.48' |
| 93 | + ksp 'androidx.hilt:hilt-compiler:1.1.0' |
97 | 94 |
|
98 | | - // Room |
99 | | - implementation "androidx.room:room-runtime:2.6.1" |
100 | | - kapt "androidx.room:room-compiler:2.6.1" |
101 | | - implementation "androidx.room:room-ktx:2.6.1" |
| 95 | + // Room with KSP - Compatible with Kotlin 1.9.23 |
| 96 | + implementation 'androidx.room:room-runtime:2.6.1' |
| 97 | + implementation 'androidx.room:room-ktx:2.6.1' |
| 98 | + ksp 'androidx.room:room-compiler:2.6.1' |
102 | 99 |
|
103 | 100 | // Coroutines |
104 | 101 | implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3' |
105 | 102 | implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3' |
106 | 103 |
|
107 | | - implementation("com.google.code.gson:gson:2.10.1") |
| 104 | + implementation 'com.google.code.gson:gson:2.10.1' |
| 105 | + |
| 106 | + implementation 'androidx.core:core-splashscreen:1.0.1' |
108 | 107 |
|
109 | 108 | // Testing |
110 | 109 | testImplementation 'junit:junit:4.13.2' |
|
0 commit comments