Giter Site home page Giter Site logo

Comments (4)

pedro avatar pedro commented on September 23, 2024 2

Plist support documented in the readme, closing!

Thanks folks,

from react-native-config.

pedro avatar pedro commented on September 23, 2024

Hey!

My initial hope was to generate a .xcconfig file from the build script, but that doesn't seem possible :{ these files are fairly static.

@kipricker suggested using scheme environment vars, which is interesting because this would play well with the way we're suggesting developers to pick different .env files. I gave this a try and didn't get anywhere so far though, so will need some more exploration/advice.

Another path I want to explore is to dynamically generate a plist with the env contents, and see if we can import/merge that into Info.plist somehow.

As you might be able to tell I'm not skilled in Xcode at all, so still figuring these out as we go :} Needless to say any input/suggestion/help here is very welcome!

from react-native-config.

danielweinmann avatar danielweinmann commented on September 23, 2024

Yeah, in my project I ended up generating an Info.plist from a template inside an automated build script. It works for me, but it's not very elegant :P

from react-native-config.

migueloller avatar migueloller commented on September 23, 2024

Hey @pedro, have you thought of using plist and having a build pre-action to replace environment variables in Info.plist and then place them back in a post-action?

from react-native-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.