Skip to content

chore: adopt dart native build hooks#236

Open
HamdaanAliQuatil wants to merge 4 commits intomasterfrom
native-hooks
Open

chore: adopt dart native build hooks#236
HamdaanAliQuatil wants to merge 4 commits intomasterfrom
native-hooks

Conversation

@HamdaanAliQuatil
Copy link
Copy Markdown
Collaborator

Closes #192

@jonasfj
Copy link
Copy Markdown
Member

jonasfj commented Nov 17, 2025

This is awesome! But we probably need to fix lints and get the tests to pass :D

Comment thread pubspec.yaml
@jonasfj
Copy link
Copy Markdown
Member

jonasfj commented Nov 24, 2025

Do we have any idea what is wrong with the desktop platforms?

Comment thread pubspec.yaml
@HamdaanAliQuatil HamdaanAliQuatil changed the base branch from master to changelog December 14, 2025 06:43
@HamdaanAliQuatil HamdaanAliQuatil changed the base branch from changelog to master December 14, 2025 06:43
Comment thread hook/build.dart
Comment thread hook/build.dart Outdated
Comment thread hook/build.dart Outdated
Comment thread hook/build.dart Outdated
Comment thread .github/workflows/test.yml
Comment thread .github/workflows/test.yml
Comment thread .github/workflows/test.yml Outdated
Comment thread .github/workflows/test.yml Outdated
Copy link
Copy Markdown
Member

@jonasfj jonasfj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated coveralls to not complain about small drops in coverage.

Comment thread hook/build.dart Outdated
};
}

_VoidLookup _createLegacyLookup() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to keep this around? same with bin/setup.dart?
I'm asking is there a need for these? Are native assets not available during tests or something like that?

Also we should update CHANGELOG.md

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified the native asset path works in both dart test and flutter test now.

I kept the legacy lookup path and bin/setup.dart in this PR as a compatibility layer because the current master still has CI/docs using flutter pub run webcrypto:setup. Let's create a follow-up PR that updates the workflows and README together, rather than mixing the deprecation/removal into this branch.

Comment thread hook/build.dart Outdated
Comment thread hook/build.dart Outdated
Comment thread hook/build.dart Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Dart native build hooks for packaging

3 participants