This commit is contained in:
Hamza-Ayed
2024-07-01 12:51:26 +03:00
parent 475ba12cde
commit d9305b771f
3 changed files with 6 additions and 6 deletions

View File

@@ -55,8 +55,8 @@ android {
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 33 targetSdkVersion 33
versionCode 44 versionCode 45
versionName '1.5.44' versionName '1.5.45'
// manifestPlaceholders = [mapsApiKey: 'android/app/src/main/AndroidManifest.xml'] // manifestPlaceholders = [mapsApiKey: 'android/app/src/main/AndroidManifest.xml']
} }

View File

@@ -21,7 +21,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>41</string> <string>43</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
@@ -36,7 +36,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>4.0.41</string> <string>4.0.43</string>
<key>FirebaseAppDelegateProxyEnabled</key> <key>FirebaseAppDelegateProxyEnabled</key>
<string>NO</string> <string>NO</string>
<key>GMSApiKey</key> <key>GMSApiKey</key>

View File

@@ -40,14 +40,14 @@ class AI extends GetxController {
// Get the inspection date from the response // Get the inspection date from the response
final inspectionDate = responseIdCardDriverEgyptBack['inspection_date']; final inspectionDate = responseIdCardDriverEgyptBack['inspection_date'];
final year = int.parse(inspectionDate.split('-')[0]);
// Try parsing the tax expiry date. If it fails, set it to null. // Try parsing the tax expiry date. If it fails, set it to null.
final taxExpiryDateTime = DateTime.tryParse(taxExpiryDate ?? ''); final taxExpiryDateTime = DateTime.tryParse(taxExpiryDate ?? '');
final isExpiredCar = final isExpiredCar =
taxExpiryDateTime != null && taxExpiryDateTime.isBefore(today); taxExpiryDateTime != null && taxExpiryDateTime.isBefore(today);
// Check if the inspection date is before today // Check if the inspection date is before today
final inspectionDateTime = DateTime(int.parse(inspectionDate ?? ''), 1, 1); final inspectionDateTime = DateTime(year, 1, 1);
final isInspectionExpired = inspectionDateTime.isBefore(today); final isInspectionExpired = inspectionDateTime.isBefore(today);
if (isExpiredCar || isInspectionExpired) { if (isExpiredCar || isInspectionExpired) {