forked from jsnbuchanan/crowd-funder-for-time-pwa
- 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.
52 lines
1.2 KiB
TypeScript
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");
|
|
}
|
|
}
|