sentry_flutter incompatible with latest path_provider_foundation
Platform
Flutter Mobile iOS
Obfuscation
Enabled
Debug Info
Disabled
Doctor
Flutter version 3.38.3 Dart version 3.10.1
Version
9.8.0
Steps to Reproduce
sentry_flutter: ^9.8.0 path_provider_foundation: ^2.5.0
Expected Result
Process finished with exit code 0
Actual Result
Because path_provider_foundation >=2.5.0 depends on objective_c ^9.1.0 and sentry_flutter >=9.7.0-beta.2 depends on objective_c 8.0.0, path_provider_foundation >=2.5.0 is incompatible with sentry_flutter >=9.7.0-beta.2. So, because error_reporter depends on both sentry_flutter ^9.8.0 and path_provider_foundation ^2.5.0, version solving failed.
Are you willing to submit a PR?
None
hey unfortunately we won't be compatible with the newer versions of path_provider_foundation for a while since they use the newest objective_c package version 9.x.x. We cannot upgrade to that version unless we do a major since it introduces a much higher Dart min SDK version.
As far as I can tell there are not many alternatives here other than pinning path provider to a previous version or pinning sentry flutter to an older version that does not use the obj_c package yet
@buenaflor And when are you planning to add support for Dart 3.8?
fwiw 2.5.1 should be usable as they reverted the usage of the objective_c package
but when they eventually re-merge it this issue will come up again
Update: we will also be reverting our FFI usage and therefore also removing the objective_c package so this won't be an issue anymore.
we have reverted the FFI usage starting from 9.9.0, conflicts should be gone