Closed johan12345 closed 1 year ago
Hi @johan12345 this is great, I'm going to test it.
I'll let you know when the release has this changes.
@johan12345 here is the new version:
implementation 'com.github.anboralabs:spatia-room:0.2.6'
Awesome, thanks!
E.g. for unit testing purposes it is often useful to be able to create an in-memory database with
Room.inMemoryDatabaseBuilder
. This PR adds a correspondingSpatiaRoom.inMemoryDatabaseBuilder
function for doing the same with spatia-room.Apparently in-memory databases cannot be created from an asset, so I needed to remove
createFromAsset(templateDb)
call and thespatia_db_template.sqlite
file. Instead, I added a callback that callsSELECT InitSpatialMetaData();
to initialize the database, which should have the same effect (right?) and also removes the need for shipping this extra 5 MB file with the app.