diff --git a/README.md b/README.md index c443a2069..b02d1b0ac 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ React Native wrapper around our Android and iOS mobile SDKs +**Note**: Please update to the latest version of react-native i.e 0.55 and above + **Note**: This release contains a module map embedded in the framework which by default considers that your Xcode is named Xcode.app.If your Xcode is named differently please copy the script added in the /node_modules/react-native-razorpay/scripts/ , paste it and run it in the folder containing the razorpay framework. For eg: diff --git a/example/ios/example.xcodeproj/project.pbxproj b/example/ios/example.xcodeproj/project.pbxproj index b60518b8c..37b4dfe5a 100644 --- a/example/ios/example.xcodeproj/project.pbxproj +++ b/example/ios/example.xcodeproj/project.pbxproj @@ -583,6 +583,7 @@ 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, AD303AA31F9E1C5E009CE9B5 /* Embed Frameworks */, + A231C50120D286BB000219D3 /* ShellScript */, ); buildRules = ( ); @@ -607,6 +608,9 @@ CreatedOnToolsVersion = 6.2; TestTargetID = 13B07F861A680F5B00A75B9A; }; + 13B07F861A680F5B00A75B9A = { + DevelopmentTeam = 3J5MJT3GNL; + }; }; }; buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */; @@ -949,6 +953,19 @@ shellPath = /bin/sh; shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; }; + A231C50120D286BB000219D3 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "APP_PATH=\"${TARGET_BUILD_DIR}/${WRAPPER_NAME}\"\n\n# This script loops through the frameworks embedded in the application and\n# removes unused architectures.\nfind \"$APP_PATH\" -name '*.framework' -type d | while read -r FRAMEWORK\ndo\nFRAMEWORK_EXECUTABLE_NAME=$(defaults read \"$FRAMEWORK/Info.plist\" CFBundleExecutable)\nFRAMEWORK_EXECUTABLE_PATH=\"$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME\"\necho \"Executable is $FRAMEWORK_EXECUTABLE_PATH\"\n\nEXTRACTED_ARCHS=()\n\nfor ARCH in $ARCHS\ndo\necho \"Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME\"\nlipo -extract \"$ARCH\" \"$FRAMEWORK_EXECUTABLE_PATH\" -o \"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\"\nEXTRACTED_ARCHS+=(\"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\")\ndone\n\necho \"Merging extracted architectures: ${ARCHS}\"\nlipo -o \"$FRAMEWORK_EXECUTABLE_PATH-merged\" -create \"${EXTRACTED_ARCHS[@]}\"\nrm \"${EXTRACTED_ARCHS[@]}\"\n\necho \"Replacing original executable with thinned version\"\nrm \"$FRAMEWORK_EXECUTABLE_PATH\"\nmv \"$FRAMEWORK_EXECUTABLE_PATH-merged\" \"$FRAMEWORK_EXECUTABLE_PATH\"\n\ndone"; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -1041,6 +1058,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEAD_CODE_STRIPPING = NO; + DEVELOPMENT_TEAM = 3J5MJT3GNL; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/ios", @@ -1071,6 +1089,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = 3J5MJT3GNL; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/ios", diff --git a/example/package.json b/example/package.json index 97b2b8319..3a656db2d 100644 --- a/example/package.json +++ b/example/package.json @@ -3,11 +3,11 @@ "version": "1.0.1", "private": true, "scripts": { - "start": "node_modules/react-native/packager/packager.sh" + "start": "node node_modules/react-native/local-cli/cli.js start" }, "dependencies": { "react": ">=15.0.0", - "react-native": ">=0.40.0", + "react-native": ">=0.55.0", "react-native-razorpay": "./../" } } diff --git a/ios/RazorpayCheckout.xcodeproj/project.pbxproj b/ios/RazorpayCheckout.xcodeproj/project.pbxproj index 5c9f0bee6..0ba59f931 100644 --- a/ios/RazorpayCheckout.xcodeproj/project.pbxproj +++ b/ios/RazorpayCheckout.xcodeproj/project.pbxproj @@ -244,7 +244,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ENABLE_BITCODE = NO; + ENABLE_BITCODE = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)", @@ -266,7 +266,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ENABLE_BITCODE = NO; + ENABLE_BITCODE = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)", diff --git a/package.json b/package.json index 4cf0545ae..d3760bb77 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "React Native wrapper for Razorpay", "main": "RazorpayCheckout.js", "scripts": { + "start":"node node_modules/react-native/local-cli/cli.js start", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { @@ -11,10 +12,10 @@ "url": "git+https://github.com/razorpay/react-native-razorpay.git" }, "dependencies": { - "react-native": ">=0.40.0" + "react-native": ">=0.55.0" }, "peerDependencies": { - "react-native": ">=0.40.0" + "react-native": ">=0.55.0" }, "keywords": [ "react-native",