إضافة الهوية الجديدة Tripz

This commit is contained in:
Hamza-Ayed
2026-07-29 02:31:04 +03:00
parent ecbe245b77
commit b9a97effe5
634 changed files with 5149 additions and 5294 deletions
@@ -10,7 +10,7 @@ import '../print.dart';
/// هذه الخدمة مشابهة لـ [IosLiveActivityService] ولكن لمنصة Android
class AndroidLiveUpdateService {
static const MethodChannel _channel =
MethodChannel('siro/android_live_update');
MethodChannel('tripz/android_live_update');
static bool _isSupported = false;
static bool _isActive = false;
@@ -3,7 +3,7 @@ import 'package:flutter/foundation.dart';
import 'package:native_geofence/native_geofence.dart';
import 'package:http/http.dart' as http;
import 'package:get_storage/get_storage.dart';
import 'package:siro_rider/constant/links.dart';
import 'package:tripz_rider/constant/links.dart';
// Top-level function for background execution
@pragma('vm:entry-point')
@@ -33,7 +33,7 @@ Future<void> geofenceBackgroundCallback(GeofenceCallbackParams params) async {
}
}
class SiroGeofencingService {
class TripzGeofencingService {
static final _storage = GetStorage();
static Future<void> initAndStart() async {
@@ -113,7 +113,8 @@ class OfflineMapService {
for (var region in regions) {
await deleteOfflineRegion(region.id);
}
Log.print("✅ Map cache cleared successfully. ${regions.length} regions removed.");
Log.print(
"✅ Map cache cleared successfully. ${regions.length} regions removed.");
} catch (e) {
Log.print("⚠️ Failed to clear map cache: $e");
}
+1 -1
View File
@@ -6,7 +6,7 @@ import '../print.dart';
/// خدمة التحكم بوضع النافذة العائمة (Picture-in-Picture) على أندرويد.
/// تُستدعى عند بدء الرحلة لتفعيل PiP تلقائياً عند خروج المستخدم من التطبيق.
class PipService {
static const MethodChannel _channel = MethodChannel('siro/pip');
static const MethodChannel _channel = MethodChannel('tripz/pip');
/// هل وضع PiP مدعوم على هذا الجهاز؟
static Future<bool> isPipSupported() async {
@@ -22,7 +22,7 @@ class RideLiveNotification {
final android = AndroidNotificationDetails(
'live_ride_tracking', // channel id
'Ride Tracking', // channel name
channelDescription: 'Live updates for the current Siro ride',
channelDescription: 'Live updates for the current Tripz ride',
importance: Importance.max,
priority: Priority.high,
ongoing: true, // إشعار ثابت
@@ -2,7 +2,7 @@ import 'dart:io';
import 'package:flutter/services.dart';
class RideTrackingNative {
static const MethodChannel _channel = MethodChannel('siro/ride_tracking');
static const MethodChannel _channel = MethodChannel('tripz/ride_tracking');
static Future<void> updateRideTracking({
required String driverName,
@@ -1,11 +1,11 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:siro_rider/print.dart';
import 'package:tripz_rider/print.dart';
class SignalingService {
WebSocket? _socket;
final String _url = "wss://calls.intaleqapp.com/ws";
final String _url = "wss://calls.tripzapp.com/ws";
// Callbacks
Function(List<dynamic> iceServers)? onConnected;