toxicity-io / sqlite-mc

An SQLDelight driver that uses SQLite3MultipleCiphers for database encryption.
Apache License 2.0
13 stars 0 forks source link

Use `androidx.startup` to obtain application context for default `DatabasesDir` #80

Closed 05nelsonm closed 11 months ago

05nelsonm commented 11 months ago

See https://github.com/05nelsonm/kmp-tor-binary/tree/master/library/binary-initializer

Current logic for obtaining the databases dir for android is a little bit sketchy :laughing: . Actually relying on Context to obtain the directory during runtime operations would be best. For Android Unit Tests it should automatically switch to the temporary directory.