Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Flutter SDK

Open Urkman opened this issue 2 years ago • 1 comments

Any plans on a Flutter SDK?

Urkman avatar Apr 27 '22 08:04 Urkman

Not right now, but leave this ticket open, and I'll add it to the roadmap :)

winsmith avatar Apr 27 '22 10:04 winsmith

Flutter SDK would be great!

FantaMagier avatar May 30 '23 06:05 FantaMagier

Hello, I might take this on, since I need an analytics service until I manage to build my own.

I can't guarante it tho, since it would be part of a project I'm working on right now and the timeline could be to narrow. I would give a heads up here if I manage to work on it.

Flajt avatar Oct 09 '23 21:10 Flajt

Sure, that'd be lovely!

winsmith avatar Oct 12 '23 07:10 winsmith

I've done a bit of reading up on stuff (would be my first plugin with native interactions). My original idea was to wrap your existing kotlin and swift clients with platform channels and dart code. But there is a small issue: You've used only spm and not cocoapods for distribution right?

Flutter currently seems to support only cocoapods. flutter/flutter#33850 Which would leave me with 4 options:

  • Try a workaround where the user still needs to add the swift package to their app (and idk if it works sice I didnt touch native code so far)
  • write everything in dart (however then there would be three codebases that need to be in sync)
  • You add support for cocoapods (an article I found in regards to that)
  • I wait until the issue is resolved by flutter flutter/flutter#126005

EDIT: Add relevant issues

Flajt avatar Oct 15 '23 12:10 Flajt

Thanks a lot for researching this! I think we could add support for cocoapods. So far, I didn't want to support it mostly because it's increasingly unnecessary for modern iOS projects and would add additional support load. But with this added benefit, it might just push that balance over to "let's support it".

What do you think?

winsmith avatar Oct 16 '23 08:10 winsmith

If possible that would be nice, and the good thing is you could remove it as soon as flutter adds support for spm.

Otherwise I would attempt to write it purely in dart.

Flajt avatar Oct 16 '23 09:10 Flajt

Just jumping in to give a small heads up: I think I would be able to start working on it next week or the week afterwards, if the SPM related implementations are added. If that would be too soon, you can just give me a heads up when you have managed to implement it and I will attempt it then.

Flajt avatar Nov 20 '23 16:11 Flajt

Heads up: we're starting work on cocoapods support internally. It's time to get this show on the road!

winsmith avatar Jan 03 '24 10:01 winsmith

Seems like it has been added, I will start working on it when I find the time (I'm currently starting to get a bit busy). I will update you how it goes.

Edit:

I've tried myself on the SwiftClient, in theory doable, but there seem to be one or two major issues. But as soon as I figure this out it should be done in no time.

Flajt avatar Feb 03 '24 11:02 Flajt

iOS seems to work now. (There was a weird issue that was resolved after rerunning the creation process 5 times).

The repo is: flajt/flutter_telemetrydeck

Will aim for kotlin next.

Flajt avatar Feb 04 '24 23:02 Flajt

I'm sorry we've already received a finished Flutter SDK recently, so your work might be duplicate. But on the good side, we'll release it this week or so, so you'll be able to use it very soon.

winsmith avatar Feb 05 '24 16:02 winsmith

Np, I will delete my version to prevent confusion.

Flajt avatar Feb 05 '24 16:02 Flajt