Auto Scout – Phase 0 #242
Labels
enhancement
Minor feature or request
feature:auto-scout
Involves Auto Scout
feature:database
Involves the database
refactor
Requires significant changes that don't add new features or fix bugs
Milestone
This phase prepares a local user cache to circumvent the need for reading and writing to the DB on app startup.
Implementation
File(context.cacheDir, "db/$name")
Use Gson to serialize the user into
db/user.json
. If the file doesn't exist or the deserialized object isn't the same as the one generated from the auth listener, write to the DB and the file. This should also fix possible race conditions where an offline device writes outdated information to the DB.Nuke the
db
dir on sign-out.The text was updated successfully, but these errors were encountered: