PointyCastle / pointycastle

Moved into the Bouncy Castle project: https://github.com/bcgit/pc-dart
MIT License
271 stars 75 forks source link

Please update the SDK constraint #119

Open yhua537 opened 6 years ago

yhua537 commented 6 years ago

Please update the SDK constraint on this package. I am getting error message on get:

Package reflectable has no versions that match >=1.0.1 <2.0.0 derived from:

stevenroose commented 6 years ago

Pointy Castle currently doesn't work for Dart 2.0. Somehow a lot of tests are broken, possibly because of an issue with the BigInteger class that is used everywhere from the bignum package.

stevenroose commented 6 years ago

I think this can be done after https://github.com/PointyCastle/pointycastle/pull/122 is merged.

rickyazhari commented 6 years ago

is there any update about this?

stevenroose commented 6 years ago

@rickyazhari As you can see in #122, the holdup is in the SDK, I'm waiting for a BigInt.toBytes method to avoid having to use custom serialization methods.

yhua537 commented 6 years ago

@stevenroose Thanks for the update.

stevenroose commented 6 years ago

Can you check if this is solved with the new v1.0.0-rc1 release?

yhua537 commented 6 years ago

Not a pointycastle issue, possibly jumping too far ahead, i got error with reflectable: Because reflectable >=2.0.0 depends on analyzer ^0.31.0 and reflectable >=1.0.4 <=2.0.0-dev.1.0 depends on analyzer ^0.30.0, reflectable >=1.0.4 requires analyzer ^0.30.0 or ^0.31.0. And because reflectable >=1.0.1 <1.0.4 depends on analyzer >=0.27.2 <0.30.0, reflectable >=1.0.1 requires analyzer >=0.27.2 <0.30.0 or ^0.30.0 or ^0.31.0. Because no versions of json_serializable match >0.5.8 <0.6.0 and json_serializable 0.5.8 depends on analyzer ^0.32.0, json_serializable ^0.5.8 requires analyzer ^0.32.0. Thus, json_serializable ^0.5.8 is incompatible with reflectable >=1.0.1. And because every version of pointycastle from path depends on reflectable >=1.0.1 <3.0.0, json_serializable ^0.5.8 is incompatible with pointycastle from path. So, because xyzdepends on both pointycastle from path and json_serializable ^0.5.8, version solving failed.

modulovalue commented 6 years ago

@yhua537 I was able to resolve a similar reflectable issue by using this fork

leocavalcante commented 6 years ago

Unfortunately PointyCastle users have to wait because of https://github.com/dart-lang/reflectable/issues/136 unless there is a fork that doesn't uses reflectable package, that seams that is being addressed at: https://github.com/PointyCastle/pointycastle/issues/131

I'm really in favor of just removing reflection. I have myself not used them at https://github.com/leocavalcante/password-dart and https://github.com/leocavalcante/encrypt, but I can't upgrade this packages because of this dependency.

stevenroose commented 6 years ago

I'm planning to remove the reflectable dependency. Problem is that I don't have much time to work on Dart projects..

yhua537 commented 6 years ago

looks like reflectable 2.0.3 is fixing #136. Should this be resolve soon as well?

@modulovalue, thanks, I was using my own plugin for the moment so wasn't hurry.