react-native-hyperpay-sdk 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/LICENSE +1 -2
  2. package/README.md +8 -6
  3. package/android/build.gradle +116 -40
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +1 -1
  6. package/android/src/main/java/com/{reactnativehyperpay/HyperPayModule.java → reactnativehyperpaysdk/HyperpaySdkModule.java} +7 -8
  7. package/android/src/main/java/com/{reactnativehyperpay/HyperPayPackage.java → reactnativehyperpaysdk/HyperpaySdkPackage.java} +3 -3
  8. package/ios/HyperpaySdk.h +5 -0
  9. package/ios/HyperpaySdk.mm +31 -0
  10. package/ios/{HyperPay.xcodeproj → HyperpaySdk.xcodeproj}/project.pbxproj +20 -28
  11. package/ios/{HyperPay.xcodeproj → HyperpaySdk.xcodeproj}/project.xcworkspace/contents.xcworkspacedata +0 -0
  12. package/lib/commonjs/index.js +24 -0
  13. package/lib/commonjs/index.js.map +1 -0
  14. package/lib/module/index.js +15 -0
  15. package/lib/module/index.js.map +1 -0
  16. package/lib/typescript/index.d.ts +1 -0
  17. package/package.json +30 -27
  18. package/react-native-hyperpay-sdk.podspec +40 -0
  19. package/src/index.tsx +3 -5
  20. package/OPPWAMobile-Resources.bundle/Info.plist +0 -0
  21. package/OPPWAMobile-Resources.bundle/Klarna.json +0 -67
  22. package/OPPWAMobile-Resources.bundle/OPPBrandCollectionViewCell.nib +0 -0
  23. package/OPPWAMobile-Resources.bundle/OPPCardDetailsViewController.nib +0 -0
  24. package/OPPWAMobile-Resources.bundle/OPPCardsTableViewCell.nib +0 -0
  25. package/OPPWAMobile-Resources.bundle/OPPCheckoutTextFieldView.nib +0 -0
  26. package/OPPWAMobile-Resources.bundle/OPPChinaUnionPayDetailsViewController.nib +0 -0
  27. package/OPPWAMobile-Resources.bundle/OPPDirectDebitDetailsViewController.nib +0 -0
  28. package/OPPWAMobile-Resources.bundle/OPPGiropayDetailsViewController.nib +0 -0
  29. package/OPPWAMobile-Resources.bundle/OPPIkanoDetailsViewController.nib +0 -0
  30. package/OPPWAMobile-Resources.bundle/OPPKlarnaDetailsViewController.nib +0 -0
  31. package/OPPWAMobile-Resources.bundle/OPPKlarnaTableViewCell.nib +0 -0
  32. package/OPPWAMobile-Resources.bundle/OPPListDetailsViewController.nib +0 -0
  33. package/OPPWAMobile-Resources.bundle/OPPMBWAYDetailsViewController.nib +0 -0
  34. package/OPPWAMobile-Resources.bundle/OPPPaymentFormHeaderView.nib +0 -0
  35. package/OPPWAMobile-Resources.bundle/OPPPaymentProcessingViewController.nib +0 -0
  36. package/OPPWAMobile-Resources.bundle/OPPPaymentSchemeTableViewCell.nib +0 -0
  37. package/OPPWAMobile-Resources.bundle/OPPPaymentSchemeViewController.nib +0 -0
  38. package/OPPWAMobile-Resources.bundle/OPPStorePaymentDetailsView.nib +0 -0
  39. package/OPPWAMobile-Resources.bundle/OPPTokenCollectionViewCell.nib +0 -0
  40. package/OPPWAMobile-Resources.bundle/OPPTokensTableViewCell.nib +0 -0
  41. package/OPPWAMobile-Resources.bundle/OPPTotalAmountView.nib/objects-11.0+.nib +0 -0
  42. package/OPPWAMobile-Resources.bundle/OPPTotalAmountView.nib/runtime.nib +0 -0
  43. package/OPPWAMobile-Resources.bundle/alipay.png +0 -0
  44. package/OPPWAMobile-Resources.bundle/alipay@2x.png +0 -0
  45. package/OPPWAMobile-Resources.bundle/alipay@3x.png +0 -0
  46. package/OPPWAMobile-Resources.bundle/amex.png +0 -0
  47. package/OPPWAMobile-Resources.bundle/amex@2x.png +0 -0
  48. package/OPPWAMobile-Resources.bundle/amex@3x.png +0 -0
  49. package/OPPWAMobile-Resources.bundle/applepay.png +0 -0
  50. package/OPPWAMobile-Resources.bundle/applepay@2x.png +0 -0
  51. package/OPPWAMobile-Resources.bundle/applepay@3x.png +0 -0
  52. package/OPPWAMobile-Resources.bundle/ar.lproj/OPPCheckout.strings +0 -89
  53. package/OPPWAMobile-Resources.bundle/arrow_down.png +0 -0
  54. package/OPPWAMobile-Resources.bundle/arrow_up.png +0 -0
  55. package/OPPWAMobile-Resources.bundle/boleto.png +0 -0
  56. package/OPPWAMobile-Resources.bundle/boleto@2x.png +0 -0
  57. package/OPPWAMobile-Resources.bundle/boleto@3x.png +0 -0
  58. package/OPPWAMobile-Resources.bundle/ca.lproj/OPPCheckout.strings +0 -90
  59. package/OPPWAMobile-Resources.bundle/camera_icon.png +0 -0
  60. package/OPPWAMobile-Resources.bundle/camera_icon@2x.png +0 -0
  61. package/OPPWAMobile-Resources.bundle/camera_icon@3x.png +0 -0
  62. package/OPPWAMobile-Resources.bundle/card.png +0 -0
  63. package/OPPWAMobile-Resources.bundle/card@2x.png +0 -0
  64. package/OPPWAMobile-Resources.bundle/card@3x.png +0 -0
  65. package/OPPWAMobile-Resources.bundle/cartebleue.png +0 -0
  66. package/OPPWAMobile-Resources.bundle/cartebleue@2x.png +0 -0
  67. package/OPPWAMobile-Resources.bundle/cartebleue@3x.png +0 -0
  68. package/OPPWAMobile-Resources.bundle/dankort.png +0 -0
  69. package/OPPWAMobile-Resources.bundle/dankort@2x.png +0 -0
  70. package/OPPWAMobile-Resources.bundle/dankort@3x.png +0 -0
  71. package/OPPWAMobile-Resources.bundle/de.lproj/OPPCheckout.strings +0 -99
  72. package/OPPWAMobile-Resources.bundle/diners.png +0 -0
  73. package/OPPWAMobile-Resources.bundle/diners@2x.png +0 -0
  74. package/OPPWAMobile-Resources.bundle/diners@3x.png +0 -0
  75. package/OPPWAMobile-Resources.bundle/directdebit_sepa.png +0 -0
  76. package/OPPWAMobile-Resources.bundle/directdebit_sepa@2x.png +0 -0
  77. package/OPPWAMobile-Resources.bundle/directdebit_sepa@3x.png +0 -0
  78. package/OPPWAMobile-Resources.bundle/discover.png +0 -0
  79. package/OPPWAMobile-Resources.bundle/discover@2x.png +0 -0
  80. package/OPPWAMobile-Resources.bundle/discover@3x.png +0 -0
  81. package/OPPWAMobile-Resources.bundle/en.lproj/OPPCheckout.strings +0 -145
  82. package/OPPWAMobile-Resources.bundle/es.lproj/OPPCheckout.strings +0 -92
  83. package/OPPWAMobile-Resources.bundle/eu-ES.lproj/OPPCheckout.strings +0 -92
  84. package/OPPWAMobile-Resources.bundle/fr-CA.lproj/OPPCheckout.strings +0 -93
  85. package/OPPWAMobile-Resources.bundle/fr.lproj/OPPCheckout.strings +0 -93
  86. package/OPPWAMobile-Resources.bundle/giropay.png +0 -0
  87. package/OPPWAMobile-Resources.bundle/giropay@2x.png +0 -0
  88. package/OPPWAMobile-Resources.bundle/giropay@3x.png +0 -0
  89. package/OPPWAMobile-Resources.bundle/gl-ES.lproj/OPPCheckout.strings +0 -92
  90. package/OPPWAMobile-Resources.bundle/ideal.png +0 -0
  91. package/OPPWAMobile-Resources.bundle/ideal@2x.png +0 -0
  92. package/OPPWAMobile-Resources.bundle/ideal@3x.png +0 -0
  93. package/OPPWAMobile-Resources.bundle/it.lproj/OPPCheckout.strings +0 -94
  94. package/OPPWAMobile-Resources.bundle/ja.lproj/OPPCheckout.strings +0 -74
  95. package/OPPWAMobile-Resources.bundle/jcb.png +0 -0
  96. package/OPPWAMobile-Resources.bundle/jcb@2x.png +0 -0
  97. package/OPPWAMobile-Resources.bundle/jcb@3x.png +0 -0
  98. package/OPPWAMobile-Resources.bundle/klarna.png +0 -0
  99. package/OPPWAMobile-Resources.bundle/klarna@2x.png +0 -0
  100. package/OPPWAMobile-Resources.bundle/klarna@3x.png +0 -0
  101. package/OPPWAMobile-Resources.bundle/klarna_detail_logo.png +0 -0
  102. package/OPPWAMobile-Resources.bundle/klarna_detail_logo@2x.png +0 -0
  103. package/OPPWAMobile-Resources.bundle/klarna_detail_logo@3x.png +0 -0
  104. package/OPPWAMobile-Resources.bundle/klarna_nl_agreement.png +0 -0
  105. package/OPPWAMobile-Resources.bundle/klarna_nl_agreement@2x.png +0 -0
  106. package/OPPWAMobile-Resources.bundle/klarna_nl_agreement@3x.png +0 -0
  107. package/OPPWAMobile-Resources.bundle/klarna_payments_billpay.png +0 -0
  108. package/OPPWAMobile-Resources.bundle/klarna_payments_billpay@2x.png +0 -0
  109. package/OPPWAMobile-Resources.bundle/klarna_payments_billpay@3x.png +0 -0
  110. package/OPPWAMobile-Resources.bundle/klarna_payments_paylater.png +0 -0
  111. package/OPPWAMobile-Resources.bundle/klarna_payments_paylater@2x.png +0 -0
  112. package/OPPWAMobile-Resources.bundle/klarna_payments_paylater@3x.png +0 -0
  113. package/OPPWAMobile-Resources.bundle/klarna_payments_sliceit.png +0 -0
  114. package/OPPWAMobile-Resources.bundle/klarna_payments_sliceit@2x.png +0 -0
  115. package/OPPWAMobile-Resources.bundle/klarna_payments_sliceit@3x.png +0 -0
  116. package/OPPWAMobile-Resources.bundle/mada.png +0 -0
  117. package/OPPWAMobile-Resources.bundle/mada@2x.png +0 -0
  118. package/OPPWAMobile-Resources.bundle/mada@3x.png +0 -0
  119. package/OPPWAMobile-Resources.bundle/maestro.png +0 -0
  120. package/OPPWAMobile-Resources.bundle/maestro@2x.png +0 -0
  121. package/OPPWAMobile-Resources.bundle/maestro@3x.png +0 -0
  122. package/OPPWAMobile-Resources.bundle/master.png +0 -0
  123. package/OPPWAMobile-Resources.bundle/master@2x.png +0 -0
  124. package/OPPWAMobile-Resources.bundle/master@3x.png +0 -0
  125. package/OPPWAMobile-Resources.bundle/masterdebit.png +0 -0
  126. package/OPPWAMobile-Resources.bundle/masterdebit@2x.png +0 -0
  127. package/OPPWAMobile-Resources.bundle/masterdebit@3x.png +0 -0
  128. package/OPPWAMobile-Resources.bundle/masterpass.png +0 -0
  129. package/OPPWAMobile-Resources.bundle/masterpass@2x.png +0 -0
  130. package/OPPWAMobile-Resources.bundle/masterpass@3x.png +0 -0
  131. package/OPPWAMobile-Resources.bundle/nl.lproj/OPPCheckout.strings +0 -91
  132. package/OPPWAMobile-Resources.bundle/paydirekt.png +0 -0
  133. package/OPPWAMobile-Resources.bundle/paydirekt@2x.png +0 -0
  134. package/OPPWAMobile-Resources.bundle/paydirekt@3x.png +0 -0
  135. package/OPPWAMobile-Resources.bundle/paypal.png +0 -0
  136. package/OPPWAMobile-Resources.bundle/paypal@2x.png +0 -0
  137. package/OPPWAMobile-Resources.bundle/paypal@3x.png +0 -0
  138. package/OPPWAMobile-Resources.bundle/paysafecard.png +0 -0
  139. package/OPPWAMobile-Resources.bundle/paysafecard@2x.png +0 -0
  140. package/OPPWAMobile-Resources.bundle/paysafecard@3x.png +0 -0
  141. package/OPPWAMobile-Resources.bundle/paytrail.png +0 -0
  142. package/OPPWAMobile-Resources.bundle/paytrail@2x.png +0 -0
  143. package/OPPWAMobile-Resources.bundle/paytrail@3x.png +0 -0
  144. package/OPPWAMobile-Resources.bundle/pf_karte_direct.png +0 -0
  145. package/OPPWAMobile-Resources.bundle/pf_karte_direct@2x.png +0 -0
  146. package/OPPWAMobile-Resources.bundle/pf_karte_direct@3x.png +0 -0
  147. package/OPPWAMobile-Resources.bundle/przelewy.png +0 -0
  148. package/OPPWAMobile-Resources.bundle/przelewy@2x.png +0 -0
  149. package/OPPWAMobile-Resources.bundle/przelewy@3x.png +0 -0
  150. package/OPPWAMobile-Resources.bundle/pt.lproj/OPPCheckout.strings +0 -91
  151. package/OPPWAMobile-Resources.bundle/ratenkauf.png +0 -0
  152. package/OPPWAMobile-Resources.bundle/ratenkauf@2x.png +0 -0
  153. package/OPPWAMobile-Resources.bundle/ratenkauf@3x.png +0 -0
  154. package/OPPWAMobile-Resources.bundle/ru.lproj/OPPCheckout.strings +0 -91
  155. package/OPPWAMobile-Resources.bundle/sibs_multibanco.png +0 -0
  156. package/OPPWAMobile-Resources.bundle/sibs_multibanco@2x.png +0 -0
  157. package/OPPWAMobile-Resources.bundle/sibs_multibanco@3x.png +0 -0
  158. package/OPPWAMobile-Resources.bundle/sofortueberweisung.png +0 -0
  159. package/OPPWAMobile-Resources.bundle/sofortueberweisung@2x.png +0 -0
  160. package/OPPWAMobile-Resources.bundle/sofortueberweisung@3x.png +0 -0
  161. package/OPPWAMobile-Resources.bundle/th.lproj/OPPCheckout.strings +0 -91
  162. package/OPPWAMobile-Resources.bundle/trustly.png +0 -0
  163. package/OPPWAMobile-Resources.bundle/trustly@2x.png +0 -0
  164. package/OPPWAMobile-Resources.bundle/trustly@3x.png +0 -0
  165. package/OPPWAMobile-Resources.bundle/unionpay.png +0 -0
  166. package/OPPWAMobile-Resources.bundle/unionpay@2x.png +0 -0
  167. package/OPPWAMobile-Resources.bundle/unionpay@3x.png +0 -0
  168. package/OPPWAMobile-Resources.bundle/version.plist +0 -0
  169. package/OPPWAMobile-Resources.bundle/visa.png +0 -0
  170. package/OPPWAMobile-Resources.bundle/visa@2x.png +0 -0
  171. package/OPPWAMobile-Resources.bundle/visa@3x.png +0 -0
  172. package/OPPWAMobile-Resources.bundle/visadebit.png +0 -0
  173. package/OPPWAMobile-Resources.bundle/visadebit@2x.png +0 -0
  174. package/OPPWAMobile-Resources.bundle/visadebit@3x.png +0 -0
  175. package/OPPWAMobile-Resources.bundle/visaelectron.png +0 -0
  176. package/OPPWAMobile-Resources.bundle/visaelectron@2x.png +0 -0
  177. package/OPPWAMobile-Resources.bundle/visaelectron@3x.png +0 -0
  178. package/OPPWAMobile-Resources.bundle/yandex.png +0 -0
  179. package/OPPWAMobile-Resources.bundle/yandex@2x.png +0 -0
  180. package/OPPWAMobile-Resources.bundle/yandex@3x.png +0 -0
  181. package/OPPWAMobile-Resources.bundle/zh-Hans.lproj/OPPCheckout.strings +0 -92
  182. package/OPPWAMobile.framework/.DS_Store +0 -0
  183. package/OPPWAMobile.framework/Headers/OPPAlipayPaymentParams.h +0 -49
  184. package/OPPWAMobile.framework/Headers/OPPApplePayPaymentParams.h +0 -64
  185. package/OPPWAMobile.framework/Headers/OPPApplePayRequestStatus.h +0 -117
  186. package/OPPWAMobile.framework/Headers/OPPBankAccount.h +0 -58
  187. package/OPPWAMobile.framework/Headers/OPPBankAccountPaymentParams.h +0 -171
  188. package/OPPWAMobile.framework/Headers/OPPCard.h +0 -68
  189. package/OPPWAMobile.framework/Headers/OPPCardPaymentParams.h +0 -251
  190. package/OPPWAMobile.framework/Headers/OPPCheckoutInfo.h +0 -130
  191. package/OPPWAMobile.framework/Headers/OPPCheckoutPaymentMethod.h +0 -51
  192. package/OPPWAMobile.framework/Headers/OPPCheckoutProvider.h +0 -197
  193. package/OPPWAMobile.framework/Headers/OPPCheckoutSettings.h +0 -185
  194. package/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h +0 -268
  195. package/OPPWAMobile.framework/Headers/OPPChinaUnionPayPaymentParams.h +0 -62
  196. package/OPPWAMobile.framework/Headers/OPPErrors.h +0 -183
  197. package/OPPWAMobile.framework/Headers/OPPIkanoOiPaymentParams.h +0 -74
  198. package/OPPWAMobile.framework/Headers/OPPMBWayPaymentParams.h +0 -66
  199. package/OPPWAMobile.framework/Headers/OPPPayPalPaymentParams.h +0 -48
  200. package/OPPWAMobile.framework/Headers/OPPPaymentBrandsConfig.h +0 -56
  201. package/OPPWAMobile.framework/Headers/OPPPaymentButton.h +0 -79
  202. package/OPPWAMobile.framework/Headers/OPPPaymentParams.h +0 -100
  203. package/OPPWAMobile.framework/Headers/OPPPaymentParamsBrand.h +0 -57
  204. package/OPPWAMobile.framework/Headers/OPPPaymentProvider.h +0 -132
  205. package/OPPWAMobile.framework/Headers/OPPSecurityPolicy.h +0 -87
  206. package/OPPWAMobile.framework/Headers/OPPToken.h +0 -95
  207. package/OPPWAMobile.framework/Headers/OPPTokenPaymentParams.h +0 -180
  208. package/OPPWAMobile.framework/Headers/OPPTransaction.h +0 -77
  209. package/OPPWAMobile.framework/Headers/OPPWAMobile.h +0 -48
  210. package/OPPWAMobile.framework/OPPWAMobile +0 -0
  211. package/OPPWAMobile.framework/Resources/Info.plist +0 -0
  212. package/OPPWAMobile.framework/Versions/.DS_Store +0 -0
  213. package/OPPWAMobile.framework/Versions/2.47.0/.DS_Store +0 -0
  214. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPAlipayPaymentParams.h +0 -49
  215. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPApplePayPaymentParams.h +0 -64
  216. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPApplePayRequestStatus.h +0 -117
  217. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPBankAccount.h +0 -58
  218. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPBankAccountPaymentParams.h +0 -171
  219. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCard.h +0 -68
  220. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCardPaymentParams.h +0 -251
  221. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutInfo.h +0 -130
  222. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutPaymentMethod.h +0 -51
  223. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutProvider.h +0 -197
  224. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutSettings.h +0 -185
  225. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutTheme.h +0 -268
  226. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPChinaUnionPayPaymentParams.h +0 -62
  227. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPErrors.h +0 -183
  228. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPIkanoOiPaymentParams.h +0 -74
  229. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPMBWayPaymentParams.h +0 -66
  230. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPayPalPaymentParams.h +0 -48
  231. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentBrandsConfig.h +0 -56
  232. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentButton.h +0 -79
  233. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentParams.h +0 -100
  234. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentParamsBrand.h +0 -57
  235. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentProvider.h +0 -132
  236. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPSecurityPolicy.h +0 -87
  237. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPToken.h +0 -95
  238. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPTokenPaymentParams.h +0 -180
  239. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPTransaction.h +0 -77
  240. package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPWAMobile.h +0 -48
  241. package/OPPWAMobile.framework/Versions/2.47.0/OPPWAMobile +0 -0
  242. package/OPPWAMobile.framework/Versions/2.47.0/Resources/Info.plist +0 -0
  243. package/OPPWAMobile.framework/Versions/Current/.DS_Store +0 -0
  244. package/OPPWAMobile.framework/Versions/Current/Headers/OPPAlipayPaymentParams.h +0 -49
  245. package/OPPWAMobile.framework/Versions/Current/Headers/OPPApplePayPaymentParams.h +0 -64
  246. package/OPPWAMobile.framework/Versions/Current/Headers/OPPApplePayRequestStatus.h +0 -117
  247. package/OPPWAMobile.framework/Versions/Current/Headers/OPPBankAccount.h +0 -58
  248. package/OPPWAMobile.framework/Versions/Current/Headers/OPPBankAccountPaymentParams.h +0 -171
  249. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCard.h +0 -68
  250. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCardPaymentParams.h +0 -251
  251. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutInfo.h +0 -130
  252. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutPaymentMethod.h +0 -51
  253. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutProvider.h +0 -197
  254. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutSettings.h +0 -185
  255. package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutTheme.h +0 -268
  256. package/OPPWAMobile.framework/Versions/Current/Headers/OPPChinaUnionPayPaymentParams.h +0 -62
  257. package/OPPWAMobile.framework/Versions/Current/Headers/OPPErrors.h +0 -183
  258. package/OPPWAMobile.framework/Versions/Current/Headers/OPPIkanoOiPaymentParams.h +0 -74
  259. package/OPPWAMobile.framework/Versions/Current/Headers/OPPMBWayPaymentParams.h +0 -66
  260. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPayPalPaymentParams.h +0 -48
  261. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentBrandsConfig.h +0 -56
  262. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentButton.h +0 -79
  263. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentParams.h +0 -100
  264. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentParamsBrand.h +0 -57
  265. package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentProvider.h +0 -132
  266. package/OPPWAMobile.framework/Versions/Current/Headers/OPPSecurityPolicy.h +0 -87
  267. package/OPPWAMobile.framework/Versions/Current/Headers/OPPToken.h +0 -95
  268. package/OPPWAMobile.framework/Versions/Current/Headers/OPPTokenPaymentParams.h +0 -180
  269. package/OPPWAMobile.framework/Versions/Current/Headers/OPPTransaction.h +0 -77
  270. package/OPPWAMobile.framework/Versions/Current/Headers/OPPWAMobile.h +0 -48
  271. package/OPPWAMobile.framework/Versions/Current/OPPWAMobile +0 -0
  272. package/OPPWAMobile.framework/Versions/Current/Resources/Info.plist +0 -0
  273. package/android/.DS_Store +0 -0
  274. package/android/.gradle/6.8/executionHistory/executionHistory.bin +0 -0
  275. package/android/.gradle/6.8/executionHistory/executionHistory.lock +0 -0
  276. package/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
  277. package/android/.gradle/6.8/fileHashes/fileHashes.bin +0 -0
  278. package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
  279. package/android/.gradle/6.8/fileHashes/resourceHashesCache.bin +0 -0
  280. package/android/.gradle/6.8/gc.properties +0 -0
  281. package/android/.gradle/6.8/javaCompile/javaCompile.lock +0 -0
  282. package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  283. package/android/.gradle/7.1.1/dependencies-accessors/gc.properties +0 -0
  284. package/android/.gradle/7.1.1/executionHistory/executionHistory.lock +0 -0
  285. package/android/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
  286. package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
  287. package/android/.gradle/7.1.1/gc.properties +0 -0
  288. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  289. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  290. package/android/.gradle/checksums/checksums.lock +0 -0
  291. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  292. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  293. package/android/.gradle/configuration-cache/gc.properties +0 -0
  294. package/android/.gradle/vcs-1/gc.properties +0 -0
  295. package/android/.idea/.gitignore +0 -3
  296. package/android/.idea/compiler.xml +0 -6
  297. package/android/.idea/gradle.xml +0 -19
  298. package/android/.idea/jarRepositories.xml +0 -40
  299. package/android/.idea/libraries/Gradle____oppwa_mobile_2_44_0_oppwa_mobile_2_44_0_aar.xml +0 -11
  300. package/android/.idea/libraries/Gradle__com_android_support_appcompat_v7_23_0_1_aar.xml +0 -18
  301. package/android/.idea/libraries/Gradle__com_android_support_recyclerview_v7_23_0_1_aar.xml +0 -15
  302. package/android/.idea/libraries/Gradle__com_android_support_support_annotations_23_0_1.xml +0 -13
  303. package/android/.idea/libraries/Gradle__com_android_support_support_v4_23_0_1_aar.xml +0 -19
  304. package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_0_8_1_aar.xml +0 -15
  305. package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_0_8_1_aar.xml +0 -15
  306. package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_0_8_1_aar.xml +0 -15
  307. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_0_8_1_aar.xml +0 -15
  308. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp_0_8_1_aar.xml +0 -15
  309. package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_20_1_aar.xml +0 -19
  310. package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_1_2_0.xml +0 -13
  311. package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_okhttp_1_2_0.xml +0 -13
  312. package/android/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_core_2_2_3.xml +0 -13
  313. package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_0.xml +0 -13
  314. package/android/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0.xml +0 -13
  315. package/android/.idea/libraries/Gradle__com_parse_bolts_bolts_android_1_1_4.xml +0 -13
  316. package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_2_5_0.xml +0 -13
  317. package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_ws_2_5_0.xml +0 -13
  318. package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_6_0.xml +0 -13
  319. package/android/.idea/libraries/Gradle__commons_cli_commons_cli_1_2.xml +0 -13
  320. package/android/.idea/libraries/Gradle__org_webkit_android_jsc_r174650_aar.xml +0 -11
  321. package/android/.idea/misc.xml +0 -9
  322. package/android/.idea/modules/android.iml +0 -66
  323. package/android/.idea/modules.xml +0 -8
  324. package/android/.idea/vcs.xml +0 -6
  325. package/android/local.properties +0 -8
  326. package/ios/HyperPay.h +0 -11
  327. package/ios/HyperPay.m +0 -95
  328. package/react-native-hyperpay.podspec +0 -20
package/LICENSE CHANGED
@@ -1,7 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 RMabroukS
4
-
3
+ Copyright (c) 2022 RMabroukS
5
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
5
  of this software and associated documentation files (the "Software"), to deal
7
6
  in the Software without restriction, including without limitation the rights
package/README.md CHANGED
@@ -1,17 +1,15 @@
1
- # react-native-hyperpay
2
-
3
- hyperpay
4
-
1
+ # react-native-hyperpay-sdk
2
+ react-native-hyperpay-sdk
5
3
  ## Installation
6
4
 
7
5
  ```sh
8
- npm install react-native-hyperpay
6
+ npm install react-native-hyperpay-sdk
9
7
  ```
10
8
 
11
9
  ## Usage
12
10
 
13
11
  ```js
14
- import { multiply } from "react-native-hyperpay";
12
+ import { multiply } from "react-native-hyperpay-sdk";
15
13
 
16
14
  // ...
17
15
 
@@ -25,3 +23,7 @@ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the
25
23
  ## License
26
24
 
27
25
  MIT
26
+
27
+ ---
28
+
29
+ Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
@@ -1,62 +1,138 @@
1
1
  buildscript {
2
- if (project == rootProject) {
3
- repositories {
4
- google()
5
- mavenCentral()
6
- jcenter()
7
- }
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ }
8
6
 
9
- dependencies {
10
- classpath 'com.android.tools.build:gradle:3.5.3'
11
- }
12
- }
7
+ dependencies {
8
+ classpath 'com.android.tools.build:gradle:3.5.3'
9
+ }
10
+ }
11
+
12
+ def isNewArchitectureEnabled() {
13
+ return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
13
14
  }
14
15
 
15
16
  apply plugin: 'com.android.library'
16
17
 
17
- def safeExtGet(prop, fallback) {
18
- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
18
+ if (isNewArchitectureEnabled()) {
19
+ apply plugin: 'com.facebook.react'
20
+ }
21
+
22
+ def getExtOrDefault(name) {
23
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['HyperpaySdk_' + name]
24
+ }
25
+
26
+ def getExtOrIntegerDefault(name) {
27
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['HyperpaySdk_' + name]).toInteger()
19
28
  }
20
29
 
21
30
  android {
22
- compileSdkVersion safeExtGet('HyperPay_compileSdkVersion', 29)
23
- defaultConfig {
24
- minSdkVersion safeExtGet('HyperPay_minSdkVersion', 21)
25
- targetSdkVersion safeExtGet('HyperPay_targetSdkVersion', 29)
26
- versionCode 1
27
- versionName "1.0"
31
+ compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
28
32
 
33
+ defaultConfig {
34
+ minSdkVersion getExtOrIntegerDefault('minSdkVersion')
35
+ targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
36
+ buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
37
+ }
38
+ buildTypes {
39
+ release {
40
+ minifyEnabled false
29
41
  }
42
+ }
30
43
 
31
- buildTypes {
32
- release {
33
- minifyEnabled false
34
- }
35
- }
36
- lintOptions {
37
- disable 'GradleCompatible'
38
- }
39
- compileOptions {
40
- sourceCompatibility JavaVersion.VERSION_1_8
41
- targetCompatibility JavaVersion.VERSION_1_8
42
- }
44
+ lintOptions {
45
+ disable 'GradleCompatible'
46
+ }
47
+
48
+ compileOptions {
49
+ sourceCompatibility JavaVersion.VERSION_1_8
50
+ targetCompatibility JavaVersion.VERSION_1_8
51
+ }
43
52
  }
44
53
 
45
54
  repositories {
46
- mavenLocal()
55
+ mavenCentral()
56
+ google()
57
+
58
+ def found = false
59
+ def defaultDir = null
60
+ def androidSourcesName = 'React Native sources'
61
+
62
+ if (rootProject.ext.has('reactNativeAndroidRoot')) {
63
+ defaultDir = rootProject.ext.get('reactNativeAndroidRoot')
64
+ } else {
65
+ defaultDir = new File(
66
+ projectDir,
67
+ '/../../../node_modules/react-native/android'
68
+ )
69
+ }
70
+
71
+ if (defaultDir.exists()) {
47
72
  maven {
48
- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
49
- url("$rootDir/../node_modules/react-native/android")
73
+ url defaultDir.toString()
74
+ name androidSourcesName
50
75
  }
51
- google()
52
- mavenCentral()
53
- jcenter()
76
+
77
+ logger.info(":${project.name}:reactNativeAndroidRoot ${defaultDir.canonicalPath}")
78
+ found = true
79
+ } else {
80
+ def parentDir = rootProject.projectDir
81
+
82
+ 1.upto(5, {
83
+ if (found) return true
84
+ parentDir = parentDir.parentFile
85
+
86
+ def androidSourcesDir = new File(
87
+ parentDir,
88
+ 'node_modules/react-native'
89
+ )
90
+
91
+ def androidPrebuiltBinaryDir = new File(
92
+ parentDir,
93
+ 'node_modules/react-native/android'
94
+ )
95
+
96
+ if (androidPrebuiltBinaryDir.exists()) {
97
+ maven {
98
+ url androidPrebuiltBinaryDir.toString()
99
+ name androidSourcesName
100
+ }
101
+
102
+ logger.info(":${project.name}:reactNativeAndroidRoot ${androidPrebuiltBinaryDir.canonicalPath}")
103
+ found = true
104
+ } else if (androidSourcesDir.exists()) {
105
+ maven {
106
+ url androidSourcesDir.toString()
107
+ name androidSourcesName
108
+ }
109
+
110
+ logger.info(":${project.name}:reactNativeAndroidRoot ${androidSourcesDir.canonicalPath}")
111
+ found = true
112
+ }
113
+ })
114
+ }
115
+
116
+ if (!found) {
117
+ throw new GradleException(
118
+ "${project.name}: unable to locate React Native android sources. " +
119
+ "Ensure you have you installed React Native as a dependency in your project and try again."
120
+ )
121
+ }
54
122
  }
55
123
 
56
- dependencies {
57
- implementation files('oppwa.mobile-2.44.0/oppwa.mobile-3.14.0-release.aar')
58
124
 
59
- //noinspection GradleDynamicVersion
60
- implementation "com.facebook.react:react-native:+" // From node_modules
125
+ dependencies {
126
+ implementation files('oppwa.mobile-2.44.0/oppwa.mobile-3.14.0-release.aar')
127
+ //noinspection GradleDynamicVersion
128
+ implementation "com.facebook.react:react-native:+"
129
+ // From node_modules
130
+ }
61
131
 
132
+ if (isNewArchitectureEnabled()) {
133
+ react {
134
+ jsRootDir = file("../src/")
135
+ libraryName = "HyperpaySdk"
136
+ codegenJavaPackageName = "com.reactnativehyperpaysdk"
137
+ }
62
138
  }
@@ -0,0 +1,5 @@
1
+ HyperpaySdk_kotlinVersion=1.7.0
2
+ HyperpaySdk_minSdkVersion=21
3
+ HyperpaySdk_targetSdkVersion=31
4
+ HyperpaySdk_compileSdkVersion=31
5
+ HyperpaySdk_ndkversion=21.4.7075529
@@ -1,4 +1,4 @@
1
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.reactnativehyperpay">
2
+ package="com.reactnativehyperpaysdk">
3
3
 
4
4
  </manifest>
@@ -1,4 +1,4 @@
1
- package com.reactnativehyperpay;
1
+ package com.reactnativehyperpaysdk;
2
2
 
3
3
  import androidx.annotation.NonNull;
4
4
 
@@ -7,12 +7,12 @@ import com.facebook.react.bridge.ReactApplicationContext;
7
7
  import com.facebook.react.bridge.ReactContextBaseJavaModule;
8
8
  import com.facebook.react.bridge.ReactMethod;
9
9
  import com.facebook.react.module.annotations.ReactModule;
10
- import com.oppwa.mobile.connect.provider.Transaction;
11
- @ReactModule(name = HyperPayModule.NAME)
12
- public class HyperPayModule extends ReactContextBaseJavaModule {
13
- public static final String NAME = "HyperPay";
14
10
 
15
- public HyperPayModule(ReactApplicationContext reactContext) {
11
+ @ReactModule(name = HyperpaySdkModule.NAME)
12
+ public class HyperpaySdkModule extends ReactContextBaseJavaModule {
13
+ public static final String NAME = "HyperpaySdk";
14
+
15
+ public HyperpaySdkModule(ReactApplicationContext reactContext) {
16
16
  super(reactContext);
17
17
  }
18
18
 
@@ -26,9 +26,8 @@ public class HyperPayModule extends ReactContextBaseJavaModule {
26
26
  // Example method
27
27
  // See https://reactnative.dev/docs/native-modules-android
28
28
  @ReactMethod
29
- public void multiply(int a, int b, Promise promise) {
29
+ public void multiply(double a, double b, Promise promise) {
30
30
  promise.resolve(a * b);
31
31
  }
32
32
 
33
- public static native int nativeMultiply(int a, int b);
34
33
  }
@@ -1,4 +1,4 @@
1
- package com.reactnativehyperpay;
1
+ package com.reactnativehyperpaysdk;
2
2
 
3
3
  import androidx.annotation.NonNull;
4
4
 
@@ -11,12 +11,12 @@ import java.util.ArrayList;
11
11
  import java.util.Collections;
12
12
  import java.util.List;
13
13
 
14
- public class HyperPayPackage implements ReactPackage {
14
+ public class HyperpaySdkPackage implements ReactPackage {
15
15
  @NonNull
16
16
  @Override
17
17
  public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
18
18
  List<NativeModule> modules = new ArrayList<>();
19
- modules.add(new HyperPayModule(reactContext));
19
+ modules.add(new HyperpaySdkModule(reactContext));
20
20
  return modules;
21
21
  }
22
22
 
@@ -0,0 +1,5 @@
1
+ #import <React/RCTBridgeModule.h>
2
+
3
+ @interface HyperpaySdk : NSObject <RCTBridgeModule>
4
+
5
+ @end
@@ -0,0 +1,31 @@
1
+ #import "HyperpaySdk.h"
2
+
3
+ #ifdef RCT_NEW_ARCH_ENABLED
4
+ #import "RNHyperpaySdkSpec.h"
5
+ #endif
6
+
7
+ @implementation HyperpaySdk
8
+ RCT_EXPORT_MODULE()
9
+
10
+ // Example method
11
+ // See // https://reactnative.dev/docs/native-modules-ios
12
+ RCT_REMAP_METHOD(multiply,
13
+ multiplyWithA:(double)a withB:(double)b
14
+ withResolver:(RCTPromiseResolveBlock)resolve
15
+ withRejecter:(RCTPromiseRejectBlock)reject)
16
+ {
17
+ NSNumber *result = @(a * b);
18
+
19
+ resolve(result);
20
+ }
21
+
22
+ // Don't compile this code when we build for the old architecture.
23
+ #ifdef RCT_NEW_ARCH_ENABLED
24
+ - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
25
+ (const facebook::react::ObjCTurboModule::InitParams &)params
26
+ {
27
+ return std::make_shared<facebook::react::NativeHyperpaySdkSpecJSI>(params);
28
+ }
29
+ #endif
30
+
31
+ @end
@@ -7,9 +7,7 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
-
11
- 5E555C0D2413F4C50049A1A2 /* HyperPay.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* HyperPay.m */; };
12
-
10
+ 5E555C0D2413F4C50049A1A2 /* HyperpaySdk.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* HyperpaySdk.m */; };
13
11
  /* End PBXBuildFile section */
14
12
 
15
13
  /* Begin PBXCopyFilesBuildPhase section */
@@ -25,11 +23,9 @@
25
23
  /* End PBXCopyFilesBuildPhase section */
26
24
 
27
25
  /* Begin PBXFileReference section */
28
- 134814201AA4EA6300B7C361 /* libHyperPay.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libHyperPay.a; sourceTree = BUILT_PRODUCTS_DIR; };
29
-
30
- B3E7B5881CC2AC0600A0062D /* HyperPay.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HyperPay.h; sourceTree = "<group>"; };
31
- B3E7B5891CC2AC0600A0062D /* HyperPay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HyperPay.m; sourceTree = "<group>"; };
32
-
26
+ 134814201AA4EA6300B7C361 /* libHyperpaySdk.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libHyperpaySdk.a; sourceTree = BUILT_PRODUCTS_DIR; };
27
+ B3E7B5881CC2AC0600A0062D /* HyperpaySdk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HyperpaySdk.h; sourceTree = "<group>"; };
28
+ B3E7B5891CC2AC0600A0062D /* HyperpaySdk.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HyperpaySdk.m; sourceTree = "<group>"; };
33
29
  /* End PBXFileReference section */
34
30
 
35
31
  /* Begin PBXFrameworksBuildPhase section */
@@ -46,7 +42,7 @@
46
42
  134814211AA4EA7D00B7C361 /* Products */ = {
47
43
  isa = PBXGroup;
48
44
  children = (
49
- 134814201AA4EA6300B7C361 /* libHyperPay.a */,
45
+ 134814201AA4EA6300B7C361 /* libHyperpaySdk.a */,
50
46
  );
51
47
  name = Products;
52
48
  sourceTree = "<group>";
@@ -54,10 +50,8 @@
54
50
  58B511D21A9E6C8500147676 = {
55
51
  isa = PBXGroup;
56
52
  children = (
57
-
58
- B3E7B5881CC2AC0600A0062D /* HyperPay.h */,
59
- B3E7B5891CC2AC0600A0062D /* HyperPay.m */,
60
-
53
+ B3E7B5881CC2AC0600A0062D /* HyperpaySdk.h */,
54
+ B3E7B5891CC2AC0600A0062D /* HyperpaySdk.m */,
61
55
  134814211AA4EA7D00B7C361 /* Products */,
62
56
  );
63
57
  sourceTree = "<group>";
@@ -65,9 +59,9 @@
65
59
  /* End PBXGroup section */
66
60
 
67
61
  /* Begin PBXNativeTarget section */
68
- 58B511DA1A9E6C8500147676 /* HyperPay */ = {
62
+ 58B511DA1A9E6C8500147676 /* HyperpaySdk */ = {
69
63
  isa = PBXNativeTarget;
70
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperPay" */;
64
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperpaySdk" */;
71
65
  buildPhases = (
72
66
  58B511D71A9E6C8500147676 /* Sources */,
73
67
  58B511D81A9E6C8500147676 /* Frameworks */,
@@ -77,9 +71,9 @@
77
71
  );
78
72
  dependencies = (
79
73
  );
80
- name = HyperPay;
74
+ name = HyperpaySdk;
81
75
  productName = RCTDataManager;
82
- productReference = 134814201AA4EA6300B7C361 /* libHyperPay.a */;
76
+ productReference = 134814201AA4EA6300B7C361 /* libHyperpaySdk.a */;
83
77
  productType = "com.apple.product-type.library.static";
84
78
  };
85
79
  /* End PBXNativeTarget section */
@@ -96,7 +90,7 @@
96
90
  };
97
91
  };
98
92
  };
99
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperPay" */;
93
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperpaySdk" */;
100
94
  compatibilityVersion = "Xcode 3.2";
101
95
  developmentRegion = English;
102
96
  hasScannedForEncodings = 0;
@@ -109,7 +103,7 @@
109
103
  projectDirPath = "";
110
104
  projectRoot = "";
111
105
  targets = (
112
- 58B511DA1A9E6C8500147676 /* HyperPay */,
106
+ 58B511DA1A9E6C8500147676 /* HyperpaySdk */,
113
107
  );
114
108
  };
115
109
  /* End PBXProject section */
@@ -119,9 +113,7 @@
119
113
  isa = PBXSourcesBuildPhase;
120
114
  buildActionMask = 2147483647;
121
115
  files = (
122
-
123
- B3E7B58A1CC2AC0600A0062D /* HyperPay.m in Sources */,
124
-
116
+ B3E7B58A1CC2AC0600A0062D /* HyperpaySdk.m in Sources */,
125
117
  );
126
118
  runOnlyForDeploymentPostprocessing = 0;
127
119
  };
@@ -156,6 +148,7 @@
156
148
  COPY_PHASE_STRIP = NO;
157
149
  ENABLE_STRICT_OBJC_MSGSEND = YES;
158
150
  ENABLE_TESTABILITY = YES;
151
+ "EXCLUDED_ARCHS[sdk=*]" = arm64;
159
152
  GCC_C_LANGUAGE_STANDARD = gnu99;
160
153
  GCC_DYNAMIC_NO_PIC = NO;
161
154
  GCC_NO_COMMON_BLOCKS = YES;
@@ -206,6 +199,7 @@
206
199
  COPY_PHASE_STRIP = YES;
207
200
  ENABLE_NS_ASSERTIONS = NO;
208
201
  ENABLE_STRICT_OBJC_MSGSEND = YES;
202
+ "EXCLUDED_ARCHS[sdk=*]" = arm64;
209
203
  GCC_C_LANGUAGE_STANDARD = gnu99;
210
204
  GCC_NO_COMMON_BLOCKS = YES;
211
205
  GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -232,9 +226,8 @@
232
226
  );
233
227
  LIBRARY_SEARCH_PATHS = "$(inherited)";
234
228
  OTHER_LDFLAGS = "-ObjC";
235
- PRODUCT_NAME = HyperPay;
229
+ PRODUCT_NAME = HyperpaySdk;
236
230
  SKIP_INSTALL = YES;
237
-
238
231
  };
239
232
  name = Debug;
240
233
  };
@@ -249,16 +242,15 @@
249
242
  );
250
243
  LIBRARY_SEARCH_PATHS = "$(inherited)";
251
244
  OTHER_LDFLAGS = "-ObjC";
252
- PRODUCT_NAME = HyperPay;
245
+ PRODUCT_NAME = HyperpaySdk;
253
246
  SKIP_INSTALL = YES;
254
-
255
247
  };
256
248
  name = Release;
257
249
  };
258
250
  /* End XCBuildConfiguration section */
259
251
 
260
252
  /* Begin XCConfigurationList section */
261
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperPay" */ = {
253
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperpaySdk" */ = {
262
254
  isa = XCConfigurationList;
263
255
  buildConfigurations = (
264
256
  58B511ED1A9E6C8500147676 /* Debug */,
@@ -267,7 +259,7 @@
267
259
  defaultConfigurationIsVisible = 0;
268
260
  defaultConfigurationName = Release;
269
261
  };
270
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperPay" */ = {
262
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperpaySdk" */ = {
271
263
  isa = XCConfigurationList;
272
264
  buildConfigurations = (
273
265
  58B511F01A9E6C8500147676 /* Debug */,
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.multiply = multiply;
7
+
8
+ var _reactNative = require("react-native");
9
+
10
+ const LINKING_ERROR = `The package 'react-native-hyperpay-sdk' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
11
+ ios: "- You have run 'pod install'\n",
12
+ default: ''
13
+ }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo managed workflow\n';
14
+ const HyperpaySdk = _reactNative.NativeModules.HyperpaySdk ? _reactNative.NativeModules.HyperpaySdk : new Proxy({}, {
15
+ get() {
16
+ throw new Error(LINKING_ERROR);
17
+ }
18
+
19
+ });
20
+
21
+ function multiply(a, b) {
22
+ return HyperpaySdk.multiply(a, b);
23
+ }
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LINKING_ERROR","Platform","select","ios","default","HyperpaySdk","NativeModules","Proxy","get","Error","multiply","a","b"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules, Platform } from 'react-native';\n\nconst LINKING_ERROR =\n `The package 'react-native-hyperpay-sdk' doesn't seem to be linked. Make sure: \\n\\n` +\n Platform.select({ ios: \"- You have run 'pod install'\\n\", default: '' }) +\n '- You rebuilt the app after installing the package\\n' +\n '- You are not using Expo managed workflow\\n';\n\nconst HyperpaySdk = NativeModules.HyperpaySdk ? NativeModules.HyperpaySdk : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\nexport function multiply(a: number, b: number): Promise<number> {\n return HyperpaySdk.multiply(a, b);\n}\n"],"mappings":";;;;;;;AAAA;;AAEA,MAAMA,aAAa,GAChB,oFAAD,GACAC,qBAAA,CAASC,MAAT,CAAgB;EAAEC,GAAG,EAAE,gCAAP;EAAyCC,OAAO,EAAE;AAAlD,CAAhB,CADA,GAEA,sDAFA,GAGA,6CAJF;AAMA,MAAMC,WAAW,GAAGC,0BAAA,CAAcD,WAAd,GAA6BC,0BAAA,CAAcD,WAA3C,GAA0D,IAAIE,KAAJ,CACxE,EADwE,EAExE;EACEC,GAAG,GAAG;IACJ,MAAM,IAAIC,KAAJ,CAAUT,aAAV,CAAN;EACD;;AAHH,CAFwE,CAA9E;;AASO,SAASU,QAAT,CAAkBC,CAAlB,EAA6BC,CAA7B,EAAyD;EAC9D,OAAOP,WAAW,CAACK,QAAZ,CAAqBC,CAArB,EAAwBC,CAAxB,CAAP;AACD"}
@@ -0,0 +1,15 @@
1
+ import { NativeModules, Platform } from 'react-native';
2
+ const LINKING_ERROR = `The package 'react-native-hyperpay-sdk' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
3
+ ios: "- You have run 'pod install'\n",
4
+ default: ''
5
+ }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo managed workflow\n';
6
+ const HyperpaySdk = NativeModules.HyperpaySdk ? NativeModules.HyperpaySdk : new Proxy({}, {
7
+ get() {
8
+ throw new Error(LINKING_ERROR);
9
+ }
10
+
11
+ });
12
+ export function multiply(a, b) {
13
+ return HyperpaySdk.multiply(a, b);
14
+ }
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","HyperpaySdk","Proxy","get","Error","multiply","a","b"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules, Platform } from 'react-native';\n\nconst LINKING_ERROR =\n `The package 'react-native-hyperpay-sdk' doesn't seem to be linked. Make sure: \\n\\n` +\n Platform.select({ ios: \"- You have run 'pod install'\\n\", default: '' }) +\n '- You rebuilt the app after installing the package\\n' +\n '- You are not using Expo managed workflow\\n';\n\nconst HyperpaySdk = NativeModules.HyperpaySdk ? NativeModules.HyperpaySdk : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\nexport function multiply(a: number, b: number): Promise<number> {\n return HyperpaySdk.multiply(a, b);\n}\n"],"mappings":"AAAA,SAASA,aAAT,EAAwBC,QAAxB,QAAwC,cAAxC;AAEA,MAAMC,aAAa,GAChB,oFAAD,GACAD,QAAQ,CAACE,MAAT,CAAgB;EAAEC,GAAG,EAAE,gCAAP;EAAyCC,OAAO,EAAE;AAAlD,CAAhB,CADA,GAEA,sDAFA,GAGA,6CAJF;AAMA,MAAMC,WAAW,GAAGN,aAAa,CAACM,WAAd,GAA6BN,aAAa,CAACM,WAA3C,GAA0D,IAAIC,KAAJ,CACxE,EADwE,EAExE;EACEC,GAAG,GAAG;IACJ,MAAM,IAAIC,KAAJ,CAAUP,aAAV,CAAN;EACD;;AAHH,CAFwE,CAA9E;AASA,OAAO,SAASQ,QAAT,CAAkBC,CAAlB,EAA6BC,CAA7B,EAAyD;EAC9D,OAAON,WAAW,CAACI,QAAZ,CAAqBC,CAArB,EAAwBC,CAAxB,CAAP;AACD"}
@@ -0,0 +1 @@
1
+ export declare function multiply(a: number, b: number): Promise<number>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-hyperpay-sdk",
3
- "version": "0.1.0",
4
- "description": "hyperpay",
3
+ "version": "0.2.0",
4
+ "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
7
7
  "types": "lib/typescript/index.d.ts",
@@ -13,9 +13,7 @@
13
13
  "android",
14
14
  "ios",
15
15
  "cpp",
16
- "react-native-hyperpay.podspec",
17
- "OPPWAMobile-Resources.bundle",
18
- "OPPWAMobile.framework",
16
+ "react-native-hyperpay-sdk.podspec",
19
17
  "!lib/typescript/example",
20
18
  "!android/build",
21
19
  "!ios/build",
@@ -27,46 +25,50 @@
27
25
  "test": "jest",
28
26
  "typescript": "tsc --noEmit",
29
27
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
28
+ "prepare": "bob build",
30
29
  "release": "release-it",
31
30
  "example": "yarn --cwd example",
32
- "pods": "cd example && pod-install --quiet",
33
- "bootstrap": "yarn example && yarn && yarn pods"
31
+ "bootstrap": "yarn example && yarn && yarn example pods"
34
32
  },
35
33
  "keywords": [
36
34
  "react-native",
37
35
  "ios",
38
36
  "android"
39
37
  ],
40
- "repository": "https://github.com/RMabroukS/react-native-hyperpay",
38
+ "repository": "https://github.com/RMabroukS/react-native-hyperpay-sdk",
41
39
  "author": "RMabroukS <r.mabrouk.sayed@gmail.com> (https://github.com/RMabroukS)",
42
40
  "license": "MIT",
43
41
  "bugs": {
44
- "url": "https://github.com/RMabroukS/react-native-hyperpay/issues"
42
+ "url": "https://github.com/RMabroukS/react-native-hyperpay-sdk/issues"
45
43
  },
46
- "homepage": "https://github.com/RMabroukS/react-native-hyperpay#readme",
44
+ "homepage": "https://github.com/RMabroukS/react-native-hyperpay-sdk#readme",
47
45
  "publishConfig": {
48
46
  "registry": "https://registry.npmjs.org/"
49
47
  },
50
48
  "devDependencies": {
51
- "@commitlint/config-conventional": "^11.0.0",
52
- "@react-native-community/eslint-config": "^2.0.0",
53
- "@release-it/conventional-changelog": "^2.0.0",
54
- "@types/jest": "^26.0.0",
55
- "@types/react": "^16.9.19",
56
- "@types/react-native": "0.62.13",
57
- "commitlint": "^11.0.0",
58
- "eslint": "^7.2.0",
59
- "eslint-config-prettier": "^7.0.0",
60
- "eslint-plugin-prettier": "^3.1.3",
61
- "husky": "^6.0.0",
62
- "jest": "^26.0.1",
49
+ "@arkweid/lefthook": "^0.7.7",
50
+ "@babel/eslint-parser": "^7.18.2",
51
+ "@commitlint/config-conventional": "^17.0.2",
52
+ "@react-native-community/eslint-config": "^3.0.2",
53
+ "@release-it/conventional-changelog": "^5.0.0",
54
+ "@types/jest": "^28.1.2",
55
+ "@types/react": "~17.0.21",
56
+ "@types/react-native": "0.68.0",
57
+ "commitlint": "^17.0.2",
58
+ "eslint": "^8.4.1",
59
+ "eslint-config-prettier": "^8.5.0",
60
+ "eslint-plugin-prettier": "^4.0.0",
61
+ "jest": "^28.1.1",
63
62
  "pod-install": "^0.1.0",
64
63
  "prettier": "^2.0.5",
65
- "react": "16.13.1",
66
- "react-native": "0.63.4",
67
- "react-native-builder-bob": "^0.18.0",
68
- "release-it": "^14.2.2",
69
- "typescript": "^4.1.3"
64
+ "react": "17.0.2",
65
+ "react-native": "0.68.2",
66
+ "react-native-builder-bob": "^0.18.3",
67
+ "release-it": "^15.0.0",
68
+ "typescript": "^4.5.2"
69
+ },
70
+ "resolutions": {
71
+ "@types/react": "17.0.21"
70
72
  },
71
73
  "peerDependencies": {
72
74
  "react": "*",
@@ -103,6 +105,7 @@
103
105
  },
104
106
  "eslintConfig": {
105
107
  "root": true,
108
+ "parser": "@babel/eslint-parser",
106
109
  "extends": [
107
110
  "@react-native-community",
108
111
  "prettier"