mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-11 17:29:26 +02:00
- 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
22 lines
739 B
Dart
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 '';
|
|
}
|