-
Notifications
You must be signed in to change notification settings - Fork 56
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
Merge package:ffigen into dart-lang/native #185
Conversation
* Fix missing typedef dependencies of func and struct * added tests * update version, changelog
* Added fallback to flutter format if dartfmt is not found * added red color for severe, green for success in log printing * Only catch ProcessException when calling dartfmt * used package:cli_utils for finding dart_sdk and ansi colors * use path.join
…pec.yaml (#88) * removed dart:cli usage, use dylib version from pubspec.lock
* Bool datatype is now mapped to Uint8, Added test in native_test * Added dart-bool to config, bools in function parameters and return type now use dart bool instead of int by default
…#96) * added support for including/excluding/renaming unnamed_enums added faq, update version, changelog, update test * fix typo
Fixed code block indentation issue in configuration table.
* Fixed issues with macros with value double.infinity and double.NaN
* Iterate over all typedefs rather than jumping to the base type. * Added typedef-map to config. * Updated version, changelog, and readme.
* Migrated code to pass the null safe syntax. * Generating null safe code.
* Removed usage of --no-sound-null-safety flag * Update version, changelog * Use flag when running tests on travis
Co-authored-by: J-P Nurmi <[email protected]>
…135, #137) (#164) Co-authored-by: J-P Nurmi <[email protected]>
* WIP static functions * Revert old code gen changes * Refactor function code gen * Arg and return conversions * fix bugs * Fix analysis, add more tests * fmt * Fix autorelease pool test * Handle NS_RETURNS_RETAINED * Daco's comments
Thanks @liamappelbe! It looks like the coverage configuration and the changelog need to be updated, see redness on the bots. |
After this lands, please also update the table https://github.com/dart-lang/native/blob/main/README.md#packages |
@dcharkes - I believe you have sufficient permissions for this repo to temporarily enable 'Allow rebase merging', merge this PR, and then disable rebase merging. Let me know if this is not the case - |
If not, Daco just ping me and I can help with that. |
I do indeed. (But we'll have to address the redness on coverage and the publishing bot first.) |
Not sure what to do about this error. Seems like this validator doesn't understand dev versions. Unless someone has a workaround, we'll have to wait to merge the repos until after SDK 3.2 is published.
|
@liamappelbe try setting the channel to beta in .github/workflows/publish.yaml (and update FFIgen to beta instead of dev). docs: https://github.com/dart-lang/ecosystem/blob/main/.github/workflows/publish.yaml#L60-L67 |
Package publishing
Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation. |
@dcharkes Fixed the publish bot. PTAL |
Nice! Both the publisher and code coverage tool is happy! Regarding CLA bot, the two non-signed CLAs are ex Googlers who contributed during their time at Google, so these should be fine. Please submit an exception request following the link to the bot. Before I manually merge, as we can only do this once, and commits are not squashed:
|
9a13216
to
7690b0f
Compare
@dcharkes Ok, done. Should be good to go now. It's Friday afternoon here, so feel free to merge this during my weekend if it looks good. |
The urls don't look correct:
Also, can we do the README header rewrite and the SDK to beta bump as a PR on the FFIgen repo first? That means less reviewing on the commits manually.
I'd rather do it on Monday, who knows we might miss something and need to do some cleanup. 🙄 At least we need to transfer all issues, issue labels, label the issues with package:ffigen etc. (I can't find anything on transfering all issues to another repo at the same time. So we're going to have to hit "transfer issue" 85 times manually. Unless, @devoncarew knows some magic?) |
Devon does have some magic prepared. The repo_manage tool has a |
Yup, from memory , there are a few ways to x-fer issues in bulk. Moritz wrote the one in the repo_manage tool. I believe he said that it would occasionally fail after some number of issues, but that that was harmless? You can you capture more of the moves w/ a subsequent run. You definitely do want to have an additional label to help categorize the issues. |
Also: - Delete dependabot.yml - Rename test-package.yml to ffigen.yml, and modify it to use pkgs/ffigen as its working dir
This is needed because the ffigen package depends on the beta version of the SDK.
2f5cbd9
to
ff47496
Compare
@dcharkes PTAL |
Merge package:ffigen into dart-lang/native
Do NOT squash merge!
Fixes #437
Following the steps from dart-lang/tools#100
Current step:
We decided to defer this step until a follow up PR, to make it easier to review:
https://github.com/dart-lang/ffigen/actions/workflows/test-package.yml
->https://github.com/dart-lang/native/actions/workflows/ffigen.yml
https://github.com/dart-lang/ffigen
->https://github.com/dart-lang/native/tree/main/pkgs/ffigen
Steps to do:
Renamed tags