capacitor-firebase-kit
Version:
Provider-less Firebase Kit - Universal Firebase services integration for React, React Native, and Capacitor apps
18 lines • 629 B
JavaScript
export class PlatformAdapter {
constructor() {
this.config = null;
this.serviceCache = new Map();
}
async loadServiceModule(serviceName) {
// Base implementation for loading service modules
// Subclasses will override this with platform-specific logic
throw new Error(`Service ${serviceName} not implemented for this platform`);
}
validateConfig(config) {
if (!config.projectId) {
throw new Error('FirebaseKit: projectId is required');
}
// Additional validation can be added here
}
}
//# sourceMappingURL=platform-adapter.js.map