From cedb32904ef30f9d3bea911adc7830be4ef2bfb5 Mon Sep 17 00:00:00 2001 From: zarzet Date: Sat, 17 Jan 2026 05:20:04 +0700 Subject: [PATCH] fix(ios): add localization support for iOS build - Add flutter_localizations and intl to pubspec_ios.yaml - Add generate: true flag for l10n code generation - Add CFBundleLocalizations to Info.plist with all supported languages - Update http to ^1.6.0 and material_color_utilities to ^0.13.0 - Update file_picker to ^10.3.8 --- ios/Runner/Info.plist | 17 +++++++++++++++++ pubspec.yaml | 6 +++--- pubspec_ios.yaml | 12 +++++++++--- 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 9cbf231..8a9951c 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -4,6 +4,23 @@ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) + CFBundleLocalizations + + en + de + es + fr + hi + id + ja + ko + nl + pt + ru + zh + zh-Hans + zh-Hant + CFBundleDisplayName SpotiFLAC CFBundleExecutable diff --git a/pubspec.yaml b/pubspec.yaml index 6490596..d995951 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -27,7 +27,7 @@ dependencies: path_provider: ^2.1.5 # HTTP & Network - http: ^1.4.0 + http: ^1.6.0 dio: ^5.8.0 # UI Components @@ -37,13 +37,13 @@ dependencies: # Material Expressive 3 / Dynamic Color dynamic_color: ^1.7.0 - material_color_utilities: ^0.11.1 + material_color_utilities: ^0.13.0 # Permissions permission_handler: ^12.0.1 # File Picker - file_picker: ^10.3.0 + file_picker: ^10.3.8 # JSON Serialization json_annotation: ^4.9.0 diff --git a/pubspec_ios.yaml b/pubspec_ios.yaml index 9d369cc..ab2d5ee 100644 --- a/pubspec_ios.yaml +++ b/pubspec_ios.yaml @@ -10,6 +10,11 @@ dependencies: flutter: sdk: flutter + # Localization + flutter_localizations: + sdk: flutter + intl: any + # State Management flutter_riverpod: ^3.1.0 riverpod_annotation: ^4.0.0 @@ -22,7 +27,7 @@ dependencies: path_provider: ^2.1.5 # HTTP & Network - http: ^1.4.0 + http: ^1.6.0 dio: ^5.8.0 # UI Components @@ -32,13 +37,13 @@ dependencies: # Material Expressive 3 / Dynamic Color dynamic_color: ^1.7.0 - material_color_utilities: ^0.11.1 + material_color_utilities: ^0.13.0 # Permissions permission_handler: ^12.0.1 # File Picker - file_picker: ^10.3.0 + file_picker: ^10.3.8 # JSON Serialization json_annotation: ^4.9.0 @@ -77,6 +82,7 @@ flutter_launcher_icons: flutter: uses-material-design: true + generate: true assets: - assets/images/