flutter_flavorizr icon indicating copy to clipboard operation
flutter_flavorizr copied to clipboard

Custom iOS plist file names

Open rickcasson opened this issue 3 years ago • 9 comments

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"

rickcasson avatar Jun 17 '22 04:06 rickcasson

This would be big!

h-unterp avatar Oct 31 '22 02:10 h-unterp

any update?

eleomilagrosa avatar Apr 06 '23 12:04 eleomilagrosa

This would be a nice feature. Hoping it would rollout soon.

AmanMasipeddi avatar Apr 28 '23 03:04 AmanMasipeddi

I have the same needs!

LinHaoLove avatar May 22 '23 08:05 LinHaoLove

Hey @rickcasson . What's the purpose of having multiple Info.plist files instead of using variables?

AngeloAvv avatar Jun 02 '23 19:06 AngeloAvv

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

rickcasson avatar Jun 02 '23 20:06 rickcasson

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:

image

And as @rickcasson pointed out, we need to define separate plist files for different targets over the same flavor.

TheFabbiusCorp avatar Dec 22 '23 17:12 TheFabbiusCorp

Hey @rickcasson , are you still interested in developing this feature? I have some suggestions for you

AngeloAvv avatar Mar 12 '24 10:03 AngeloAvv

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

rickcasson avatar Mar 12 '24 16:03 rickcasson