Skip to content

Conversation

@kevinchalet
Copy link
Member

@kevinchalet kevinchalet commented Jan 6, 2026

Polyfill's OperatingSystem.IsAndroid() calls uname via Process.Start() to determine whether the app is running on Android, which is fairly problematic as 1) it spawns a process for that, which isn't ideal 2) it does so even on non-Android platforms like Windows, which generates unnecessary first-chance exceptions.

Unfortunately, it's not easy to opt out specific polyfills with the Polyfill library. While Meziantou.Polyfill currently exposes fewer polyfills, it's a lot easier to opt-out specific types or members.

This PR replaces Polyfill by Meziantou.Polyfill and adds internal OperatingSystem polyfills similar to what we have before moving to Polyfill.

@kevinchalet kevinchalet added this to the 7.3.0 milestone Jan 6, 2026
@kevinchalet kevinchalet self-assigned this Jan 6, 2026
@kevinchalet kevinchalet force-pushed the operating_system_checks branch from 892b1b1 to a0e056f Compare January 8, 2026 17:19
@kevinchalet kevinchalet changed the title Simplify the OS checks Replace Polyfill by Meziantou.Polyfill and bring back internal OperatingSystem polyfills Jan 8, 2026
@kevinchalet kevinchalet merged commit b0709b3 into openiddict:dev Jan 8, 2026
6 checks passed
@kevinchalet kevinchalet deleted the operating_system_checks branch January 8, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant