Skip to content

HybridWebView: Clean up duplicate path manipulization/normalization code #23668

@Eilon

Description

@Eilon

See PR comment: #22880 (comment)

@mattleibow said:

Can this rather use FileSystemPlatformOpenAppPackageFile instead of duplicating code?

@Eilon said:

The MAUI FileSystem APIs are unfortunately async-only (normally a good thing), but the Android API being implemented here is sync-only. For that reason I did the call directly because ultimately the low-level file system API on Android is sync anyway (just regular file system call). I have been unable to find a pattern to do async interception of Android WebView requests.

@mattleibow said:

Can we create an issue to track this, we already have FileSystemUtils.NormalizePath so we probably should create a helper for this and use it everywhere vs copying in all places.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions