Skip to content

Instantly share code, notes, and snippets.

View wynch's full-sized avatar

vincent barthelemy wynch

View GitHub Profile
@wynch
wynch / Xcode_version_from_package.sh
Last active August 22, 2024 09:58
React Native - Set Gradle & XCode build version from package.json
#!/usr/bin/env bash -e
##
## Automatic version from package.json file
##
## Call this script from your XCode Scheme:
## - Copy / paste this script in a .sh file
## - Open your app scheme in XCode (shortcut: Cmd + <)
## - go to Build > Pre-actions
## - Add a run Script ('+' button in scheme window > "New Run Script Action"