-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
refactor!: update to flutter rust bridge v2 #332
refactor!: update to flutter rust bridge v2 #332
Conversation
This is a huge help! TYSM! It'll take awhile to review all of this (especially since I didn't look in-depth at the FRB v2 changes), so please bear with me while I take a look! Edit: wasn't as bad as the diff made it out to be--mostly just code gen file updates 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what you have so far is good!
If it's ok with you, can I use this PR to finish up some misc things (like iOS/macOS/CI/CD)? Then I can merge it in once I'm done with that.
Yeah that works! |
I need to go to bed so I'll leave some notes here on where I left off: // flutter_interface.dart
/// Creates a [MimirInstance] from the given path for Flutter
Future<MimirInstance> getInstanceForPath(String path) =>
getInstance(path: path); // TODO do we need ioDirectory? # combine-prs
cargo build -r
# TODO update generated files
# TODO run code formatter
git config --global user.name 'MimirActionsBot'
git config --global user.email '[email protected]'
git commit -am "chore: update generated files"
git push
|
Switching to dynamic linking would be a one-line fix on iOS/macOS if it weren't for CocoaPods. Thanks CocoaPods! Now I get to rediscover how to get iOS/macOS builds working again. Looked into Swift Package Manager integration into Flutter but that appears as though it'll take some time before it reaches stable. So will need to find a new solution that deals with CocoaPods in the meantime. |
a02fe32
to
a7ce74d
Compare
Yup, sounds like flutter development 😅 Btw, for this failure, I manually changed it to just edit: I see you just fixed it. Nice timing. |
Hm. I fixed the Also haven't seen the int casting issue pop-up--maybe something else I did fixed that. |
I think I'm going to do a temp fix here for iOS/macOS that reverts to using the discouraged That being said, notes to future self once SPM support comes:
|
closes #331