Update codebase

This commit is contained in:
Hamza-Ayed
2026-08-11 00:11:23 +03:00
parent 6726fcd917
commit 0ff7d04f9a
345 changed files with 3756 additions and 3369 deletions
+49 -50
View File
@@ -1,4 +1,4 @@
// import 'package:siro_driver/env/env.dart';
// import 'package:tripz_driver/env/env.dart';
import '../main.dart';
import 'box_name.dart';
@@ -9,25 +9,25 @@ class AppLink {
static String get paymentServer {
switch (currentCountry) {
case 'Syria':
return 'https://wallet-syria.siromove.com/v1/main';
return 'https://api.tripz-egypt.com/v2/main';
case 'Egypt':
return 'https://wallet-egypt.siromove.com/v1/main';
return 'https://api.tripz-egypt.com/v2/main';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com/v2/main';
return 'https://api.tripz-egypt.com/v2/main';
default:
return 'https://wallet.siromove.com/v1/main';
return 'https://api.tripz-egypt.com/v2/main';
}
}
static const String appDomain = 'siromove.com';
static const String appDomain = 'tripz-egypt.com';
// ── روابط متجر تطبيق السائق (سيرو كابتن) ────────────────────────────────
// ── روابط متجر تطبيق السائق (تريبز كابتن) ────────────────────────────────
// تُستخدم في كل رسائل مشاركة/دعوة السائقين.
static const String driverAppStoreIOS =
'https://apps.apple.com/jo/app/id6785282536';
static const String driverAppStoreAndroid =
'https://play.google.com/store/apps/details?id=com.siro.siro_driver';
'https://play.google.com/store/apps/details?id=com.sefer_driver';
/// سطرا التحميل الجاهزان للإلصاق في نص المشاركة — نرسل الرابطين معاً
/// لأننا لا نعرف نظام تشغيل المستلم عند مشاركة نص عبر واتساب.
@@ -36,21 +36,21 @@ class AppLink {
static String get inviteRedirectUrl {
if (currentCountry == 'Syria') {
return "https://siromove.com/inviteSyria.php";
return "https://tripz-egypt.com/inviteSyria.php";
}
return "https://siromove.com/invite.php";
return "https://tripz-egypt.com/invite.php";
}
static String get location {
switch (currentCountry) {
case 'Syria':
return 'https://api-syria.siromove.com/siro_v3/ride/location';
return 'https://api.tripz-egypt.com/backend/ride/location';
case 'Egypt':
return 'https://api-egypt.siromove.com/siro_v3/ride/location';
return 'https://api.tripz-egypt.com/backend/ride/location';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com/backend/ride/location';
return 'https://api.tripz-egypt.com/backend/ride/location';
default:
return 'https://api.siromove.com/siro_v3/ride/location';
return 'https://api.tripz-egypt.com/backend/ride/location';
}
}
@@ -59,26 +59,26 @@ class AppLink {
static String get locationServerSide {
switch (currentCountry) {
case 'Syria':
return 'https://location-syria.siromove.com/siro/ride/location';
return 'https://api.tripz-egypt.com/backend/ride/location';
case 'Egypt':
return 'https://location-egypt.siromove.com/siro/ride/location';
return 'https://api.tripz-egypt.com/backend/ride/location';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com/loction_server/siro/ride/location';
return 'https://api.tripz-egypt.com/backend/ride/location';
default:
return 'https://location-jordan.siromove.com/siro/ride/location';
return 'https://api.tripz-egypt.com/backend/ride/location';
}
}
static String get locationSocketUrl {
switch (currentCountry) {
case 'Syria':
return 'https://location-syria.siromove.com';
return 'https://location-syria.tripz-egypt.com';
case 'Egypt':
return 'https://location-egypt.siromove.com';
return 'https://location-egypt.tripz-egypt.com';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com:2020';
return 'https://api.tripz-egypt.com:2020';
default:
return 'https://jordan-siro.intaleqapp.com:2020';
return 'https://api.tripz-egypt.com:2020';
}
}
@@ -89,22 +89,22 @@ class AppLink {
static String get foodSocketUrl {
switch (currentCountry) {
case 'Syria':
return 'https://food-syria.siromove.com:4040';
return 'https://food-syria.tripz-egypt.com:4040';
case 'Egypt':
return 'https://food-egypt.siromove.com:4040';
return 'https://food-egypt.tripz-egypt.com:4040';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com:4040';
return 'https://api.tripz-egypt.com:4040';
default:
return 'https://jordan-siro.intaleqapp.com:4040';
return 'https://api.tripz-egypt.com:4040';
}
}
static String get mapSaasRoute {
switch (currentCountry) {
case 'Syria':
return 'https://map-syria.siromove.com/api/maps/route';
return 'https://map-saas.intaleqapp.com/api/maps/route';
case 'Egypt':
return 'https://map-egypt.siromove.com/api/maps/route';
return 'https://map-saas.intaleqapp.com/api/maps/route';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/maps/route';
default:
@@ -115,9 +115,9 @@ class AppLink {
static String get mapSaasPlaces {
switch (currentCountry) {
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/places';
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
case 'Egypt':
return 'https://map-egypt.siromove.com/api/geocoding/places';
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
default:
@@ -128,13 +128,13 @@ class AppLink {
static String get routeApiBaseUrl {
switch (currentCountry) {
case 'Syria':
return "https://routes-syria.siromove.com/route/v1/driving";
return "https://routes-syria.tripz-egypt.com/route/v1/driving";
case 'Egypt':
return "https://routes-egypt.siromove.com/route/v1/driving";
return "https://routes-egypt.tripz-egypt.com/route/v1/driving";
case 'Jordan':
return "https://routesjo.intaleq.xyz/route/v1/driving";
default:
return "https://routes.siromove.com/route/v1/driving";
return "https://routes.tripz-egypt.com/route/v1/driving";
}
}
@@ -143,21 +143,21 @@ class AppLink {
static String get endPoint {
switch (currentCountry) {
case 'Syria':
return 'https://api-syria.siromove.com/siro';
return 'https://api.tripz-egypt.com/backend';
case 'Egypt':
return 'https://api-egypt.siromove.com/siro';
return 'https://api.tripz-egypt.com/backend';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com/backend';
return 'https://api.tripz-egypt.com/backend';
default:
return 'https://api.siromove.com/siro';
return 'https://api.tripz-egypt.com/backend';
}
}
static String get syria => 'https://api-syria.siromove.com/siro';
static String get syria => 'https://api.tripz-egypt.com/backend';
static String get server => endPoint;
///=================ride==========================///
///https://jordan-siro.intaleqapp.com/backend
///https://api.tripz-egypt.com/backend
static String get ride => '$server/ride';
/// this ride server is for socket communication not for rest api calls
@@ -165,13 +165,13 @@ class AppLink {
static String get rideServer {
switch (currentCountry) {
case 'Syria':
return 'https://ride-syria.siromove.com/siro/ride';
return 'https://api.tripz-egypt.com/backend/ride';
case 'Egypt':
return 'https://ride-egypt.siromove.com/siro/ride';
return 'https://api.tripz-egypt.com/backend/ride';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com/backend';
return 'https://api.tripz-egypt.com/backend/ride';
default:
return 'https://jordan-siro.intaleqapp.com/backend';
return 'https://api.tripz-egypt.com/backend/ride';
}
}
@@ -185,13 +185,13 @@ class AppLink {
static String get mapOSM {
switch (currentCountry) {
case 'Syria':
return 'https://routes-syria.siromove.com';
return 'https://routes-syria.tripz-egypt.com';
case 'Egypt':
return 'https://routes-egypt.siromove.com';
return 'https://routes-egypt.tripz-egypt.com';
case 'Jordan':
return 'https://routesjo.intaleq.xyz';
default:
return 'https://routes.siromove.com';
return 'https://routes.tripz-egypt.com';
}
}
@@ -281,8 +281,7 @@ class AppLink {
// ================= Earnings Endpoints =================
// نقطة واحدة لكل أرقام شاشة الأرباح بختم زمني واحد. النداءات الأربعة
// السابقة كانت تصل في لحظات مختلفة فتُنتج أرقاماً لا تتفق.
static String get getEarningsSummary =>
"$endPoint/ride/earnings/summary.php";
static String get getEarningsSummary => "$endPoint/ride/earnings/summary.php";
static String get getEarningsTrips => "$endPoint/ride/earnings/trips.php";
// ================= Gamification Endpoints =================
@@ -433,9 +432,9 @@ class AppLink {
static String get reverseGeocoding {
switch (currentCountry) {
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/reverse';
return 'https://map-syria.tripz-egypt.com/api/geocoding/reverse';
case 'Egypt':
return 'https://map-egypt.siromove.com/api/geocoding/reverse';
return 'https://map-egypt.tripz-egypt.com/api/geocoding/reverse';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
default: