Reedyuk / blue-falcon

A Bluetooth kotlin multiplatform "Cross-Platform" library for iOS and Android
https://bluefalcon.dev
Apache License 2.0
321 stars 43 forks source link

Kotlin MP Example #106

Closed nicolasf closed 10 months ago

nicolasf commented 10 months ago

The Kotlin MP example apparently was deleted from the repository, but it's mentioned on the documentation. Was this intentional?

Reedyuk commented 10 months ago

whoops, let me put it back

Reedyuk commented 10 months ago

Actually i don't think we ever had a KMM example. I need to do one for you.

nicolasf commented 10 months ago

Maybe it was deleted at this commit? https://github.com/Reedyuk/blue-falcon/commit/9bf7e4b80f497ac541a8e1605969209285f2a494

Reedyuk commented 10 months ago

yeah that was broken and used old tech, i need to sort out a new example using KMP

Aleksandar98 commented 10 months ago

Hey @Reedyuk any news about KMM example?

Reedyuk commented 10 months ago

Sorry, have been busy recently. It's pretty easy though, include package in common and then instantiate blue falcon in the common.

Reedyuk commented 10 months ago

Hi guys, i have added a very basic example now, a couple of notes:

  1. Run on a real device - emulator/simulator wont work
  2. When you press scan, it will output the results to the log This should atleast point you in the right direction. Let me know if this works for you guys
Aleksandar98 commented 10 months ago

Thanks @Reedyuk , will be trying it out this week

Reedyuk commented 10 months ago

Great, good luck and enjoy. Let me know if anything needs changing. I will close this issue and you can raise an issue or discussion if you need anything