import type { MobileAppUpdateAdapter } from '../../contracts/mobile.contracts';

/** Browser/electron fallback - store updates are not available outside native shells. */
export class WebMobileAppUpdateAdapter implements MobileAppUpdateAdapter {
  readonly isSupported = false;

  async getAppUpdateInfo() {
    return {
      availableVersion: null,
      currentVersion: '0.0.0',
      flexibleUpdateAllowed: false,
      immediateUpdateAllowed: false,
      platform: null,
      updateAvailability: 'unknown' as const
    };
  }

  async openAppStore(): Promise<void> {}

  async performImmediateUpdate(): Promise<void> {}

  async startFlexibleUpdate(): Promise<void> {}

  async completeFlexibleUpdate(): Promise<void> {}
}
