Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter bindings #321

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

MegaGrindStone
Copy link

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).

@MarvinQuevedo
Copy link

MarvinQuevedo commented May 31, 2022

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

@MegaGrindStone
Copy link
Author

MegaGrindStone commented May 31, 2022

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
Copy link
Author

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. :)

@MarvinQuevedo
Copy link

MarvinQuevedo commented Jun 1, 2022

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!

@github-actions
Copy link

github-actions bot commented Aug 1, 2022

'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.'

@justinengland
Copy link
Member

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

@github-actions github-actions bot removed the stale-pr label Apr 26, 2023
@github-actions
Copy link

'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.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants