bls-signatures icon indicating copy to clipboard operation
bls-signatures copied to clipboard

Flutter bindings

Open MegaGrindStone opened this issue 2 years ago • 7 comments

This is a bindings for Flutter which for now support only Android and iOS.

Thanks to pull request #297, for writing C-bridge of this library, so i could implement this binding using Dart FFI based on that.

I've uploaded this binding to pub.dev under my name as an uploader. I'm more than happy to transfer it to chia publisher (if there's one), or i could publish it under my own publisher (i'm planning to build chia wallet, so i could use that).

MegaGrindStone avatar Apr 21 '22 19:04 MegaGrindStone

Hi @MegaGrindStone I was testing the library, and in Android run good and the iOS Debug in Simulator(M1 Silicon) too, but when I try to build "ipa" with "flutter build ipa", show the next error:

error (xcode): unknown type name '__uint128_t'. iios/pods/bls/build/_deps/relic-src/include/relic_types.h:119:8

But if when I add the Exclude to i386 show the next Error, and now I obtain again this error even if i use without modifying it:

Error (Xcode): Bitcode bundle could not be generated because
'.../ios/Pods/bls/install/lib/libbls.a(privatekey.o)' was built without full bitcode. All object files
and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64

Thanks for the excellent work in the library

MarvinQuevedo avatar May 31 '22 16:05 MarvinQuevedo

Hi there @MarvinQuevedo.

I could reproduce your problem, working on it! Thanks!

As for your second problem, you could remove public folder inside your project folder (backup couldn't hurt though), to force flutter re-download all your project's dependency.

MegaGrindStone avatar May 31 '22 17:05 MegaGrindStone

In this new commit, flutter build ipa is work as expected. It's also work in the iPhone physical device. But alas, now i couldn't make it work at iOS simulator, maybe someone with more knowledge about iOS toolchain could help with this.

@MarvinQuevedo Could you help confirming, if this is now work in your machine. And as for now, i couldn't confirm whether the IPA file would be accepted by AppStore or not, maybe you could help with that too. :)

MegaGrindStone avatar Jun 01 '22 07:06 MegaGrindStone

HI @MegaGrindStone the build ipa work Ok, but the debugging is broken, before the changes, the debug in simulator work fine, but now show some errors y not run but I will to invest about, thanks!

MarvinQuevedo avatar Jun 01 '22 16:06 MarvinQuevedo

'This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed.'

github-actions[bot] avatar Aug 01 '22 11:08 github-actions[bot]

@arvidn can you recommend a good person to review this pr?

justinengland avatar Apr 25 '23 15:04 justinengland

'This PR has been flagged as stale due to no activity for over 60 days. It will not be automatically closed, but it has been given a stale-pr label and should be manually reviewed.'

github-actions[bot] avatar Jun 26 '23 11:06 github-actions[bot]

CNI does not want to maintain these flutter bindings ongoing, so unfortunately we are closing your PR. (also, side note, this PR changed/added 116 files in order to add bindings?)

emlowe avatar May 13 '24 23:05 emlowe

CNI does not want to maintain these flutter bindings ongoing, so unfortunately we are closing your PR. (also, side note, this PR changed/added 116 files in order to add bindings?)

Ah, it's a shame. Thanks for letting me know.

Regarding the side note, most of the 116 files added is a flutter's generated code which is there to elaborate the example project on how to use (and prove) this binding.

MegaGrindStone avatar May 16 '24 03:05 MegaGrindStone