You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#33
Room's directory structure when generating DB schemas adds the database definition package name and database name to a parent directory to prevent name clashes and conflicts.
Here we move the schemas from our sample android application to respect Room's directory structure, and fix the issue that output representations are generated only on the root directory (defined by `outputLocation`) gradle property.
So, we now preserve the directory structure and mimic it when generating output files.
In other words, for a schema located in
```
$schemaLocation/com.mypackage.name.MyDatabase
```
the output files will be generated in
```
$outputLocation/com.mypackage.name.MyDatabase
```
This PR also pulls out the logic into a collaborator class to allow for unit testing of the gradle `Task` logic.
Output files stored within directories and preserve structure
<input_dir>/com.mypackage.mydatabase/1.json
should end up as<output_dir>/com.mypackage.mydatabase/1.dbml
The text was updated successfully, but these errors were encountered: