mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-22 22:58:14 +02:00
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
This commit is contained in:
1 parent
19d5fac881
commit
1293a159ee
5 files changed
+69
-27
No files matched your search
@@ -1,6 +1,21 @@
|
||||
/// Platform utilities - conditional export
|
||||
/// Uses web implementation on web, stub on other platforms
|
||||
/// Platform utilities for Android
|
||||
///
|
||||
/// These utilities handle Android-specific behavior.
|
||||
/// Android doesn't have same-origin policy restrictions like web platforms.
|
||||
library;
|
||||
|
||||
export 'platform_utils_stub.dart'
|
||||
if (dart.library.html) 'platform_utils_web.dart';
|
||||
/// 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 '';
|
||||
}
|
||||
Reference in new issue
Block a user