// Stub implementations for non-web platforms

/// Initialize x-app-sdk service (no-op on non-web)
Future<void> webInitializeXAppSDK() async {
  // no-op on non-web
}

/// Get token from x-app-sdk (no-op on non-web)
Future<String?> webGetToken() async {
  return null;
}

/// Close app and return to Super App (no-op on non-web)
Future<void> webCloseApp([Map<String, dynamic>? data]) async {
  // no-op on non-web
}

/// Check if x-app-sdk is initialized (no-op on non-web)
bool webIsSDKInitialized() {
  return false;
}

/// Get cached token (no-op on non-web)
String? webGetCachedToken() {
  return null;
}

/// Get last error message (no-op on non-web)
String? webGetLastError() {
  return null;
}

/// Clear token cache (no-op on non-web)
void webClearTokenCache() {
  // no-op on non-web
}

/// Reset SDK service (no-op on non-web)
void webResetSDK() {
  // no-op on non-web
}
