sentry-dart icon indicating copy to clipboard operation
sentry-dart copied to clipboard

sentry_flutter incompatible with latest path_provider_foundation

Open Carapacik opened this issue 1 month ago • 5 comments

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

Carapacik avatar Nov 24 '25 13:11 Carapacik

DART-271

linear[bot] avatar Nov 24 '25 13:11 linear[bot]

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 avatar Nov 24 '25 13:11 buenaflor

@buenaflor And when are you planning to add support for Dart 3.8?

Carapacik avatar Nov 26 '25 22:11 Carapacik

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

buenaflor avatar Nov 26 '25 22:11 buenaflor

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.

buenaflor avatar Dec 04 '25 12:12 buenaflor

we have reverted the FFI usage starting from 9.9.0, conflicts should be gone

buenaflor avatar Dec 16 '25 11:12 buenaflor