Merge branch 'gabr/dbExport' into 'master'

Export the database schema

See merge request AuroraOSS/AuroraStore!442
This commit is contained in:
Aayush Gupta
2025-02-16 07:06:54 +00:00
3 changed files with 6 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ assembleDebug:
artifacts: artifacts:
paths: paths:
- $DEBUG_BINARY_PATH - $DEBUG_BINARY_PATH
- 'app/schemas/com.aurora.store.data.room.AuroraDatabase/'
uploadDebug: uploadDebug:
stage: upload stage: upload

View File

@@ -131,6 +131,10 @@ android {
} }
} }
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
}
dependencies { dependencies {
//Google's Goodies //Google's Goodies

View File

@@ -14,7 +14,7 @@ import com.aurora.store.data.room.update.UpdateDao
@Database( @Database(
entities = [Download::class, Favourite::class, Update::class], entities = [Download::class, Favourite::class, Update::class],
version = 5, version = 5,
exportSchema = false exportSchema = true
) )
@TypeConverters(DownloadConverter::class) @TypeConverters(DownloadConverter::class)
abstract class AuroraDatabase : RoomDatabase() { abstract class AuroraDatabase : RoomDatabase() {