flutter_downloader icon indicating copy to clipboard operation
flutter_downloader copied to clipboard

Swift migration

Open Hackmodford opened this issue 3 years ago • 1 comments

  • Converted Objective-C code to Swift
  • Experimenting with using Hive instead of native SQLite db.

fixes #693

Hackmodford avatar Aug 21 '22 19:08 Hackmodford

Minor but cool (I guess) thing: you might want to use swift-format so that the code formatting is consistent.

Once you install it, just do swift-format format --recursive --in-place . to format all files .swift files in all subdirectories.

I'll look at the code more closely when I find some time :)

bartekpacia avatar Aug 21 '22 19:08 bartekpacia

@Hackmodford does Hive require migrations?

lyio avatar Nov 07 '22 09:11 lyio

I think it does. But found Isar works better especially with Flutter Isolates. https://pub.dev/packages/isar

Hackmodford avatar Nov 07 '22 12:11 Hackmodford

Regarding the Hive part: I understood that the native SQLite database exists so the the plugin can manage its task irrespective of Flutter at all. The Hive DB ist not readily accessible from native code, is it?

lyio avatar Nov 07 '22 13:11 lyio

Closing in favor of #793. Thanks a lot for all the work anyway, it was useful :)

bartekpacia avatar Jan 29 '23 19:01 bartekpacia