Android Refresh always triggers a database rebuild when using

I’m not sure if this website or the GitHub issues is the best place to put this, so I’m reposting the same problem reported here.

Pretty much what the title says.

In my setup, specifically, we’re using SQLDelight, but from what I see, any attempt to use SupportOpenHelpFactory when the runtime version is newer than the current db persisted version will cause a database recreation.

I traced it down to this line of code, that passes the runtime version to SQLiteOpenHelper as both the version and the minimumSupportedVersion.

I’ve opened a PR that fixes the issue.

Hi @vitorhugods

Thank you for your posting, my apologizes for a delay in response on GitHub. I have just replied to your GitHub Issue, we look forward to your response there.