إضافة الهوية الجديدة Tripz
This commit is contained in:
@@ -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,35 +9,35 @@ class AppLink {
|
||||
static String get paymentServer {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://wallet-syria.siromove.com/v1/main';
|
||||
return 'https://wallet-syria.tripzmove.com/v1/main';
|
||||
case 'Egypt':
|
||||
return 'https://wallet-egypt.siromove.com/v1/main';
|
||||
return 'https://wallet-egypt.tripzmove.com/v1/main';
|
||||
case 'Jordan':
|
||||
return 'https://walletintaleq.intaleq.xyz/v2/main';
|
||||
return 'https://wallettripz.tripz.xyz/v2/main';
|
||||
default:
|
||||
return 'https://wallet.siromove.com/v1/main';
|
||||
return 'https://wallet.tripzmove.com/v1/main';
|
||||
}
|
||||
}
|
||||
|
||||
static const String appDomain = 'siromove.com';
|
||||
static const String appDomain = 'tripzmove.com';
|
||||
|
||||
static String get inviteRedirectUrl {
|
||||
if (currentCountry == 'Syria') {
|
||||
return "https://siromove.com/inviteSyria.php";
|
||||
return "https://tripzmove.com/inviteSyria.php";
|
||||
}
|
||||
return "https://siromove.com/invite.php";
|
||||
return "https://tripzmove.com/invite.php";
|
||||
}
|
||||
|
||||
static String get location {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://api-syria.siromove.com/siro_v3/ride/location';
|
||||
return 'https://api-syria.tripzmove.com/tripz_v3/ride/location';
|
||||
case 'Egypt':
|
||||
return 'https://api-egypt.siromove.com/siro_v3/ride/location';
|
||||
return 'https://api-egypt.tripzmove.com/tripz_v3/ride/location';
|
||||
case 'Jordan':
|
||||
return 'https://jordan-siro.intaleqapp.com/backend/ride/location';
|
||||
return 'https://jordan-tripz.tripzapp.com/backend/ride/location';
|
||||
default:
|
||||
return 'https://api.siromove.com/siro_v3/ride/location';
|
||||
return 'https://api.tripzmove.com/tripz_v3/ride/location';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,65 +46,65 @@ class AppLink {
|
||||
static String get locationServerSide {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://location-syria.siromove.com/siro/ride/location';
|
||||
return 'https://location-syria.tripzmove.com/tripz/ride/location';
|
||||
case 'Egypt':
|
||||
return 'https://location-egypt.siromove.com/siro/ride/location';
|
||||
return 'https://location-egypt.tripzmove.com/tripz/ride/location';
|
||||
case 'Jordan':
|
||||
return 'https://jordan-siro.intaleqapp.com/loction_server/siro/ride/location';
|
||||
return 'https://jordan-tripz.tripzapp.com/loction_server/tripz/ride/location';
|
||||
default:
|
||||
return 'https://location-jordan.siromove.com/siro/ride/location';
|
||||
return 'https://location-jordan.tripzmove.com/tripz/ride/location';
|
||||
}
|
||||
}
|
||||
|
||||
static String get locationSocketUrl {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://location-syria.siromove.com';
|
||||
return 'https://location-syria.tripzmove.com';
|
||||
case 'Egypt':
|
||||
return 'https://location-egypt.siromove.com';
|
||||
return 'https://location-egypt.tripzmove.com';
|
||||
case 'Jordan':
|
||||
return 'https://jordan-siro.intaleqapp.com:2020';
|
||||
return 'https://jordan-tripz.tripzapp.com:2020';
|
||||
default:
|
||||
return 'https://jordan-siro.intaleqapp.com:2020';
|
||||
return 'https://jordan-tripz.tripzapp.com:2020';
|
||||
}
|
||||
}
|
||||
|
||||
static String get mapSaasRoute {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://map-syria.siromove.com/api/maps/route';
|
||||
return 'https://map-syria.tripzmove.com/api/maps/route';
|
||||
case 'Egypt':
|
||||
return 'https://map-egypt.siromove.com/api/maps/route';
|
||||
return 'https://map-egypt.tripzmove.com/api/maps/route';
|
||||
case 'Jordan':
|
||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
||||
return 'https://map-saas.tripzapp.com/api/maps/route';
|
||||
default:
|
||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
||||
return 'https://map-saas.tripzapp.com/api/maps/route';
|
||||
}
|
||||
}
|
||||
|
||||
static String get mapSaasPlaces {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://map-syria.siromove.com/api/geocoding/places';
|
||||
return 'https://map-syria.tripzmove.com/api/geocoding/places';
|
||||
case 'Egypt':
|
||||
return 'https://map-egypt.siromove.com/api/geocoding/places';
|
||||
return 'https://map-egypt.tripzmove.com/api/geocoding/places';
|
||||
case 'Jordan':
|
||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
||||
return 'https://map-saas.tripzapp.com/api/geocoding/places';
|
||||
default:
|
||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
||||
return 'https://map-saas.tripzapp.com/api/geocoding/places';
|
||||
}
|
||||
}
|
||||
|
||||
static String get routeApiBaseUrl {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return "https://routes-syria.siromove.com/route/v1/driving";
|
||||
return "https://routes-syria.tripzmove.com/route/v1/driving";
|
||||
case 'Egypt':
|
||||
return "https://routes-egypt.siromove.com/route/v1/driving";
|
||||
return "https://routes-egypt.tripzmove.com/route/v1/driving";
|
||||
case 'Jordan':
|
||||
return "https://routesjo.intaleq.xyz/route/v1/driving";
|
||||
return "https://routesjo.tripz.xyz/route/v1/driving";
|
||||
default:
|
||||
return "https://routes.siromove.com/route/v1/driving";
|
||||
return "https://routes.tripzmove.com/route/v1/driving";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,35 +113,35 @@ class AppLink {
|
||||
static String get endPoint {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://api-syria.siromove.com/siro';
|
||||
return 'https://api-syria.tripzmove.com/tripz';
|
||||
case 'Egypt':
|
||||
return 'https://api-egypt.siromove.com/siro';
|
||||
return 'https://api-egypt.tripzmove.com/tripz';
|
||||
case 'Jordan':
|
||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
||||
return 'https://jordan-tripz.tripzapp.com/backend';
|
||||
default:
|
||||
return 'https://api.siromove.com/siro';
|
||||
return 'https://api.tripzmove.com/tripz';
|
||||
}
|
||||
}
|
||||
|
||||
static String get syria => 'https://api-syria.siromove.com/siro';
|
||||
static String get syria => 'https://api-syria.tripzmove.com/tripz';
|
||||
static String get server => endPoint;
|
||||
|
||||
///=================ride==========================///
|
||||
///https://jordan-siro.intaleqapp.com/backend
|
||||
///https://jordan-tripz.tripzapp.com/backend
|
||||
static String get ride => '$server/ride';
|
||||
|
||||
/// this ride server is for socket communication not for rest api calls
|
||||
/// https://rides.intaleq.xyz/intaleq
|
||||
/// https://rides.tripz.xyz/tripz
|
||||
static String get rideServer {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://ride-syria.siromove.com/siro/ride';
|
||||
return 'https://ride-syria.tripzmove.com/tripz/ride';
|
||||
case 'Egypt':
|
||||
return 'https://ride-egypt.siromove.com/siro/ride';
|
||||
return 'https://ride-egypt.tripzmove.com/tripz/ride';
|
||||
case 'Jordan':
|
||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
||||
return 'https://jordan-tripz.tripzapp.com/backend';
|
||||
default:
|
||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
||||
return 'https://jordan-tripz.tripzapp.com/backend';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,17 +151,17 @@ class AppLink {
|
||||
static String get getPredictiveDemand =>
|
||||
"$server/api/demand/getPredictiveDemandZones.php";
|
||||
|
||||
///mapOSM = 'https://routesy.intaleq.xyz'
|
||||
///mapOSM = 'https://routesy.tripz.xyz'
|
||||
static String get mapOSM {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://routes-syria.siromove.com';
|
||||
return 'https://routes-syria.tripzmove.com';
|
||||
case 'Egypt':
|
||||
return 'https://routes-egypt.siromove.com';
|
||||
return 'https://routes-egypt.tripzmove.com';
|
||||
case 'Jordan':
|
||||
return 'https://routesjo.intaleq.xyz';
|
||||
return 'https://routesjo.tripz.xyz';
|
||||
default:
|
||||
return 'https://routes.siromove.com';
|
||||
return 'https://routes.tripzmove.com';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -396,13 +396,13 @@ class AppLink {
|
||||
static String get reverseGeocoding {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://map-syria.siromove.com/api/geocoding/reverse';
|
||||
return 'https://map-syria.tripzmove.com/api/geocoding/reverse';
|
||||
case 'Egypt':
|
||||
return 'https://map-egypt.siromove.com/api/geocoding/reverse';
|
||||
return 'https://map-egypt.tripzmove.com/api/geocoding/reverse';
|
||||
case 'Jordan':
|
||||
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
||||
return 'https://map-saas.tripzapp.com/api/geocoding/reverse';
|
||||
default:
|
||||
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
||||
return 'https://map-saas.tripzapp.com/api/geocoding/reverse';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user