flutter_flavorizr
flutter_flavorizr copied to clipboard
Custom iOS plist file names
The utility currently is only compatible with projects that use the default Info.plist file name. This PR allows the user to specify a custom list of plist files or specify an individual custom plist using the INFOPLIST_FILE build setting:
flavorizr:
app:
android:
ios:
iOSPListFiles:
- "ios/Runner/Info-Debug.plist"
- "ios/Runner/Info-Profile.plist"
- "ios/Runner/Info-Release.plist"
or
flavorizr:
app:
android:
ios:
buildSettings:
INFOPLIST_FILE: "ios/Runner/Info-Debug.plist"
This would be big!
any update?
This would be a nice feature. Hoping it would rollout soon.
I have the same needs!
Hey @rickcasson . What's the purpose of having multiple Info.plist files instead of using variables?
Hi @AngeloAvv, it became necessary to separate the Debug and Release Info.plist files to properly debug and hot reload on iOS14+. Here is the official Flutter documentation: https://docs.flutter.dev/add-to-app/ios/project-setup#local-network-privacy-permissions
Hey @rickcasson . What's the purpose of having multiple Info.plist files instead of using variables?
Hi @AngeloAvv, I'm not sure we can use variables in this case:
And as @rickcasson pointed out, we need to define separate plist files for different targets over the same flavor.
Hey @rickcasson , are you still interested in developing this feature? I have some suggestions for you
Hi @AngeloAvv, I'm no longer working on the project that needed this, but would still be happy to make any necessary changes so others can use this