esp_provisioning
esp_provisioning copied to clipboard
Incompatibility with mqtt_client
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 I have the same issue , have you found any resolution to this ?
@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 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
@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.)