-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from teogor/feature/add-room-schema-arg-provider
Enhance Room Plugin with Schema Export Support
- Loading branch information
Showing
3 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
plugin/library-convention/src/main/kotlin/dev/teogor/ceres/models/RoomOptionsExtension.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package dev.teogor.ceres.models | ||
|
||
/** | ||
* Extension class for configuring Room-related options. | ||
* | ||
* @property enableSchemaProvider Set to `true` to enable the RoomSchemaArgProvider. | ||
* @property schemasPath The relative path to the directory containing Room database schema files. | ||
* This path is used when configuring the RoomSchemaArgProvider and is relative | ||
* to the projectDir. The default value is "schemas." | ||
*/ | ||
open class RoomOptionsExtension( | ||
var enableSchemaProvider: Boolean = false, | ||
var schemasPath: String = "schemas", | ||
) |