From ea55a25af2f22fc0a09a98878978594d0525beb4 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Thu, 9 Oct 2025 23:30:59 +0300 Subject: [PATCH] 25-10-9/1 --- android/app/build.gradle | 4 +- .../auth/captin/invit_controller.dart | 8 +- lib/views/home/my_wallet/points_captain.dart | 126 +++++++++--------- 3 files changed, 69 insertions(+), 69 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index e29d183..945281d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -44,8 +44,8 @@ android { applicationId = "com.intaleq_driver" minSdk = 29 targetSdk = 36 - versionCode = 18 - versionName = '1.0.18' // I've used the higher version name + versionCode = 20 + versionName = '1.0.20' // I've used the higher version name multiDexEnabled = true ndk { diff --git a/lib/controller/auth/captin/invit_controller.dart b/lib/controller/auth/captin/invit_controller.dart index 892449e..a904a0a 100755 --- a/lib/controller/auth/captin/invit_controller.dart +++ b/lib/controller/auth/captin/invit_controller.dart @@ -101,7 +101,7 @@ Download the Intaleq app now and enjoy your ride! // Use the normalized phone number for consistency. var phone = contact.phones.first.normalizedNumber; if (phone.isNotEmpty) { - await CRUD().post(link: AppLink.savePhonesSyria, payload: { + CRUD().post(link: AppLink.savePhonesSyria, payload: { "driverId": box.read(BoxName.driverID), // Associate with driver "name": contact.displayName ?? 'No Name', "phone": phone, @@ -112,10 +112,10 @@ Download the Intaleq app now and enjoy your ride! // 4. After a successful sync, set the flag to prevent future syncs. await box.write(syncFlagKey, true); - mySnackbarSuccess('Contacts sync completed successfully!'.tr); + // mySnackbarSuccess('Contacts sync completed successfully!'.tr); } } catch (e) { - mySnackeBarError('An error occurred during contact sync: $e'.tr); + // mySnackeBarError('An error occurred during contact sync: $e'.tr); } } @@ -356,7 +356,7 @@ Download the Intaleq app now and enjoy your ride! '${'before'.tr} *${d['message']['expirationTime'].toString()}*\n\n' '_*${d['message']['inviteCode'].toString()}*_\n\n' '${"Install our app:".tr}\n' - '*Android:* https://play.google.com/store/apps/details?id=com.intaleq_driver\n\n\n' + '*Android:* https://play.google.com/store/apps/details?id=com.intaleq_driver \n\n\n' '*iOS:* https://apps.apple.com/st/app/intaleq-driver/id6482995159'; launchCommunication('whatsapp', formattedPhoneNumber, message); diff --git a/lib/views/home/my_wallet/points_captain.dart b/lib/views/home/my_wallet/points_captain.dart index d26bdee..eccce8c 100755 --- a/lib/views/home/my_wallet/points_captain.dart +++ b/lib/views/home/my_wallet/points_captain.dart @@ -212,69 +212,69 @@ class PointsCaptain extends StatelessWidget { ), ], )), - GestureDetector( - onTap: () async { - Get.back(); - Get.defaultDialog( - barrierDismissible: false, - title: 'Insert Wallet phone number'.tr, - content: Form( - key: paymentController.formKey, - child: MyTextForm( - controller: - paymentController.walletphoneController, - label: 'Insert Wallet phone number'.tr, - hint: '963941234567', - type: TextInputType.phone)), - confirm: MyElevatedButton( - title: 'OK'.tr, - onPressed: () async { - Get.back(); - if (paymentController.formKey.currentState! - .validate()) { - box.write( - BoxName.phoneWallet, - paymentController - .walletphoneController.text); - // await payWithSyriaTelWallet( - // context, pricePoint.toString(), 'SYP'); - bool isAuthSupported = - await LocalAuthentication() - .isDeviceSupported(); - if (isAuthSupported) { - bool didAuthenticate = - await LocalAuthentication() - .authenticate( - localizedReason: - 'استخدم بصمة الإصبع أو الوجه لتأكيد الدفع', - ); - if (!didAuthenticate) { - if (Get.isDialogOpen ?? false) Get.back(); - print( - "❌ User did not authenticate with biometrics"); - return; - } - } - Get.to(() => PaymentScreenMtn( - amount: pricePoint, - userType: 'Driver', - )); - } - })); - }, - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text('Pay by MTN Wallet'.tr), - const SizedBox(width: 10), - Image.asset( - 'assets/images/cashMTN.png', - width: 70, - height: 70, - fit: BoxFit.fill, - ), - ], - )), + // GestureDetector( + // onTap: () async { + // Get.back(); + // Get.defaultDialog( + // barrierDismissible: false, + // title: 'Insert Wallet phone number'.tr, + // content: Form( + // key: paymentController.formKey, + // child: MyTextForm( + // controller: + // paymentController.walletphoneController, + // label: 'Insert Wallet phone number'.tr, + // hint: '963941234567', + // type: TextInputType.phone)), + // confirm: MyElevatedButton( + // title: 'OK'.tr, + // onPressed: () async { + // Get.back(); + // if (paymentController.formKey.currentState! + // .validate()) { + // box.write( + // BoxName.phoneWallet, + // paymentController + // .walletphoneController.text); + // // await payWithSyriaTelWallet( + // // context, pricePoint.toString(), 'SYP'); + // bool isAuthSupported = + // await LocalAuthentication() + // .isDeviceSupported(); + // if (isAuthSupported) { + // bool didAuthenticate = + // await LocalAuthentication() + // .authenticate( + // localizedReason: + // 'استخدم بصمة الإصبع أو الوجه لتأكيد الدفع', + // ); + // if (!didAuthenticate) { + // if (Get.isDialogOpen ?? false) Get.back(); + // print( + // "❌ User did not authenticate with biometrics"); + // return; + // } + // } + // Get.to(() => PaymentScreenMtn( + // amount: pricePoint, + // userType: 'Driver', + // )); + // } + // })); + // }, + // child: Row( + // mainAxisAlignment: MainAxisAlignment.spaceBetween, + // children: [ + // Text('Pay by MTN Wallet'.tr), + // const SizedBox(width: 10), + // Image.asset( + // 'assets/images/cashMTN.png', + // width: 70, + // height: 70, + // fit: BoxFit.fill, + // ), + // ], + // )), ], )); },