build: Room KSP Navigation et Application Card2vcf
EBO <eric.bouhana@softalys.com> committé le 2026-07-22 15:19
d78e7721d19de4eab23ae5455f05204f32295f06
1 parent(s)
4 fichiers modifiés
+18
-0
M
android/app/build.gradle.kts
+8
-0
@@ -4,6 +4,7 @@ plugins {
| 4 | 4 | id("com.android.application") |
| 5 | 5 | id("org.jetbrains.kotlin.android") |
| 6 | 6 | id("org.jetbrains.kotlin.plugin.compose") |
| 7 | + id("com.google.devtools.ksp") | |
| 7 | 8 | } |
| 8 | 9 | |
| 9 | 10 | /** `fast` (défaut, ~18 Mo) ou `full` (~80 Mo+). Ex. : ./gradlew assembleDebug -Ptessdata=full */ |
@@ -106,6 +107,13 @@ dependencies {
| 106 | 107 | implementation("com.github.adaptech-cz.Tesseract4Android:tesseract4android-openmp:4.9.0") |
| 107 | 108 | implementation("androidx.exifinterface:exifinterface:1.3.7") |
| 108 | 109 | |
| 110 | + val room = "2.6.1" | |
| 111 | + implementation("androidx.room:room-runtime:$room") | |
| 112 | + implementation("androidx.room:room-ktx:$room") | |
| 113 | + ksp("androidx.room:room-compiler:$room") | |
| 114 | + implementation("androidx.navigation:navigation-compose:2.8.2") | |
| 115 | + testImplementation("androidx.room:room-testing:$room") | |
| 116 | + | |
| 109 | 117 | testImplementation("junit:junit:4.13.2") |
| 110 | 118 | testImplementation("org.jetbrains.kotlin:kotlin-test:2.0.20") |
| 111 | 119 | testImplementation("org.robolectric:robolectric:4.13") |
M
android/app/src/main/AndroidManifest.xml
+1
-0
@@ -4,6 +4,7 @@
| 4 | 4 | <uses-feature android:name="android.hardware.camera" android:required="true" /> |
| 5 | 5 | |
| 6 | 6 | <application |
| 7 | + android:name=".Card2vcfApp" | |
| 7 | 8 | android:label="@string/app_name" |
| 8 | 9 | android:icon="@mipmap/ic_launcher" |
| 9 | 10 | android:roundIcon="@mipmap/ic_launcher_round" |
A
android/app/src/main/java/fr/ebii/card2vcf/Card2vcfApp.kt
+8
-0
@@ -0,0 +1,8 @@
| 1 | +package fr.ebii.card2vcf | |
| 2 | + | |
| 3 | +import android.app.Application | |
| 4 | +import fr.ebii.card2vcf.data.CrmDatabase | |
| 5 | + | |
| 6 | +class Card2vcfApp : Application() { | |
| 7 | + val database: CrmDatabase by lazy { CrmDatabase.get(this) } | |
| 8 | +} |
M
android/build.gradle.kts
+1
-0
@@ -2,4 +2,5 @@ plugins {
| 2 | 2 | id("com.android.application") version "8.6.0" apply false |
| 3 | 3 | id("org.jetbrains.kotlin.android") version "2.0.20" apply false |
| 4 | 4 | id("org.jetbrains.kotlin.plugin.compose") version "2.0.20" apply false |
| 5 | + id("com.google.devtools.ksp") version "2.0.20-1.0.25" apply false | |
| 5 | 6 | } |
GitRust