Files
xtremobile/lib/core/utils/platform_utils.dart
T
GitHub Copilot 1293a159ee Phase 1: Android-Only Cleanup - Code and configuration cleanup
- Clean web-specific comments from hive_service.dart
- Update platform_utils.dart documentation
- Remove web-specific imports from mobile_xtream_providers.dart
- All platform-specific code removed
- Ready for Flutter build validation
2026-03-25 21:53:53 +01:00

22 lines
739 B
Dart

/// Platform utilities for Android
///
/// These utilities handle Android-specific behavior.
/// Android doesn't have same-origin policy restrictions like web platforms.
library;
/// Check if we're running on HTTPS (not applicable for Android)
/// Android apps don't have same-origin restrictions, so we always return false
bool isHttps() {
// Android doesn't have same-origin policy restrictions
// So we never need the HTTPS bridge proxy
return false;
}
/// Get the window origin (not applicable for Android)
/// Android doesn't have a "window" concept, returns empty string
String getWindowOrigin() {
// Android doesn't have a window origin
// Returns empty string as it's never used with isHttps() == false
return '';
}