Files
crowd-funder-from-jason/src/services/platforms/PyWebViewPlatformService.ts
Matthew Raymer 073ce24f43 chore(deps): Add Capacitor camera and filesystem plugins
- Add @capacitor/camera@6.0.0 for cross-platform photo capture
- Add @capacitor/filesystem@6.0.0 for file system operations
- Maintain compatibility with existing Capacitor core v6.2.1

These plugins enable native camera access and file system operations
for the Capacitor platform implementation.
2025-04-06 13:28:50 +00:00

52 lines
1.2 KiB
TypeScript

import { ImageResult, PlatformService } from "../PlatformService";
import { logger } from "../../utils/logger";
export class PyWebViewPlatformService implements PlatformService {
async readFile(path: string): Promise<string> {
throw new Error("Not implemented");
}
async writeFile(path: string, content: string): Promise<void> {
throw new Error("Not implemented");
}
async deleteFile(path: string): Promise<void> {
throw new Error("Not implemented");
}
async listFiles(directory: string): Promise<string[]> {
throw new Error("Not implemented");
}
async takePicture(): Promise<ImageResult> {
logger.error("takePicture not implemented in PyWebView platform");
throw new Error("Not implemented");
}
async pickImage(): Promise<ImageResult> {
logger.error("pickImage not implemented in PyWebView platform");
throw new Error("Not implemented");
}
isCapacitor(): boolean {
return false;
}
isElectron(): boolean {
return false;
}
isPyWebView(): boolean {
return true;
}
isWeb(): boolean {
return false;
}
async handleDeepLink(url: string): Promise<void> {
logger.error("handleDeepLink not implemented in PyWebView platform");
throw new Error("Not implemented");
}
}