Skip to content

Commit

Permalink
Merge pull request #84 from razorpay/r/v2.0.6
Browse files Browse the repository at this point in the history
iOS Release 2.0.6
  • Loading branch information
iThink32 authored Jun 5, 2018
2 parents b00b228 + e776d25 commit d236c10
Show file tree
Hide file tree
Showing 25 changed files with 128 additions and 3 deletions.
Binary file removed __MACOSX/Razorpay.framework/._.DS_Store
Binary file not shown.
12 changes: 12 additions & 0 deletions example/ios/Razorpay.framework/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Debug.xcconfig
// RazorpayIOS
//
// Created by N.A Shashank on 24/04/18.
// Copyright © 2018 Razorpay. All rights reserved.
//

// OTHER_SWIFT_FLAGS is not inherited due to some reason so if you have a value for other swift flags you have to manually set the configuration file for that target
IS_BITCODE_ENABLED = YES
BUILD_ACTIVE_ARCHITECTURE = YES
OTHER_SWIFT_FLAGS =
Binary file modified example/ios/Razorpay.framework/Info.plist
Binary file not shown.
14 changes: 14 additions & 0 deletions example/ios/Razorpay.framework/LegacySwiftRelease.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// LegacySwift.xcconfig
// RazorpayIOS
//
// Created by N.A Shashank on 24/04/18.
// Copyright © 2018 Razorpay. All rights reserved.
//

// OTHER_SWIFT_FLAGS is not inherited due to some reason so if you have a value for other swift flags you have to manually set the configuration file for that target
IS_BITCODE_ENABLED = YES
BUILD_ACTIVE_ARCHITECTURE = NO
// the following variable is initialize with nothing (empty)
OTHER_SWIFT_FLAGS =

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion example/ios/Razorpay.framework/Modules/module.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Razorpay.Swift {
}

module RazorpayCommonCrypto [system] {
header "/Applications/Xcode9.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/CommonCrypto/CommonCrypto.h"
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/CommonCrypto/CommonCrypto.h"
export *
}

Expand Down
Binary file modified example/ios/Razorpay.framework/Razorpay
Binary file not shown.
12 changes: 12 additions & 0 deletions example/ios/Razorpay.framework/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Release.xcconfig
// RazorpayIOS
//
// Created by N.A Shashank on 24/04/18.
// Copyright © 2018 Razorpay. All rights reserved.
//

// OTHER_SWIFT_FLAGS is not inherited due to some reason so if you have a value for other swift flags you have to manually set the configuration file for that target
IS_BITCODE_ENABLED = YES
BUILD_ACTIVE_ARCHITECTURE = NO
OTHER_SWIFT_FLAGS =
12 changes: 12 additions & 0 deletions example/ios/Razorpay.framework/UITest.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Test.xcconfig
// RazorpayIOS
//
// Created by N.A Shashank on 24/04/18.
// Copyright © 2018 Razorpay. All rights reserved.
//

// OTHER_SWIFT_FLAGS is not inherited due to some reason so if you have a value for other swift flags you have to manually set the configuration file for that target
IS_BITCODE_ENABLED = YES
BUILD_ACTIVE_ARCHITECTURE = YES
OTHER_SWIFT_FLAGS = -D 'TestEnvironment'
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example",
"version": "0.0.2",
"version": "1.0.1",
"private": true,
"scripts": {
"start": "node_modules/react-native/packager/packager.sh"
Expand Down
12 changes: 12 additions & 0 deletions ios/Razorpay.framework/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Debug.xcconfig
// RazorpayIOS
//
// Created by N.A Shashank on 24/04/18.
// Copyright © 2018 Razorpay. All rights reserved.
//

// OTHER_SWIFT_FLAGS is not inherited due to some reason so if you have a value for other swift flags you have to manually set the configuration file for that target
IS_BITCODE_ENABLED = YES
BUILD_ACTIVE_ARCHITECTURE = YES
OTHER_SWIFT_FLAGS =
Binary file modified ios/Razorpay.framework/Info.plist
Binary file not shown.
14 changes: 14 additions & 0 deletions ios/Razorpay.framework/LegacySwiftRelease.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// LegacySwift.xcconfig
// RazorpayIOS
//
// Created by N.A Shashank on 24/04/18.
// Copyright © 2018 Razorpay. All rights reserved.
//

// OTHER_SWIFT_FLAGS is not inherited due to some reason so if you have a value for other swift flags you have to manually set the configuration file for that target
IS_BITCODE_ENABLED = YES
BUILD_ACTIVE_ARCHITECTURE = NO
// the following variable is initialize with nothing (empty)
OTHER_SWIFT_FLAGS =

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified ios/Razorpay.framework/Razorpay
Binary file not shown.
12 changes: 12 additions & 0 deletions ios/Razorpay.framework/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Release.xcconfig
// RazorpayIOS
//
// Created by N.A Shashank on 24/04/18.
// Copyright © 2018 Razorpay. All rights reserved.
//

// OTHER_SWIFT_FLAGS is not inherited due to some reason so if you have a value for other swift flags you have to manually set the configuration file for that target
IS_BITCODE_ENABLED = YES
BUILD_ACTIVE_ARCHITECTURE = NO
OTHER_SWIFT_FLAGS =
12 changes: 12 additions & 0 deletions ios/Razorpay.framework/UITest.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Test.xcconfig
// RazorpayIOS
//
// Created by N.A Shashank on 24/04/18.
// Copyright © 2018 Razorpay. All rights reserved.
//

// OTHER_SWIFT_FLAGS is not inherited due to some reason so if you have a value for other swift flags you have to manually set the configuration file for that target
IS_BITCODE_ENABLED = YES
BUILD_ACTIVE_ARCHITECTURE = YES
OTHER_SWIFT_FLAGS = -D 'TestEnvironment'
25 changes: 25 additions & 0 deletions ios/SelectDefaultXcode.sh
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-razorpay",
"version": "2.0.5",
"version": "2.0.6",
"description": "React Native wrapper for Razorpay",
"main": "RazorpayCheckout.js",
"scripts": {
Expand Down

0 comments on commit d236c10

Please sign in to comment.