AKushWarrior / steel_crypt

A collection of high-level API's exposing PointyCastle to perform hashing and encrypting in popular/secure algorithms.
https://pub.dev/packages/steel_crypt
Mozilla Public License 2.0
40 stars 10 forks source link

Flutter web build fails when including any version of steel crypt. #43

Closed Mikailo closed 3 years ago

Mikailo commented 3 years ago

Hello, I have encountered an issue when trying the flutter build web command and including any version of steel crypt(Specifically tried with 2.2.1 and 1.6.1) in the pubspec, even if it isn't used anywhere.

image

Simply running a web server works without issues.

These are other dependencies , that I have included in my project if that helps.

image

AKushWarrior commented 3 years ago

This issue is an upstream issue with pointycastle. I can fix it real quick... Give me a day or so.

Mikailo commented 3 years ago

Hello, sorry to pester you,but is there any progress with this issue?

MoyaMaker commented 3 years ago

This error still appearing, any update?

AKushWarrior commented 3 years ago

@Mikailo @MoyaMaker Should be fixed in v2.3.0. I was trying to hold off on publishing a new version until I finished writing the documentation, but I simply haven't had the time to sit down and do that.

AKushWarrior commented 3 years ago

Wait, not done. For some reason, pointycastle is import dart:io upstream. I'll have to figure out a fix for that (or maybe move to js interop for web).

hectorvillag commented 3 years ago

I think this was solved in the this pull request here

AKushWarrior commented 3 years ago

That PR appears to have been merged and published. Updating the version constraints for pointycastle in this library will probably solve this issue.

AKushWarrior commented 3 years ago

This should work now.