Sorry for bundling multiple things into a single PR. I hope it's tiny enough for the review, though.
With this PR, I propose to:
Remove lock files from the repository, as they are not needed there. (locks files are in .gitignore in the Dart package template)
Add the callFollowingErrorInterceptor flag to the dio interceptor. This allows users of this package to implement a single interceptor for error handling and deal with the error universally. This flag is false by default for backward compatibility.
Most importantly, update dio constraints. Dio 5 introduced breaking changes, and not all projects have migrated to it. That broke backward compatibility for http_certificate_pinning for the 2.0.7 version. According to semver, that should have been a major release. As, again according to semver, dio 5.x.x should not have breaking changes in this version, I propose updating dio constraints and allowing using the old (4.0.6) and new (5.x.x) versions.
Sorry for bundling multiple things into a single PR. I hope it's tiny enough for the review, though.
With this PR, I propose to:
locks
files are in.gitignore
in the Dart package template)callFollowingErrorInterceptor
flag to the dio interceptor. This allows users of this package to implement a single interceptor for error handling and deal with the error universally. This flag isfalse
by default for backward compatibility.http_certificate_pinning
for the2.0.7
version. According to semver, that should have been a major release. As, again according to semver,dio 5.x.x
should not have breaking changes in this version, I propose updating dio constraints and allowing using the old (4.0.6) and new (5.x.x) versions.