trireme icon indicating copy to clipboard operation
trireme copied to clipboard

Support for iOS

Open AlBlanc opened this issue 5 years ago • 3 comments

Thank you for your great work. I must admit I did not try the compilation on iOS yet but I am really interested in.

If you have few spare minutes, can you share us about the iOS compatibility? Have you tried it yet?

I am up to give some help on this subject (and Android also as well ;) )

AlBlanc avatar Jul 10 '19 07:07 AlBlanc

I'm just an android developer. I don't have the hardware or knowledge to build iOS version of this project. I've never tried to compile the iOS side.

teal77 avatar Jul 10 '19 08:07 teal77

Work on this would involve,

  • Making sure the plugins we've used work properly on iOS (They should for the most part)
  • Write the iOS counterpart of native code eg: https://github.com/teal77/trireme/tree/master/android

teal77 avatar Jul 10 '19 08:07 teal77

We need some native code to interact with iOS specific APIs. For that we use platform channels in a couple of places.

  • To detect if the app was opened by opening magnet:// URL or a URL ending in .torrent and deliver that URL to our dart code.
  • To open the phones file picker when a user wants to add torrent by file, and copy the selected file into our apps internal storage so that dart code can read that file.

teal77 avatar Jul 10 '19 08:07 teal77