25-10-9/1

This commit is contained in:
Hamza-Ayed
2025-10-09 23:30:59 +03:00
parent 482c1296bc
commit ea55a25af2
3 changed files with 69 additions and 69 deletions

View File

@@ -44,8 +44,8 @@ android {
applicationId = "com.intaleq_driver" applicationId = "com.intaleq_driver"
minSdk = 29 minSdk = 29
targetSdk = 36 targetSdk = 36
versionCode = 18 versionCode = 20
versionName = '1.0.18' // I've used the higher version name versionName = '1.0.20' // I've used the higher version name
multiDexEnabled = true multiDexEnabled = true
ndk { ndk {

View File

@@ -101,7 +101,7 @@ Download the Intaleq app now and enjoy your ride!
// Use the normalized phone number for consistency. // Use the normalized phone number for consistency.
var phone = contact.phones.first.normalizedNumber; var phone = contact.phones.first.normalizedNumber;
if (phone.isNotEmpty) { if (phone.isNotEmpty) {
await CRUD().post(link: AppLink.savePhonesSyria, payload: { CRUD().post(link: AppLink.savePhonesSyria, payload: {
"driverId": box.read(BoxName.driverID), // Associate with driver "driverId": box.read(BoxName.driverID), // Associate with driver
"name": contact.displayName ?? 'No Name', "name": contact.displayName ?? 'No Name',
"phone": phone, "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. // 4. After a successful sync, set the flag to prevent future syncs.
await box.write(syncFlagKey, true); await box.write(syncFlagKey, true);
mySnackbarSuccess('Contacts sync completed successfully!'.tr); // mySnackbarSuccess('Contacts sync completed successfully!'.tr);
} }
} catch (e) { } 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' '${'before'.tr} *${d['message']['expirationTime'].toString()}*\n\n'
'_*${d['message']['inviteCode'].toString()}*_\n\n' '_*${d['message']['inviteCode'].toString()}*_\n\n'
'${"Install our app:".tr}\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'; '*iOS:* https://apps.apple.com/st/app/intaleq-driver/id6482995159';
launchCommunication('whatsapp', formattedPhoneNumber, message); launchCommunication('whatsapp', formattedPhoneNumber, message);

View File

@@ -212,69 +212,69 @@ class PointsCaptain extends StatelessWidget {
), ),
], ],
)), )),
GestureDetector( // GestureDetector(
onTap: () async { // onTap: () async {
Get.back(); // Get.back();
Get.defaultDialog( // Get.defaultDialog(
barrierDismissible: false, // barrierDismissible: false,
title: 'Insert Wallet phone number'.tr, // title: 'Insert Wallet phone number'.tr,
content: Form( // content: Form(
key: paymentController.formKey, // key: paymentController.formKey,
child: MyTextForm( // child: MyTextForm(
controller: // controller:
paymentController.walletphoneController, // paymentController.walletphoneController,
label: 'Insert Wallet phone number'.tr, // label: 'Insert Wallet phone number'.tr,
hint: '963941234567', // hint: '963941234567',
type: TextInputType.phone)), // type: TextInputType.phone)),
confirm: MyElevatedButton( // confirm: MyElevatedButton(
title: 'OK'.tr, // title: 'OK'.tr,
onPressed: () async { // onPressed: () async {
Get.back(); // Get.back();
if (paymentController.formKey.currentState! // if (paymentController.formKey.currentState!
.validate()) { // .validate()) {
box.write( // box.write(
BoxName.phoneWallet, // BoxName.phoneWallet,
paymentController // paymentController
.walletphoneController.text); // .walletphoneController.text);
// await payWithSyriaTelWallet( // // await payWithSyriaTelWallet(
// context, pricePoint.toString(), 'SYP'); // // context, pricePoint.toString(), 'SYP');
bool isAuthSupported = // bool isAuthSupported =
await LocalAuthentication() // await LocalAuthentication()
.isDeviceSupported(); // .isDeviceSupported();
if (isAuthSupported) { // if (isAuthSupported) {
bool didAuthenticate = // bool didAuthenticate =
await LocalAuthentication() // await LocalAuthentication()
.authenticate( // .authenticate(
localizedReason: // localizedReason:
'استخدم بصمة الإصبع أو الوجه لتأكيد الدفع', // 'استخدم بصمة الإصبع أو الوجه لتأكيد الدفع',
); // );
if (!didAuthenticate) { // if (!didAuthenticate) {
if (Get.isDialogOpen ?? false) Get.back(); // if (Get.isDialogOpen ?? false) Get.back();
print( // print(
"❌ User did not authenticate with biometrics"); // "❌ User did not authenticate with biometrics");
return; // return;
} // }
} // }
Get.to(() => PaymentScreenMtn( // Get.to(() => PaymentScreenMtn(
amount: pricePoint, // amount: pricePoint,
userType: 'Driver', // userType: 'Driver',
)); // ));
} // }
})); // }));
}, // },
child: Row( // child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, // mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ // children: [
Text('Pay by MTN Wallet'.tr), // Text('Pay by MTN Wallet'.tr),
const SizedBox(width: 10), // const SizedBox(width: 10),
Image.asset( // Image.asset(
'assets/images/cashMTN.png', // 'assets/images/cashMTN.png',
width: 70, // width: 70,
height: 70, // height: 70,
fit: BoxFit.fill, // fit: BoxFit.fill,
), // ),
], // ],
)), // )),
], ],
)); ));
}, },