Skip to content

Commit

Permalink
Merge pull request #66 from razorpay/r/v2.0.3
Browse files Browse the repository at this point in the history
iOS Swift4.1 Compatible Framework Added
  • Loading branch information
iThink32 authored Apr 12, 2018
2 parents 7afc158 + 80038f0 commit 837a272
Show file tree
Hide file tree
Showing 31 changed files with 7,373 additions and 51 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@

React Native wrapper around our Android and iOS mobile SDKs

**Note**: The following documentation is only focussed on the react-native wrapper around our Android and iOS sdks. To know more about our sdks and how to link them within the projects, refer to the following documentation-
**Note**: This release is meant for Xcode 9.3 as it uses a framework compiled in Swift 4.1.This will not work in Xcode 9.2 as you will get a "dlyd error : framework not found error".In case you are using an older version of Xcode and need Swift 3.1 visit the following link and download the respective framework.

https://razorpay.com/docs/ios

After this replace the framework in /node_modules/react-native-razorpay/ios/
and link your project either using react-native commands or manually.

The following documentation is only focussed on the react-native wrapper around our Android and iOS sdks. To know more about our sdks and how to link them within the projects, refer to the following documentation-

**Android** - https://docs.razorpay.com/v1/page/android/

Expand Down
10 changes: 0 additions & 10 deletions download_ios_framework.sh

This file was deleted.

26 changes: 13 additions & 13 deletions example/ios/Razorpay.framework/Headers/Razorpay-Swift.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by Apple Swift version 4.0.2 effective-3.2.2 (swiftlang-900.0.69.2 clang-900.0.38)
// Generated by Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"

Expand All @@ -15,15 +15,6 @@
# define __has_warning(x) 0
#endif

#if __has_attribute(external_source_symbol)
# define SWIFT_STRINGIFY(str) #str
# define SWIFT_MODULE_NAMESPACE_PUSH(module_name) _Pragma(SWIFT_STRINGIFY(clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in=module_name, generated_declaration))), apply_to=any(function, enum, objc_interface, objc_category, objc_protocol))))
# define SWIFT_MODULE_NAMESPACE_POP _Pragma("clang attribute pop")
#else
# define SWIFT_MODULE_NAMESPACE_PUSH(module_name)
# define SWIFT_MODULE_NAMESPACE_POP
#endif

#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif
Expand All @@ -38,7 +29,7 @@
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
# include <uchar.h>
# elif !defined(__cplusplus) || __cplusplus < 201103L
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
Expand Down Expand Up @@ -184,7 +175,13 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"

SWIFT_MODULE_NAMESPACE_PUSH("Razorpay")
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Razorpay",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif


SWIFT_PROTOCOL("_TtP8Razorpay31ExternalWalletSelectionProtocol_")
@protocol ExternalWalletSelectionProtocol
Expand All @@ -198,6 +195,7 @@ SWIFT_PROTOCOL("_TtP8Razorpay31ExternalWalletSelectionProtocol_")
SWIFT_CLASS("_TtC8Razorpay8Razorpay")
@interface Razorpay : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
+ (void)initWithKey:(NSString * _Nonnull)key andDelegate:(id <RazorpayPaymentCompletionProtocol> _Nonnull)delegate forViewController:(UIViewController * _Nonnull)vc SWIFT_METHOD_FAMILY(none) SWIFT_UNAVAILABLE_MSG("This method is unavailable. Use initWithKey:andDelegate: instead. See https://docs.razorpay.com/docs/ios for more information.");
+ (Razorpay * _Nonnull)initWithKey:(NSString * _Nonnull)key andDelegate:(id <RazorpayPaymentCompletionProtocol> _Nonnull)delegate SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
+ (Razorpay * _Nonnull)initWithKey:(NSString * _Nonnull)key andDelegateWithData:(id <RazorpayPaymentCompletionProtocolWithData> _Nonnull)delegate SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
Expand All @@ -222,5 +220,7 @@ SWIFT_PROTOCOL("_TtP8Razorpay41RazorpayPaymentCompletionProtocolWithData_")



SWIFT_MODULE_NAMESPACE_POP
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
Binary file modified example/ios/Razorpay.framework/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified example/ios/Razorpay.framework/Razorpay
Binary file not shown.
226 changes: 226 additions & 0 deletions example/ios/Razorpay.framework/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict>
<key>Headers/Razorpay-Swift.h</key>
<data>
gEi+HtDhO4ZGSBOxv3bz+eYNpPI=
</data>
<key>Headers/Razorpay.h</key>
<data>
kh9tO5gGa8UkM9k8qlSalTKrJhE=
</data>
<key>Info.plist</key>
<data>
o4738fIunyq9fAGibLnepi2vx2E=
</data>
<key>Modules/Razorpay.swiftmodule/arm.swiftdoc</key>
<data>
/sI2feGoZ8YSzal989anBu6YEE4=
</data>
<key>Modules/Razorpay.swiftmodule/arm.swiftmodule</key>
<data>
aOYzNrUQ2D6TM9Xn/hTnvZaylPg=
</data>
<key>Modules/Razorpay.swiftmodule/arm64.swiftdoc</key>
<data>
xABd9YfUYjvTaZP+I78LaScSzII=
</data>
<key>Modules/Razorpay.swiftmodule/arm64.swiftmodule</key>
<data>
yEaSptq6uKAZrisDMMaaIVE4ZZw=
</data>
<key>Modules/module.modulemap</key>
<data>
THFrAEicfrx/BQ8HvbwDLQgolTs=
</data>
</dict>
<key>files2</key>
<dict>
<key>Headers/Razorpay-Swift.h</key>
<dict>
<key>hash</key>
<data>
gEi+HtDhO4ZGSBOxv3bz+eYNpPI=
</data>
<key>hash2</key>
<data>
tGkXnxlemV2dQ/lsBH0xHHS++TUgWeNpCx5wANxdjj0=
</data>
</dict>
<key>Headers/Razorpay.h</key>
<dict>
<key>hash</key>
<data>
kh9tO5gGa8UkM9k8qlSalTKrJhE=
</data>
<key>hash2</key>
<data>
txE5+yXEQUFGu3hCzfzoyw1Ev49OPVdomAzthMmBLXk=
</data>
</dict>
<key>Modules/Razorpay.swiftmodule/arm.swiftdoc</key>
<dict>
<key>hash</key>
<data>
/sI2feGoZ8YSzal989anBu6YEE4=
</data>
<key>hash2</key>
<data>
TQ52vIr51iuErHp/ovwv8W+yzhiGYcIcUGV/nyhS+lQ=
</data>
</dict>
<key>Modules/Razorpay.swiftmodule/arm.swiftmodule</key>
<dict>
<key>hash</key>
<data>
aOYzNrUQ2D6TM9Xn/hTnvZaylPg=
</data>
<key>hash2</key>
<data>
uKpgF0VNyG+YkJhVOTDlAUdzIlR8puSEEv5dI5W1y58=
</data>
</dict>
<key>Modules/Razorpay.swiftmodule/arm64.swiftdoc</key>
<dict>
<key>hash</key>
<data>
xABd9YfUYjvTaZP+I78LaScSzII=
</data>
<key>hash2</key>
<data>
T4T4haq0N/lueCe2jmHnE7XWSuY46OuS4EU37HjidnM=
</data>
</dict>
<key>Modules/Razorpay.swiftmodule/arm64.swiftmodule</key>
<dict>
<key>hash</key>
<data>
yEaSptq6uKAZrisDMMaaIVE4ZZw=
</data>
<key>hash2</key>
<data>
+L1+kWfyvw5QbVX3AyWXupjr6i5RPFAwvZqGlDU1vOo=
</data>
</dict>
<key>Modules/module.modulemap</key>
<dict>
<key>hash</key>
<data>
THFrAEicfrx/BQ8HvbwDLQgolTs=
</data>
<key>hash2</key>
<data>
ZT5hPzDXhb1qPtQUXv0EsDODm5xOIhQWnHNkDFnB0A4=
</data>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
Loading

0 comments on commit 837a272

Please sign in to comment.