MaxAst / expo-share-extension

Expo config plugin for creating iOS share extensions with a custom view.
MIT License
216 stars 5 forks source link

Add ability to modify info.plist #44

Open chris-sark opened 1 month ago

chris-sark commented 1 month ago

Hi again,

I am trying to make an API call from my app that requires the following to be added to info.plist under NSAppTransportSecurity:

      <key>NSAllowsArbitraryLoads</key>
      <true/>

however it seems every time I build the info.plist of the share extension gets overridden. With Expo, they allow adding to Info.plist from app.json:

 "ios": {

      "infoPlist": {
        "NSAppTransportSecurity": {
          "NSAllowsArbitraryLoads": true
        },
      }
    },

Can the same be added to the share extension? Thanks!!

MaxAst commented 1 month ago

@chris-sark this is definitely possible and fairly straight-forward to implement. If you want, you can give this a go! The docs explaining how to run this repo locally are here. This file creates the share extension's Info.plist and the args are passed to it via the index file