From 88269c40f8db50e0dee97a4ffabb88f38f807541 Mon Sep 17 00:00:00 2001 From: JulianAlcala Date: Mon, 16 Mar 2026 15:09:26 +0100 Subject: [PATCH] Add iOS privacy keys for staging/dev flavors, bump build to 4, hide SF Pay button --- apps/mobile_app/ios/Podfile.lock | 6 ++++ .../ios/Runner/Info-development.plist | 6 ++++ apps/mobile_app/ios/Runner/Info-staging.plist | 6 ++++ apps/mobile_app/pubspec.yaml | 2 +- .../presentation/control_panel_screen.dart | 32 ++++++++----------- 5 files changed, 33 insertions(+), 19 deletions(-) diff --git a/apps/mobile_app/ios/Podfile.lock b/apps/mobile_app/ios/Podfile.lock index 0af09927..a379860c 100644 --- a/apps/mobile_app/ios/Podfile.lock +++ b/apps/mobile_app/ios/Podfile.lock @@ -1,5 +1,7 @@ PODS: - Flutter (1.0.0) + - flutter_contacts (0.0.1): + - Flutter - flutter_native_splash (2.4.3): - Flutter - flutter_treezor_entrust_sdk_bridge (0.0.1): @@ -23,6 +25,7 @@ PODS: DEPENDENCIES: - Flutter (from `Flutter`) + - flutter_contacts (from `.symlinks/plugins/flutter_contacts/ios`) - flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`) - flutter_treezor_entrust_sdk_bridge (from `.symlinks/plugins/flutter_treezor_entrust_sdk_bridge/ios`) - mobile_scanner (from `.symlinks/plugins/mobile_scanner/darwin`) @@ -35,6 +38,8 @@ DEPENDENCIES: EXTERNAL SOURCES: Flutter: :path: Flutter + flutter_contacts: + :path: ".symlinks/plugins/flutter_contacts/ios" flutter_native_splash: :path: ".symlinks/plugins/flutter_native_splash/ios" flutter_treezor_entrust_sdk_bridge: @@ -54,6 +59,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467 + flutter_contacts: edb1c5ce76aa433e20e6cb14c615f4c0b66e0983 flutter_native_splash: df59bb2e1421aa0282cb2e95618af4dcb0c56c29 flutter_treezor_entrust_sdk_bridge: 4c2c94fb74ab57576e8d49f5f2a4b214e41141fe mobile_scanner: 77265f3dc8d580810e91849d4a0811a90467ed5e diff --git a/apps/mobile_app/ios/Runner/Info-development.plist b/apps/mobile_app/ios/Runner/Info-development.plist index 65947684..3c2616ba 100644 --- a/apps/mobile_app/ios/Runner/Info-development.plist +++ b/apps/mobile_app/ios/Runner/Info-development.plist @@ -47,8 +47,14 @@ UIStatusBarHidden + NSContactsUsageDescription + Necesitamos acceso a tus contactos para seleccionar números de teléfono. NSCameraUsageDescription Necesitamos la cámara para escanear códigos QR + NSLocationWhenInUseUsageDescription + Usamos tu ubicación para verificar la seguridad de las transacciones. + NSLocationAlwaysAndWhenInUseUsageDescription + Usamos tu ubicación para verificar la seguridad de las transacciones. UIViewControllerBasedStatusBarAppearance NSFaceIDUsageDescription diff --git a/apps/mobile_app/ios/Runner/Info-staging.plist b/apps/mobile_app/ios/Runner/Info-staging.plist index cdd4b644..6f8698ac 100644 --- a/apps/mobile_app/ios/Runner/Info-staging.plist +++ b/apps/mobile_app/ios/Runner/Info-staging.plist @@ -47,8 +47,14 @@ UIStatusBarHidden + NSContactsUsageDescription + Necesitamos acceso a tus contactos para seleccionar números de teléfono. NSCameraUsageDescription Necesitamos la cámara para escanear códigos QR + NSLocationWhenInUseUsageDescription + Usamos tu ubicación para verificar la seguridad de las transacciones. + NSLocationAlwaysAndWhenInUseUsageDescription + Usamos tu ubicación para verificar la seguridad de las transacciones. UIViewControllerBasedStatusBarAppearance NSFaceIDUsageDescription diff --git a/apps/mobile_app/pubspec.yaml b/apps/mobile_app/pubspec.yaml index 7cda24e1..0aeaa1f1 100644 --- a/apps/mobile_app/pubspec.yaml +++ b/apps/mobile_app/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.0+1 +version: 1.0.0+4 environment: sdk: ^3.9.2 diff --git a/modules/legacy/modules/control_panel/lib/src/features/control_panel/presentation/control_panel_screen.dart b/modules/legacy/modules/control_panel/lib/src/features/control_panel/presentation/control_panel_screen.dart index 6ee98036..dd246324 100644 --- a/modules/legacy/modules/control_panel/lib/src/features/control_panel/presentation/control_panel_screen.dart +++ b/modules/legacy/modules/control_panel/lib/src/features/control_panel/presentation/control_panel_screen.dart @@ -97,17 +97,13 @@ class _Header extends ConsumerWidget { width: SizeUtils.getByScreen(small: 130, big: 140), height: 32, child: CustomDropdown( - items: state.devices - .map( - (DeviceEntity device) { - final name = device.carrierName ?? ''; - return Text( - name.length > 10 ? '${name.substring(0, 10)}...' : name, - overflow: TextOverflow.ellipsis, - ); - }, - ) - .toList(), + items: state.devices.map((DeviceEntity device) { + final name = device.carrierName ?? ''; + return Text( + name.length > 10 ? '${name.substring(0, 10)}...' : name, + overflow: TextOverflow.ellipsis, + ); + }).toList(), values: state.devices, value: state.selectedDevice, onChanged: (device) { @@ -148,13 +144,13 @@ class _MenuSection extends ConsumerWidget { text: I18n.customerService, ), SizedBox(height: SizeUtils.getByScreen(small: 8, big: 7)), - _SectionButton( - onPressed: () { - navigationContract.pushTo(AppRoutes.dashboardHome); - }, - icon: SFIcons.payments, - text: I18n.sfPay, - ), + // _SectionButton( + // onPressed: () { + // navigationContract.pushTo(AppRoutes.dashboardHome); + // }, + // icon: SFIcons.payments, + // text: I18n.sfPay, + // ), SizedBox(height: SizeUtils.getByScreen(small: 8, big: 7)), _SectionButton( onPressed: () {