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
+41 -41
View File
@@ -1,14 +1,14 @@
import 'package:siro_rider/constant/box_name.dart';
import 'package:siro_rider/main.dart';
import 'package:tripz_rider/constant/box_name.dart';
import 'package:tripz_rider/main.dart';
class AppLink {
static const String appDomain = 'siromove.com';
static const String appDomain = 'tripz-egypt.com';
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 currentCountry => box.read(BoxName.countryCode) ?? 'Jordan';
@@ -16,61 +16,61 @@ 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 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';
}
}
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/backend/ride/location';
return 'https://api.tripz-egypt.com/backend/ride/location';
default:
return 'https://location.siromove.com/siro/ride/location';
return 'https://api.tripz-egypt.com/backend/ride/location';
}
}
static String get routesOsm {
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';
}
}
static String get mapSaasRoute {
switch (currentCountry) {
case 'Syria':
return 'https://map-syria.siromove.com/api/maps/route';
return 'https://map-syria.tripz-egypt.com/api/maps/route';
case 'Egypt':
return 'https://map-egypt.siromove.com/api/maps/route';
return 'https://map-egypt.tripz-egypt.com/api/maps/route';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/maps/route';
default:
@@ -81,9 +81,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:
@@ -94,9 +94,9 @@ class AppLink {
static String get searchGeocoding {
switch (currentCountry) {
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/search';
return 'https://map-syria.tripz-egypt.com/api/geocoding/search';
case 'Egypt':
return 'https://map-egypt.siromove.com/api/geocoding/search';
return 'https://map-egypt.tripz-egypt.com/api/geocoding/search';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/geocoding/search';
default:
@@ -107,9 +107,9 @@ class AppLink {
static String get mapSaasPlaces {
switch (currentCountry) {
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/places';
return 'https://map-syria.tripz-egypt.com/api/geocoding/places';
case 'Egypt':
return 'https://map-egypt.siromove.com/api/geocoding/places';
return 'https://map-egypt.tripz-egypt.com/api/geocoding/places';
case 'Jordan':
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
default:
@@ -122,39 +122,39 @@ class AppLink {
static String get rideServerSide {
switch (currentCountry) {
case 'Syria':
return 'https://ride-syria.siromove.com/siro';
return 'https://api.tripz-egypt.com/backend';
case 'Egypt':
return 'https://ride-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://jordan-siro.intaleqapp.com/backend';
return 'https://api.tripz-egypt.com/backend';
}
}
static String get server {
switch (currentCountry) {
case 'Syria':
return 'https://api-syria.siromove.com/siro_v3';
return 'https://api.tripz-egypt.com/backend';
case 'Egypt':
return 'https://api-egypt.siromove.com/siro_v3';
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_v3';
return 'https://api.tripz-egypt.com/backend';
}
}
static String get serverSocket {
switch (currentCountry) {
case 'Syria':
return 'https://api-syria.siromove.com';
return 'https://api-syria.tripz-egypt.com';
case 'Egypt':
return 'https://api-egypt.siromove.com';
return 'https://api-egypt.tripz-egypt.com';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com:3030';
return 'https://api.tripz-egypt.com:3030';
default:
return 'https://jordan-siro.intaleqapp.com:3030';
return 'https://api.tripz-egypt.com:3030';
}
}
@@ -199,7 +199,7 @@ class AppLink {
static String get deletePassengersWallet => "$wallet/delete.php";
static String get updatePassengersWallet => "$wallet/update.php";
//=======================Siro Prime===================
//=======================Tripz Prime===================
static String get initiatePrime => "$server/api/payments/initiate_prime.php";
static String get getPrimeStatus =>
"$server/api/payments/get_prime_status.php";