chore(flutter): generate CocoaPods files for restaurant_finder macOS client#1589
chore(flutter): generate CocoaPods files for restaurant_finder macOS client#1589jacobsimionato wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds CocoaPods configuration for the macOS target of the Flutter restaurant finder sample app, introducing a new Podfile and updating the debug and release xcconfig files. The reviewer recommends running pod install and committing the resulting Podfile.lock to ensure consistent dependency versions across development and CI environments.
| @@ -0,0 +1,42 @@ | |||
| platform :osx, '10.15' | |||
There was a problem hiding this comment.
Since you are checking in the Podfile for the macOS target, it is highly recommended to also run pod install and commit the resulting Podfile.lock file. Tracking Podfile.lock ensures that all developers and CI environments build with the exact same dependency versions, preventing 'works on my machine' issues and unexpected build failures due to upstream updates.
b587b59 to
8e4b5c0
Compare
Description
This PR checks in the auto-generated CocoaPods files (
Podfileand related.xcconfigconfigurations) for therestaurant_finderFlutter application's macOS build target.Rationale
When running
scripts/fix_format.sh, the script executesflutter pub getin the Flutter/Dart workspace. On macOS (darwin), this automatically bootstraps and generates the standard CocoaPods configuration files (Podfile,Flutter-Debug.xcconfig,Flutter-Release.xcconfig) for therestaurant_finder/appmacOS target. Checking these generated files into the repository ensures that developers building the macOS target have a pre-configured CocoaPods environment and that formatting/getting dependencies remains consistent and clean across all environments.Description of Changes
samples/client/flutter/restaurant_finder/app/macos/Podfile: Added the standard CocoaPods platform setup and runner targets for the macOS application.samples/client/flutter/restaurant_finder/app/macos/Flutter/Flutter-Debug.xcconfig: Appended the target support configuration file include for Pods in Debug mode.samples/client/flutter/restaurant_finder/app/macos/Flutter/Flutter-Release.xcconfig: Appended the target support configuration file include for Pods in Release mode.Testing/Running Instructions
To test or verify these changes locally on a macOS machine:
cd samples/client/flutter/restaurant_finder/app flutter build macosPre-launch Checklist