diff --git a/.env b/.env
index 7f10590..f58dabb 100644
--- a/.env
+++ b/.env
@@ -15,6 +15,10 @@ secretKey=zg_ropj_57Iiv6MFCBFq3C2n6IXlmjykpxDmW93SW3vvXh68UA9T5FORTWgWsT37StKsOP
stripe_publishableKe=vg_ropj_57Iiv6MFCBFq3C2n6kNJnZByV6nuDtXe9IjEPOfhmpDtWmt3MLR0gQpiHcQmAFMUPrZc3QiCDjxBZLbxDC3efxWxz33bWH1ZgrsXrXlBl
llamaKey=RR-EuyoFDUvfRDBj46fZKAtKJ3voM8Mt768cPeJV7GNdAkPTKdY8Odm9n4ggGqI5GyoXrXlBl
serverPHP=https://api.sefer.live/sefer
+seferAlexandriaServer=https://seferalexandria.site/sefer
+seferPaymentServer=https://seferpw.shop/sefer
+seferCairoServer=https://sefer.click/sefer
+seferGizaServer=https://sefergiza.site/sefer
cohere=Aulwd8y5SPWos0hJhG0toUf8gOhUUrpf5Q2TPmVGXrXlBl
claudeAiAPI=zg-qbc-qvo39-xWOxIGwWTOzCFBnIYSKKhfyz_KVAvrH-6_4ZEJL68G_QBH26oeTOMMoQug9KuOjjKSP_A4S3SUDlbxR9duVzoQ-MkX_UQQQXrXlBl
payPalClientId=QALymfNI5Tzt4s-ysoz6vD4_nqX0SUtkC_qYV-Ugk5gaM_8Z-kg4L53k8Uux_4jEWXDkNpXGSWPpIzDFXrXlBl
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 291639d..8873286 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -54,22 +54,12 @@ android {
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdk = 23
targetSdk = flutter.targetSdkVersion
- versionCode = 68
- versionName = '1.5.68'
+ versionCode = 77
+ versionName = '1.5.77'
multiDexEnabled =true
}
-// defaultConfig {
-// // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
-// applicationId ="com.sefer_driver"
-// // You can update the following values to match your application needs.
-// // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
-// minSdkVersion= 23
-// targetSdk= 34
-// versionCode= 63
-// versionName ='1.5.63'
-// // manifestPlaceholders = [mapsApiKey: 'android/app/src/main/AndroidManifest.xml']
-// }
+
signingConfigs {
release {
diff --git a/android/app/google-services.json b/android/app/google-services.json
index 2009fef..55da396 100644
--- a/android/app/google-services.json
+++ b/android/app/google-services.json
@@ -93,14 +93,6 @@
"certificate_hash": "9bf3876c66e490f30cd7982fa972d8e52e0edbb6"
}
},
- {
- "client_id": "594687661098-4f8qbb4r223su1pphor33l3oe0ie2v46.apps.googleusercontent.com",
- "client_type": 1,
- "android_info": {
- "package_name": "com.mobileapp.store.ride",
- "certificate_hash": "765bbb7c5d30bc58a7ba44372db614d6bbe6e34d"
- }
- },
{
"client_id": "594687661098-2u640akrb3k7sak5t0nqki6f4v6hq1bq.apps.googleusercontent.com",
"client_type": 3
@@ -173,14 +165,6 @@
}
},
"oauth_client": [
- {
- "client_id": "594687661098-7mj1ngkp5aodosos3gsr4252qfemuvan.apps.googleusercontent.com",
- "client_type": 1,
- "android_info": {
- "package_name": "com.sefer_driver",
- "certificate_hash": "765bbb7c5d30bc58a7ba44372db614d6bbe6e34d"
- }
- },
{
"client_id": "594687661098-op7a9cpgm9dilgh8nl48bu6aor55f7qj.apps.googleusercontent.com",
"client_type": 1,
diff --git a/firebase.json b/firebase.json
index 4f7fa9b..3a6505c 100644
--- a/firebase.json
+++ b/firebase.json
@@ -1 +1 @@
-{"functions":[{"source":"functions","codebase":"default","ignore":["node_modules",".git","firebase-debug.log","firebase-debug.*.log"],"predeploy":["npm --prefix \"$RESOURCE_DIR\" run lint"]}],"flutter":{"platforms":{"android":{"default":{"projectId":"ride-b1bd8","appId":"1:594687661098:android:b7ce96c17eb928ca595f53","fileOutput":"android/app/google-services.json"}},"ios":{"default":{"projectId":"ride-b1bd8","appId":"1:594687661098:ios:4f236057ba0383b0595f53","uploadDebugSymbols":false,"fileOutput":"ios/Runner/GoogleService-Info.plist"}},"dart":{"lib/firebase_options.dart":{"projectId":"ride-b1bd8","configurations":{"android":"1:594687661098:android:b7ce96c17eb928ca595f53","ios":"1:594687661098:ios:4f236057ba0383b0595f53","macos":"1:594687661098:ios:6f69eee1449be943595f53","web":"1:594687661098:web:62d8388476ec91ec595f53","windows":"1:594687661098:web:d9f43a2091395d87595f53"}}},"macos":{"default":{"projectId":"ride-b1bd8","appId":"1:594687661098:ios:6f69eee1449be943595f53","uploadDebugSymbols":false,"fileOutput":"macos/Runner/GoogleService-Info.plist"}}}}}
\ No newline at end of file
+{"functions":[{"source":"functions","codebase":"default","ignore":["node_modules",".git","firebase-debug.log","firebase-debug.*.log"],"predeploy":["npm --prefix \"$RESOURCE_DIR\" run lint"]}],"flutter":{"platforms":{"android":{"default":{"projectId":"ride-b1bd8","appId":"1:594687661098:android:46557bd4f534b5bb595f53","fileOutput":"android/app/google-services.json"}},"ios":{"default":{"projectId":"ride-b1bd8","appId":"1:594687661098:ios:4f236057ba0383b0595f53","uploadDebugSymbols":false,"fileOutput":"ios/Runner/GoogleService-Info.plist"}},"dart":{"lib/firebase_options.dart":{"projectId":"ride-b1bd8","configurations":{"android":"1:594687661098:android:46557bd4f534b5bb595f53","ios":"1:594687661098:ios:4f236057ba0383b0595f53","macos":"1:594687661098:ios:6f69eee1449be943595f53","web":"1:594687661098:web:62d8388476ec91ec595f53","windows":"1:594687661098:web:d9f43a2091395d87595f53"}}},"macos":{"default":{"projectId":"ride-b1bd8","appId":"1:594687661098:ios:6f69eee1449be943595f53","uploadDebugSymbols":false,"fileOutput":"macos/Runner/GoogleService-Info.plist"}}}}}
\ No newline at end of file
diff --git a/firepit-log.txt b/firepit-log.txt
new file mode 100644
index 0000000..bd8ecc1
--- /dev/null
+++ b/firepit-log.txt
@@ -0,0 +1,24 @@
+Welcome to firepit v1.1.0!
+Doing JSON parses for version checks at /snapshot/firepit/vendor/node_modules/firebase-tools/package.json
+is-ci,jsdoc,mime,rc,rimraf,yaml,abbrev,abort-controller,accepts,acorn,acorn-jsx,agent-base,aggregate-error,ajv,ajv-formats,ansi-align,ansi-escapes,ansi-regex,ansi-styles,ansicolors,anymatch,archiver,archiver-utils,argparse,array-flatten,arrify,as-array,ast-types,async,async-lock,asynckit,balanced-match,base64-js,basic-auth,basic-auth-connect,basic-ftp,bignumber.js,binary-extensions,bl,bluebird,body-parser,boxen,brace-expansion,braces,buffer,buffer-crc32,buffer-equal-constant-time,bytes,cacache,call-bind,call-me-maybe,camelcase,cardinal,catharsis,chalk,chardet,chokidar,chownr,ci-info,cjson,clean-stack,cli-boxes,cli-cursor,cli-spinners,cli-table,cli-table3,cli-width,cliui,clone,color,color-convert,color-name,color-string,colorette,colors,colorspace,combined-stream,commander,compress-commons,compressible,compression,concat-map,config-chain,configstore,connect,content-disposition,content-type,cookie,cookie-signature,core-util-is,cors,crc-32,crc32-stream,cross-env,cross-spawn,crypto-random-string,csv-parse,data-uri-to-buffer,debug,deep-equal-in-any-order,deep-extend,deep-freeze,deep-is,defaults,define-data-property,degenerator,delayed-stream,depd,destroy,discontinuous-range,dot-prop,duplexify,eastasianwidth,ecdsa-sig-formatter,ee-first,emoji-regex,enabled,encodeurl,encoding,end-of-stream,entities,env-paths,err-code,es-define-property,es-errors,escalade,escape-goat,escape-html,escape-string-regexp,escodegen,eslint-visitor-keys,espree,esprima,estraverse,esutils,etag,event-target-shim,events-listener,exegesis,exegesis-express,exponential-backoff,express,extend,external-editor,fast-deep-equal,fast-json-stable-stringify,fast-levenshtein,fast-text-encoding,fast-url-parser,fecha,figures,filesize,fill-range,finalhandler,firebase-tools,fn.name,foreground-child,form-data,forwarded,fresh,fs-constants,fs-extra,fs-minipass,fs.realpath,function-bind,fuzzy,gaxios,gcp-metadata,get-caller-file,get-intrinsic,get-stdin,get-uri,glob,glob-parent,glob-slash,glob-slasher,global-dirs,google-auth-library,google-gax,google-p12-pem,googleapis-common,gopd,graceful-fs,gtoken,has-flag,has-property-descriptors,has-proto,has-symbols,has-yarn,hasown,heap-js,http-cache-semantics,http-errors,http-proxy-agent,https-proxy-agent,iconv-lite,ieee754,import-lazy,imurmurhash,indent-string,inflight,inherits,ini,inquirer,inquirer-autocomplete-prompt,install-artifact-from-github,ip-address,ip-regex,ipaddr.js,is-arrayish,is-binary-path,is-extglob,is-fullwidth-code-point,is-glob,is-installed-globally,is-interactive,is-lambda,is-npm,is-number,is-obj,is-path-inside,is-stream,is-stream-ended,is-typedarray,is-unicode-supported,is-url,is-wsl,is-yarn-global,is2,isarray,isexe,isomorphic-fetch,jackspeak,jju,join-path,js-yaml,js2xmlparser,jsbn,json-bigint,json-parse-helpfulerror,json-ptr,json-schema-traverse,jsonfile,jsonwebtoken,jwa,jws,klaw,kuler,lazystream,leven,levn,libsodium,libsodium-wrappers,linkify-it,lodash,lodash._objecttypes,lodash.camelcase,lodash.defaults,lodash.difference,lodash.flatten,lodash.includes,lodash.isboolean,lodash.isinteger,lodash.isnumber,lodash.isobject,lodash.isplainobject,lodash.isstring,lodash.mapvalues,lodash.once,lodash.snakecase,lodash.union,log-symbols,logform,long,lru-cache,make-dir,make-fetch-happen,markdown-it,markdown-it-anchor,marked,marked-terminal,mdurl,media-typer,merge-descriptors,methods,mime-db,mime-types,mimic-fn,minimatch,minimist,minipass,minipass-collect,minipass-fetch,minipass-flush,minipass-pipeline,minipass-sized,minizlib,mkdirp,moo,morgan,ms,mute-stream,nan,nearley,negotiator,netmask,nice-try,node-emoji,node-fetch,node-forge,node-gyp,nopt,normalize-path,object-assign,object-hash,object-inspect,on-finished,on-headers,once,one-time,onetime,open,openapi3-ts,optionator,ora,os-tmpdir,p-defer,p-limit,p-map,p-throttle,pac-proxy-agent,pac-resolver,parseurl,path-is-absolute,path-key,path-scurry,path-to-regexp,pg,pg-cloudflare,pg-connection-string,pg-int8,pg-pool,pg-protocol,pg-types,pgpass,picocolors,picomatch,portfinder,postgres-array,postgres-bytea,postgres-date,postgres-interval,prelude-ls,proc-log,process-nextick-args,progress,promise-breaker,promise-retry,proto-list,proto3-json-serializer,protobufjs,protobufjs-cli,proxy-addr,proxy-agent,proxy-from-env,pump,punycode,pupa,qs,railroad-diagrams,randexp,range-parser,raw-body,re2,readable-stream,readdir-glob,readdirp,redeyed,registry-auth-token,registry-url,require-directory,require-from-string,requizzle,restore-cursor,ret,retry,retry-request,router,run-async,rxjs,safe-buffer,safe-stable-stringify,safer-buffer,semver,semver-diff,send,serve-static,set-function-length,setprototypeof,shebang-command,shebang-regex,side-channel,signal-exit,simple-swizzle,smart-buffer,socks,socks-proxy-agent,sort-any,source-map,split2,sprintf-js,sql-formatter,ssri,stack-trace,statuses,stream-chain,stream-json,stream-shift,string-width,string-width-cjs,string_decoder,strip-ansi,strip-ansi-cjs,strip-json-comments,superstatic,supports-color,supports-hyperlinks,tar,tar-stream,tcp-port-used,text-hex,through,tmp,to-regex-range,toidentifier,toxic,tr46,triple-beam,tslib,type-check,type-fest,type-is,typedarray-to-buffer,uc.micro,uglify-js,underscore,undici-types,unique-filename,unique-slug,unique-string,universal-analytics,universalify,unpipe,update-notifier-cjs,uri-js,url-join,url-template,util-deprecate,utils-merge,uuid,valid-url,vary,wcwidth,webidl-conversions,whatwg-fetch,whatwg-url,which,widest-line,winston,winston-transport,word-wrap,wrap-ansi,wrap-ansi-cjs,wrappy,write-file-atomic,ws,xdg-basedir,xmlcreate,xtend,y18n,yallist,yargs,yargs-parser,yocto-queue,zip-stream,@apidevtools,@babel,@colors,@dabh,@google-cloud,@googleapis,@grpc,@isaacs,@jsdevtools,@jsdoc,@npmcli,@opentelemetry,@pkgjs,@pnpm,@protobufjs,@tootallnate,@types
+Installed ft@13.8.0 and packaged ft@13.8.0
+Checking for npm/bin/npm-cli install at /Users/hamzaaleghwairyeen/.cache/firebase/tools/lib/node_modules/npm/bin/npm-cli
+Checking for npm/bin/npm-cli install at /Users/hamzaaleghwairyeen/.cache/firebase/tools/node_modules/npm/bin/npm-cli
+Checking for npm/bin/npm-cli install at /snapshot/firepit/node_modules/npm/bin/npm-cli
+Found npm/bin/npm-cli install.
+Checking for npm/bin/npm-cli install at /Users/hamzaaleghwairyeen/.cache/firebase/tools/lib/node_modules/npm/bin/npm-cli
+Checking for npm/bin/npm-cli install at /Users/hamzaaleghwairyeen/.cache/firebase/tools/node_modules/npm/bin/npm-cli
+Checking for npm/bin/npm-cli install at /snapshot/firepit/node_modules/npm/bin/npm-cli
+Found npm/bin/npm-cli install.
+Runtime binaries created.
+/usr/local/bin/firebase
+/usr/local/bin/firebase,/snapshot/firepit/firepit.js,apps:sdkconfig,ios,1:594687661098:ios:4f236057ba0383b0595f53,--json
+Checking for npm/bin/npm-cli install at /Users/hamzaaleghwairyeen/.cache/firebase/tools/lib/node_modules/npm/bin/npm-cli
+Checking for npm/bin/npm-cli install at /Users/hamzaaleghwairyeen/.cache/firebase/tools/node_modules/npm/bin/npm-cli
+Checking for npm/bin/npm-cli install at /snapshot/firepit/node_modules/npm/bin/npm-cli
+Found npm/bin/npm-cli install.
+Checking for npm/bin/npm-cli install at /Users/hamzaaleghwairyeen/.cache/firebase/tools/lib/node_modules/npm/bin/npm-cli
+Checking for npm/bin/npm-cli install at /Users/hamzaaleghwairyeen/.cache/firebase/tools/node_modules/npm/bin/npm-cli
+Checking for npm/bin/npm-cli install at /snapshot/firepit/node_modules/npm/bin/npm-cli
+Found npm/bin/npm-cli install.
+ShellJSInternalError: ENOENT: no such file or directory, chmod '/Users/hamzaaleghwairyeen/.cache/firebase/runtime/npm.bat'
\ No newline at end of file
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 09237cf..7e708d0 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -33,7 +33,7 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 52
+ 56
CFBundleSignature
????
CFBundleURLTypes
@@ -48,7 +48,7 @@
CFBundleVersion
- 4.0.52
+ 4.0.56
FirebaseAppDelegateProxyEnabled
NO
GMSApiKey
diff --git a/lib/constant/box_name.dart b/lib/constant/box_name.dart
index d4331d9..e604d39 100644
--- a/lib/constant/box_name.dart
+++ b/lib/constant/box_name.dart
@@ -4,10 +4,12 @@ class BoxName {
static const String googlaMapApp = "googlaMapApp";
static const String lang = "lang";
+ static const String isvibrate = "isvibrate";
static const String myListString = "myListString";
static const String myList = "myList";
static const String bodyOrder = "bodyOrder";
static const String gender = "gender";
+ static const String IsSavedPhones = "IsSavedPhones";
static const String carType = "carType";
static const String isFirstTime = "isFirstTime";
static const String deviceInfo = "deviceInfo";
@@ -68,6 +70,7 @@ class BoxName {
static const String stripePublishableKey = 'stripe_publishableKe';
static const String apiKeyRun = 'apiKeyRun';
static const String serverAPI = 'serverAPI';
+ static const String serverChosen = 'serverChosen';
static const String secretKey = 'secretKey';
static const String basicAuthCredentials = 'basicAuthCredentials';
static const String mapAPIKEY = 'mapAPIKEY';
diff --git a/lib/constant/links.dart b/lib/constant/links.dart
index aa78f5d..0d19747 100644
--- a/lib/constant/links.dart
+++ b/lib/constant/links.dart
@@ -1,23 +1,39 @@
-import 'package:SEFER/constant/api_key.dart';
import 'package:SEFER/env/env.dart';
+import '../main.dart';
+import 'box_name.dart';
+
class AppLink {
- static final String server = Env.serverPHP;
+ static final String seferPaymentServer0 = Env.seferPaymentServer;
+ static final String seferPaymentServer = '${Env.seferCairoServer}/ride';
+ static final String seferAlexandriaServer = Env.seferAlexandriaServer;
+ static final String seferCairoServer = Env.seferCairoServer;
+ static final String seferGizaServer = Env.seferGizaServer;
+
+ static final String endPoint = box.read(BoxName.serverChosen);
+ static final String server = Env.seferCairoServer;
+ // static final String server = Env.serverPHP;
+
static String googleMapsLink = 'https://maps.googleapis.com/maps/api/';
static String llama = 'https://api.llama-api.com/chat/completions';
static String gemini =
'https://generativelanguage.googleapis.com/v1beta3/models/text-bison-001:generateText';
static String test = "$server/test.php";
- //===============firebase==========================
+ //===============contact==========================
+ static String savePhones = "$server/ride/egyptPhones/add.php";
+ static String getPhones = "$server/ride/egyptPhones/get.php";
+
+ ////===============firebase==========================
static String getTokens = "$server/ride/firebase/get.php";
+
static String getDriverToken = "$server/ride/firebase/getDriverToken.php";
static String addTokens = "$server/ride/firebase/add.php";
static String addTokensDriver = "$server/ride/firebase/addDriver.php";
//=======================Wallet===================
- static String wallet = '$server/ride/passengerWallet';
- static String walletDriver = '$server/ride/driverWallet';
+ static String wallet = '$seferPaymentServer/passengerWallet';
+ static String walletDriver = '$seferPaymentServer/driverWallet';
static String getAllPassengerTransaction =
"$wallet/getAllPassengerTransaction.php";
static String getWalletByPassenger = "$wallet/getWalletByPassenger.php";
@@ -49,10 +65,13 @@ class AppLink {
////=======================cancelRide===================
static String ride = '$server/ride';
static String addCancelRideFromPassenger = "$server/ride/cancelRide/add.php";
+ static String addCancelTripFromDriverAfterApplied =
+ "$server/ride/cancelRide/addCancelTripFromDriverAfterApplied.php";
static String cancelRide = "$server/ride/cancelRide/get.php";
//-----------------ridessss------------------
static String addRides = "$ride/rides/add.php";
static String getRides = "$ride/rides/get.php";
+ static String getTripCountByCaptain = "$ride/rides/getTripCountByCaptain.php";
static String getRideOrderID = "$ride/rides/getRideOrderID.php";
static String getRideStatus = "$ride/rides/getRideStatus.php";
static String getapiKey = "$ride/apiKey/get.php";
@@ -74,21 +93,26 @@ class AppLink {
static String addKazanPercent = "$ride/kazan/add.php";
////-----------------DriverPayment------------------
- static String addDrivePayment = "$ride/payment/add.php";
- static String updatePaymetToPaid = "$ride/payment/updatePaymetToPaid.php";
+ static String addDrivePayment = "$seferPaymentServer/payment/add.php";
+ static String updatePaymetToPaid =
+ "$seferPaymentServer/payment/updatePaymetToPaid.php";
- static String addSeferWallet = "$ride/seferWallet/add.php";
- static String getSeferWallet = "$ride/seferWallet/get.php";
- static String addDriverPaymentPoints = "$ride/driverPayment/add.php";
+ static String addSeferWallet = "$seferPaymentServer/seferWallet/add.php";
+ static String getSeferWallet = "$seferPaymentServer/seferWallet/get.php";
+ static String addDriverPaymentPoints =
+ "$seferPaymentServer/driverPayment/add.php";
static String addPaymentTokenDriver =
- "$ride/driverWallet/addPaymentToken.php"; //driverWallet/addPaymentToken.php
+ "$seferPaymentServer/driverWallet/addPaymentToken.php"; //driverWallet/addPaymentToken.php
static String addPaymentTokenPassenger =
- "$ride/passengerWallet/addPaymentTokenPassenger.php";
- static String getDriverPaymentPoints = "$ride/driverWallet/get.php";
- static String getDriverPaymentToday = "$ride/payment/get.php";
- static String getCountRide = "$ride/payment/getCountRide.php";
- static String getAllPaymentFromRide = "$ride/payment/getAllPayment.php";
- static String getAllPaymentVisa = "$ride/payment/getAllPaymentVisa.php";
+ "$seferPaymentServer/passengerWallet/addPaymentTokenPassenger.php";
+ static String getDriverPaymentPoints =
+ "$seferPaymentServer/driverWallet/get.php";
+ static String getDriverPaymentToday = "$seferPaymentServer/payment/get.php";
+ static String getCountRide = "$server/ride/payment/getCountRide.php";
+ static String getAllPaymentFromRide =
+ "$seferPaymentServer/payment/getAllPayment.php";
+ static String getAllPaymentVisa =
+ "$seferPaymentServer/payment/getAllPaymentVisa.php";
//-----------------Passenger NotificationCaptain------------------
static String addNotificationPassenger =
@@ -143,8 +167,9 @@ class AppLink {
static String updateLicense = "$ride/license/updateFeedBack.php";
//-----------------RegisrationCar------------------
static String addRegisrationCar = "$ride/RegisrationCar/add.php";
- static String getRegisrationCar = "$ride/RegisrationCar/get.php";
- static String updateRegisrationCar = "$ride/RegisrationCar/update.php";
+ static String getRegisrationCar = "$endPoint/ride/RegisrationCar/get.php";
+ static String updateRegisrationCar =
+ "$endPoint/ride/RegisrationCar/update.php";
//-----------------DriverOrder------------------
@@ -165,7 +190,8 @@ class AppLink {
static String sendEmailToPassengerForTripDetails =
"$ride/rides/emailToPassengerTripDetail.php";
static String sendEmailToDrivertransaction =
- "https://api.sefer.live/sefer/Admin/sendEmailToDrivertransaction.php";
+ "$seferPaymentServer0/Admin/sendEmailToDrivertransaction.php";
+ // "https://api.sefer.live/sefer/Admin/sendEmailToDrivertransaction.php";
// ===========================================
static String pathImage = "$server/upload/types/";
static String uploadImage = "$server/uploadImage.php";
@@ -180,11 +206,18 @@ class AppLink {
//==================certifcate==========
static String location = '$server/ride/location';
static String getCarsLocationByPassenger = "$location/get.php";
+ static String addpassengerLocation = "$location/addpassengerLocation.php";
+ static String getLatestLocationPassenger =
+ "$location/getLatestLocationPassenger.php";
static String getFemalDriverLocationByPassenger =
"$location/getFemalDriver.php";
static String getDriverCarsLocationToPassengerAfterApplied =
"$location/getDriverCarsLocationToPassengerAfterApplied.php";
static String addCarsLocationByPassenger = "$location/add.php";
+ static String addCarsLocationGizaEndpoint =
+ "https://sefergiza.site/archive%20(1)/add.php";
+ static String addCarsLocationAlexandriaEndpoint = "$location/add.php";
+ static String addCarsLocationCairoEndpoint = "$location/add.php";
static String deleteCarsLocationByPassenger = "$location/delete.php";
static String updateCarsLocationByPassenger = "$location/update.php";
static String getTotalDriverDuration = "$location/getTotalDriverDuration.php";
diff --git a/lib/controller/auth/captin/invit_controller.dart b/lib/controller/auth/captin/invit_controller.dart
index b02c2d7..96c956a 100644
--- a/lib/controller/auth/captin/invit_controller.dart
+++ b/lib/controller/auth/captin/invit_controller.dart
@@ -35,44 +35,64 @@ class InviteController extends GetxController {
var data = jsonDecode(response);
driverInvitationData = data['message'];
update();
- // print('driverInitationData: $driverInitationData');
}
- } catch (e) {
- print('Error fetching driver stats: $e');
+ } catch (e) {}
+ }
+
+ void selectPhone(String phone) {
+ if (box.read(BoxName.countryCode) == 'Egypt') {
+ invitePhoneController.text = phone;
+ update();
+ Get.back();
}
}
- Future pickContact() async {
+ Future saveContactsToServer() async {
+ try {
+ // TODO: Implement the actual server upload logic here
+ // Simulating a server request
+ await Future.delayed(Duration(seconds: 2));
+ Get.snackbar('Success'.tr,
+ '${selectedContacts.length} contacts saved to server'.tr);
+ } catch (e) {
+ Get.snackbar('Error'.tr,
+ 'An error occurred while saving contacts to server: $e'.tr);
+ }
+ }
+
+ List contacts = [];
+ List selectedContacts = [];
+ RxList