mirror of
https://git.um-react.app/um/um-react.git
synced 2026-11-25 06:46:59 +00:00
- Introduced a new platform provider architecture to manage platform-specific functionalities. - Created `PlatformProvider`, `PlatformContext`, and related capabilities for handling downloads and key imports. - Integrated the platform provider into `AppRoot`, allowing for dynamic platform management. - Added error handling classes for unsupported and unimplemented methods. - Updated tests to validate the new platform provider functionalities and capabilities.
11 lines
378 B
TypeScript
11 lines
378 B
TypeScript
import { createBrowserProvider } from './browser/BrowserProvider';
|
|
import type { PlatformProvider } from './PlatformProvider';
|
|
|
|
/**
|
|
* Resolve the active platform backend.
|
|
* Currently always returns the browser provider; native (e.g. Tauri) switching can be added here later.
|
|
*/
|
|
export function createPlatformProvider(): PlatformProvider {
|
|
return createBrowserProvider();
|
|
}
|