From 238dc9eaccb7001cab49f7d01461972afc456db0 Mon Sep 17 00:00:00 2001
From: Rahul Dev Garg <34365102+rahuldevgarg@users.noreply.github.com>
Date: Thu, 25 Jan 2024 13:04:22 +0530
Subject: [PATCH] iOS crash Fix
---
.../ios/Flutter/AppFrameworkInfo.plist | 2 +-
frontend/mgramseva/ios/Podfile | 2 +-
frontend/mgramseva/ios/Podfile.lock | 38 +++++--------------
frontend/mgramseva/ios/Runner/Info.plist | 18 +++++----
4 files changed, 23 insertions(+), 37 deletions(-)
diff --git a/frontend/mgramseva/ios/Flutter/AppFrameworkInfo.plist b/frontend/mgramseva/ios/Flutter/AppFrameworkInfo.plist
index 9625e105d..7c5696400 100644
--- a/frontend/mgramseva/ios/Flutter/AppFrameworkInfo.plist
+++ b/frontend/mgramseva/ios/Flutter/AppFrameworkInfo.plist
@@ -21,6 +21,6 @@
CFBundleVersion
1.0
MinimumOSVersion
- 11.0
+ 12.0
diff --git a/frontend/mgramseva/ios/Podfile b/frontend/mgramseva/ios/Podfile
index 88359b225..279576f38 100644
--- a/frontend/mgramseva/ios/Podfile
+++ b/frontend/mgramseva/ios/Podfile
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
-# platform :ios, '11.0'
+# platform :ios, '12.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
diff --git a/frontend/mgramseva/ios/Podfile.lock b/frontend/mgramseva/ios/Podfile.lock
index fdae7fc54..a0f958e6a 100644
--- a/frontend/mgramseva/ios/Podfile.lock
+++ b/frontend/mgramseva/ios/Podfile.lock
@@ -1,6 +1,4 @@
PODS:
- - charset_converter (0.0.1):
- - Flutter
- DKImagePickerController/Core (4.3.4):
- DKImagePickerController/ImageDataManager
- DKImagePickerController/Resource
@@ -81,9 +79,9 @@ PODS:
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.12)
- GoogleUtilities/Logger (~> 7.12)
- - FirebaseCoreInternal (10.18.0):
+ - FirebaseCoreInternal (10.20.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- - FirebaseInstallations (10.18.0):
+ - FirebaseInstallations (10.20.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
@@ -148,8 +146,6 @@ PODS:
- nanopb/encode (= 2.30909.1)
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- - network_info_plus (0.0.1):
- - Flutter
- open_filex (0.0.2):
- Flutter
- package_info_plus (0.4.5):
@@ -164,17 +160,14 @@ PODS:
- printing (1.0.0):
- Flutter
- PromisesObjC (2.3.1)
- - SDWebImage (5.18.5):
- - SDWebImage/Core (= 5.18.5)
- - SDWebImage/Core (5.18.5)
+ - SDWebImage (5.18.10):
+ - SDWebImage/Core (= 5.18.10)
+ - SDWebImage/Core (5.18.10)
- SwiftyGif (5.4.4)
- - thermal_printer (1.0.0):
- - Flutter
- url_launcher_ios (0.0.1):
- Flutter
DEPENDENCIES:
- - charset_converter (from `.symlinks/plugins/charset_converter/ios`)
- file_picker (from `.symlinks/plugins/file_picker/ios`)
- firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`)
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
@@ -185,14 +178,12 @@ DEPENDENCIES:
- flutter_share_me (from `.symlinks/plugins/flutter_share_me/ios`)
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
- integration_test (from `.symlinks/plugins/integration_test/ios`)
- - network_info_plus (from `.symlinks/plugins/network_info_plus/ios`)
- open_filex (from `.symlinks/plugins/open_filex/ios`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
- print_bluetooth_thermal (from `.symlinks/plugins/print_bluetooth_thermal/ios`)
- printing (from `.symlinks/plugins/printing/ios`)
- - thermal_printer (from `.symlinks/plugins/thermal_printer/ios`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
SPEC REPOS:
@@ -217,8 +208,6 @@ SPEC REPOS:
- SwiftyGif
EXTERNAL SOURCES:
- charset_converter:
- :path: ".symlinks/plugins/charset_converter/ios"
file_picker:
:path: ".symlinks/plugins/file_picker/ios"
firebase_analytics:
@@ -239,8 +228,6 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/image_picker_ios/ios"
integration_test:
:path: ".symlinks/plugins/integration_test/ios"
- network_info_plus:
- :path: ".symlinks/plugins/network_info_plus/ios"
open_filex:
:path: ".symlinks/plugins/open_filex/ios"
package_info_plus:
@@ -253,13 +240,10 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/print_bluetooth_thermal/ios"
printing:
:path: ".symlinks/plugins/printing/ios"
- thermal_printer:
- :path: ".symlinks/plugins/thermal_printer/ios"
url_launcher_ios:
:path: ".symlinks/plugins/url_launcher_ios/ios"
SPEC CHECKSUMS:
- charset_converter: 215c7b04932ec2b9ba43be96a9bc34afed3e5322
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
FBAEMKit: d00064597439e75885c70d9adbcb5f3e9ad84f5d
@@ -273,9 +257,9 @@ SPEC CHECKSUMS:
firebase_core: 29d66baf806970cda37c93621b27cd369b27db1b
FirebaseAnalytics: 4d310b35c48eaa4a058ddc04bdca6bdb5dc0fe80
FirebaseCore: 2322423314d92f946219c8791674d2f3345b598f
- FirebaseCoreInternal: 8eb002e564b533bdcf1ba011f33f2b5c10e2ed4a
- FirebaseInstallations: e842042ec6ac1fd2e37d7706363ebe7f662afea4
- Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
+ FirebaseCoreInternal: efeeb171ac02d623bdaefe121539939821e10811
+ FirebaseInstallations: 558b1da7d65afeb996fd5c814332f013234ece4e
+ Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_downloader: b7301ae057deadd4b1650dc7c05375f10ff12c39
flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
@@ -285,7 +269,6 @@ SPEC CHECKSUMS:
image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
integration_test: 13825b8a9334a850581300559b8839134b124670
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
- network_info_plus: 6d0c3eb8367b8164fa3fb0c19875e3f59d49697f
open_filex: 6e26e659846ec990262224a12ef1c528bb4edbe4
package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
@@ -293,11 +276,10 @@ SPEC CHECKSUMS:
print_bluetooth_thermal: 54a9ba9436479dd633d18f393669ee793ee498fa
printing: 233e1b73bd1f4a05615548e9b5a324c98588640b
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
- SDWebImage: 7ac2b7ddc5e8484c79aa90fc4e30b149d6a2c88f
+ SDWebImage: fc8f2d48bbfd72ef39d70e981bd24a3f3be53fec
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
- thermal_printer: 1885c43c3f17b912ca2c29e7f44822dddc2c24b9
url_launcher_ios: bf5ce03e0e2088bad9cc378ea97fa0ed5b49673b
-PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
+PODFILE CHECKSUM: c4c93c5f6502fe2754f48404d3594bf779584011
COCOAPODS: 1.14.3
diff --git a/frontend/mgramseva/ios/Runner/Info.plist b/frontend/mgramseva/ios/Runner/Info.plist
index 6626f1e49..9e02ce1c3 100644
--- a/frontend/mgramseva/ios/Runner/Info.plist
+++ b/frontend/mgramseva/ios/Runner/Info.plist
@@ -2,12 +2,16 @@
+ FLTEnableImpeller
+
+ CADisableMinimumFrameDurationOnPhone
+
CFBundleDevelopmentRegion
$(DEVELOPMENT_LANGUAGE)
CFBundleExecutable
$(EXECUTABLE_NAME)
CFBundleIdentifier
- com.dwss.mgramseva
+ $(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion
6.0
CFBundleName
@@ -37,14 +41,18 @@
NSAppleMusicUsageDescription
Explain why your app uses music
+ NSBluetoothPeripheralUsageDescription
+ We require Bluetooth permission to connect to Thermal Printers.
NSCameraUsageDescription
This app requires access to the camera to enable you to upload expense bills.
NSMicrophoneUsageDescription
This app does not require access to the microphone.
- NSBluetoothPeripheralUsageDescription
- We require Bluetooth permission to connect to Thermal Printers.
NSPhotoLibraryUsageDescription
Explain why your app uses photo library
+ NSBluetoothAlwaysUsageDescription
+ We need Bluetooth permission to enable you to use the thermal printer.
+ UIApplicationSupportsIndirectInputEvents
+
UIBackgroundModes
fetch
@@ -71,9 +79,5 @@
UIViewControllerBasedStatusBarAppearance
- CADisableMinimumFrameDurationOnPhone
-
- UIApplicationSupportsIndirectInputEvents
-