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.
This commit is contained in:
Matthew Raymer
2025-04-06 13:28:50 +00:00
parent b0a66d790d
commit 4b203ed815
7 changed files with 64 additions and 28 deletions

View File

@@ -49,7 +49,7 @@ export class CapacitorPlatformService implements PlatformService {
const blob = await this.processImageData(image.base64String);
return {
blob,
fileName: `photo_${Date.now()}.${image.format || 'jpg'}`
fileName: `photo_${Date.now()}.${image.format || "jpg"}`,
};
} catch (error) {
logger.error("Error taking picture with Capacitor:", error);
@@ -69,7 +69,7 @@ export class CapacitorPlatformService implements PlatformService {
const blob = await this.processImageData(image.base64String);
return {
blob,
fileName: `photo_${Date.now()}.${image.format || 'jpg'}`
fileName: `photo_${Date.now()}.${image.format || "jpg"}`,
};
} catch (error) {
logger.error("Error picking image with Capacitor:", error);
@@ -94,7 +94,7 @@ export class CapacitorPlatformService implements PlatformService {
const byteArray = new Uint8Array(byteNumbers);
byteArrays.push(byteArray);
}
return new Blob(byteArrays, { type: 'image/jpeg' });
return new Blob(byteArrays, { type: "image/jpeg" });
}
isCapacitor(): boolean {