esp_provisioning icon indicating copy to clipboard operation
esp_provisioning copied to clipboard

Incompatibility with mqtt_client

Open neillowden opened this issue 3 years ago • 4 comments

I am hitting the following incompatibility when trying to use esp_provisioning and mqtt_client in the same app.

Because mqtt_client >=9.1.0 depends on crypto ^3.0.1 and cryptography >=0.2.6 <2.0.0-nullsafety.0 depends on crypto ^2.0.0, mqtt_client >=9.1.0 is incompatible with cryptography >=0.2.6 <2.0.0-nullsafety.0.
Because esp_provisioning <=1.0.0+5 depends on cryptography ^0.2.6 and esp_provisioning >=1.0.0+6 depends on cryptography ^1.4.1, every version of esp_provisioning requires cryptography ^0.2.6 or ^1.4.1.
Thus, mqtt_client >=9.1.0 is incompatible with esp_provisioning.
So, because flutter_mqtt depends on both mqtt_client ^9.6.1 and esp_provisioning any, version solving failed.

Any suggestions on how to fix or workaround this?

neillowden avatar Oct 16 '21 08:10 neillowden

@neillowden I have the same issue , have you found any resolution to this ?

mahmoodfathy avatar Oct 31 '21 19:10 mahmoodfathy

@neillowden I have the same issue , have you found any resolution to this ?

@mahmoodfathy Not yet. I tried building esp_provisioning with newer versions of crypto/ cryptography and Flutter but then got a multitude of null-safety problems. I'm starting to think this package is not actively maintained so I will be looking for alternatives.

neillowden avatar Nov 02 '21 04:11 neillowden

@neillowden i have resolved this issue momentarily by overriding the crypto dependency by adding in the pubspec.yaml

dependency_overrides:
  crypto: ^2.0.0

but this is just a workaround and i agree with you that this is not actively maintained and we should look for alternatives or make it so we can resolve the null issues and open a PR

mahmoodfathy avatar Nov 04 '21 11:11 mahmoodfathy

@neillowden i have resolved this issue momentarily by overriding the crypto dependency by adding in the pubspec.yaml

dependency_overrides:
  crypto: ^2.0.0

but this is just a workaround and i agree with you that this is not actively maintained and we should look for alternatives or make it so we can resolve the null issues and open a PR

can not work in my project,issue as follow Because owon_pct513 depends on dependency_overrides from unknown source "crypto", version solving failed. pub get failed (1; Because owon_pct513 depends on dependency_overrides from unknown source "crypto", version solving failed.)

zzdota avatar May 26 '22 06:05 zzdota