Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 1.17 KB

adding_new_keys.md

File metadata and controls

18 lines (11 loc) · 1.17 KB

Adding a New Key

Keys accessed within the app are stored in keys.shared.json file, accessed through react-native-keys. You need to rebuild in Xcode for changes to the file to take effect.

keys.shared.json is for artsy people to be able to work and compile. Is in .gitignore, and is downloaded by developers using the yarn setup:artsy script. It is also the main file that the app gets all the real env vars, keys etc.

keys.example.json is for open source people to be able to work and compile and see what env vars need/use. It is committed in git, and we try to keep the exact layout copied over from keys.shared.json, but without any actual keys, we replace them with "-" or similar.

On the React Native side follow these docs

On the native iOS side follow these docs

On the native android side follow these docs

You'll need to update the keys in setupJest.ts, look for the mock for react-native-keys.