Skip to content

Commit

Permalink
Enable exporting table schema to code repository (#2876)
Browse files Browse the repository at this point in the history
* Enable exporting db schema

* Don't allow destructive migrations

* Generate schema for latest version
  • Loading branch information
shobhitagarwal1612 authored Nov 27, 2024
1 parent dccdd41 commit e2c7033
Show file tree
Hide file tree
Showing 4 changed files with 1,126 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ground/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ android {
buildConfigField "int", "AUTH_EMULATOR_PORT", "9099"
buildConfigField "String", "SIGNUP_FORM_LINK", "\"\""
manifestPlaceholders.usesCleartextTraffic = true

// Room DB schema export directory
javaCompileOptions {
annotationProcessorOptions {
arguments["room.schemaLocation"] = "$projectDir/schemas"
}
}
}

// Use flag -PtestBuildType with desired variant to change default behavior.
Expand Down
Loading

0 comments on commit e2c7033

Please sign in to comment.