Tranquille icon indicating copy to clipboard operation
Tranquille copied to clipboard

Migrate from GreenDao to something else

Open Vinetos opened this issue 1 year ago • 11 comments

GreenDAO is not FOSS as the gradle plugin is still not opens-sourced. https://github.com/greenrobot/greenDAO/issues/412 We have to select another database library in order to be FOSS and be published on F-Droid

Vinetos avatar Mar 23 '24 10:03 Vinetos

Hello! I have been following the development of this fork since I saw your post on YACB's gitlab. Seems that another repository I follow has run onto the same issue as yours: https://github.com/breezy-weather/breezy-weather/issues/677

In this precise case, SQLDelight was used, but the issue lists some alternatives that you may want to check out. Hopefully this helps a bit!

Penaz91 avatar Mar 26 '24 21:03 Penaz91

Hello ! Thank you for letting me know. I am currently looking for an alternative that could match the current behaviour.

I will have a look at this issue to see how they resolved this !

Vinetos avatar Mar 27 '24 06:03 Vinetos

SQLDelight seems to be an good alternative and make the transition path easy enough. I think this it what we will use.

Vinetos avatar Apr 03 '24 07:04 Vinetos

I am pinning this issue as it takes me a lot of work before doing other one !

Vinetos avatar Apr 30 '24 14:04 Vinetos

Can you drop the plugin and include the generated part, eg: https://github.com/wallabag/android-app/pull/1406

licaon-kter avatar May 27 '24 14:05 licaon-kter

Yep, that something I will do very soon.

Vinetos avatar May 29 '24 11:05 Vinetos

The source code is published.

linsui avatar Jun 12 '24 09:06 linsui

If the plugin is effectively the one used, migration to the open-srouced version will be easier as YACB is strongly linked to greenDAO work.
I have notified F-Droid team that greenDAO is open-sourced, if the app is then accepted to the store, I will close this issue or mark it as "good to have one day".

Vinetos avatar Jun 12 '24 09:06 Vinetos

@Vinetos you do know that https://github.com/greenrobot/greenDAO (the actual reason for the plugin) is no longer developed right?

licaon-kter avatar Jun 12 '24 09:06 licaon-kter

Indeed, transitioning to SQLDelight is on my agenda, albeit it's more of a desirable enhancement rather than an immediate necessity. In my perspective, the majority of the work for SQLDelight has been accomplished. However, due to time constraints, I haven't been able to finalize and thoroughly test the migration process.

Probably a two step transition is possible and easier to perform : 1 - remove greendao and use generated models as-it-is 2 - add sqldelight for a better database management

Vinetos avatar Jun 12 '24 09:06 Vinetos

Done with #16

Vinetos avatar Feb 18 '25 08:02 Vinetos