-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from razorpay/r/v2.0.5
iOS release 2.0.5 readme update
- Loading branch information
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# to make sure that any command that fails in turn return a non zero status and does not continue further | ||
|
||
set -e | ||
|
||
# get framework path from command line or use the current working directory as the path | ||
|
||
if [ $# -eq 0 ] ; then | ||
FRAMEWORK_PATH=$(pwd)/Razorpay.framework/ | ||
echo "Using the current working directory as the framework path which is $FRAMEWORK_PATH" | ||
else | ||
FRAMEWORK_PATH=$1 | ||
fi | ||
|
||
#navigate to the module map | ||
|
||
cd "$FRAMEWORK_PATH/Modules/" | ||
|
||
#find xcode path and replace it with the default | ||
|
||
DEFAULT_XCODE_PATH="$(xcode-select -p)" | ||
IFS='/' | ||
read -ra ARRAY <<< "$DEFAULT_XCODE_PATH" | ||
XCODE_COMPONENT=${ARRAY[2]} | ||
STRING_TO_BE_REPLACED="Xcode.app" | ||
sed -i '' "s/$STRING_TO_BE_REPLACED/$XCODE_COMPONENT/g" module.modulemap |