From 91f40d7c48a6891b2b390623739acf8405120096 Mon Sep 17 00:00:00 2001 From: Khaled Alramam Date: Wed, 6 Jul 2022 09:50:41 +0200 Subject: [PATCH] Add Aman, URPay and upgrade native libs (#29) Add Aman, URPay and upgrade native libs --- README.md | 6 +++--- android/build.gradle | 6 +++--- example/android/app/src/main/AndroidManifest.xml | 1 + example/android/build.gradle | 4 ++-- example/package.json | 2 +- expo-example/package.json | 2 +- package.json | 2 +- react-native-paymentsdk.podspec | 2 +- src/PaymentSDKConstants.js | 2 +- 9 files changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 3aa2c4f..3619fbf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # react-native-paytabs -![Version](https://img.shields.io/badge/React%20Native%20Paytabs-v2.3.10-green) +![Version](https://img.shields.io/badge/React%20Native%20Paytabs-v2.3.11-green) React native paytabs library is a wrapper for the native PayTabs Android and iOS SDKs, It helps you integrate with PayTabs seamlessly. @@ -12,7 +12,7 @@ Library Support: # Installation ```sh -$ npm install @paytabs/react-native-paytabs@2.3.10 --save --force +$ npm install @paytabs/react-native-paytabs@2.3.11 --save --force ``` ### Expo @@ -279,7 +279,7 @@ configuration.transactionType = PaymentSDKConstants.TransactionType.sale * Alternative payment methods ```javascript -AlternativePaymentMethod = {"unionPay":"unionpay", "stcPay":"stcpay", "valu": "valu", "meezaQR": "meezaqr", "omannet": "omannet", "knetCredit": "knetcredit", "knetDebit": "knetdebit", "fawry": "fawry"}; +AlternativePaymentMethod = {"unionPay":"unionpay", "stcPay":"stcpay", "valu": "valu", "meezaQR": "meezaqr", "omannet": "omannet", "knetCredit": "knetcredit", "knetDebit": "knetdebit", "fawry": "fawry", "aman": "aman", "urpay": "urpay"}; ``` ```javascript diff --git a/android/build.gradle b/android/build.gradle index 735e69f..d8367d0 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -10,10 +10,10 @@ // original location: // - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle -def DEFAULT_COMPILE_SDK_VERSION = 28 +def DEFAULT_COMPILE_SDK_VERSION = 31 def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3' def DEFAULT_MIN_SDK_VERSION = 21 -def DEFAULT_TARGET_SDK_VERSION = 28 +def DEFAULT_TARGET_SDK_VERSION = 31 def safeExtGet(prop, fallback) { rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback @@ -164,6 +164,6 @@ repositories { dependencies { implementation 'com.facebook.react:react-native:+' - implementation 'com.paytabs:payment-sdk:6.2.5' + implementation 'com.paytabs:payment-sdk:6.2.12' } \ No newline at end of file diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 6e27a2a..f8c07f2 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -15,6 +15,7 @@ android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:launchMode="singleTask" + android:exported="true" android:windowSoftInputMode="adjustResize"> diff --git a/example/android/build.gradle b/example/android/build.gradle index 2396e62..51eacd1 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -4,8 +4,8 @@ buildscript { ext { buildToolsVersion = "29.0.2" minSdkVersion = 21 - compileSdkVersion = 29 - targetSdkVersion = 29 + compileSdkVersion = 31 + targetSdkVersion = 31 } repositories { google() diff --git a/example/package.json b/example/package.json index 63cea79..2ec155d 100644 --- a/example/package.json +++ b/example/package.json @@ -10,7 +10,7 @@ "lint": "eslint ." }, "dependencies": { - "@paytabs/react-native-paytabs": "^2.3.10", + "@paytabs/react-native-paytabs": "^2.3.11", "react": "16.13.1", "react-native": "^0.64.0" }, diff --git a/expo-example/package.json b/expo-example/package.json index 0ac4c5a..6b1a4fa 100644 --- a/expo-example/package.json +++ b/expo-example/package.json @@ -7,7 +7,7 @@ "eject": "expo eject" }, "dependencies": { - "@paytabs/react-native-paytabs": "2.3.7", + "@paytabs/react-native-paytabs": "2.3.11", "expo": "~41.0.1", "expo-splash-screen": "~0.10.2", "expo-status-bar": "~1.0.4", diff --git a/package.json b/package.json index 94a76ba..af45c2b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@paytabs/react-native-paytabs", "title": "React Native Paytabs", - "version": "2.3.10", + "version": "2.3.11", "description": "Paytabs React-Native Library", "main": "index.js", "typings": "./index.d.ts", diff --git a/react-native-paymentsdk.podspec b/react-native-paymentsdk.podspec index c148ac5..aa2199c 100644 --- a/react-native-paymentsdk.podspec +++ b/react-native-paymentsdk.podspec @@ -22,6 +22,6 @@ Pod::Spec.new do |s| s.requires_arc = true s.swift_version = '5.0' s.dependency "React" - s.dependency "PayTabsSDK", '6.1.11' + s.dependency "PayTabsSDK", '6.1.21' end diff --git a/src/PaymentSDKConstants.js b/src/PaymentSDKConstants.js index 15f0118..db498a0 100644 --- a/src/PaymentSDKConstants.js +++ b/src/PaymentSDKConstants.js @@ -4,5 +4,5 @@ export default class PaymentSDKConstants { static TokeniseFromat = {"none":"1", "hex32": "2", "alphaNum20": "3", "digit22": "3", "digit16": "5", "alphaNum32": "6"}; static TransactionType = {"sale":"sale", "authorize": "auth"}; static TransactionClass = {"ecom":"ecom", "recurring":"recur"}; - static AlternativePaymentMethod = {"unionPay":"unionpay", "stcPay":"stcpay", "valu": "valu", "meezaQR": "meezaqr", "omannet": "omannet", "knetCredit": "knetcredit", "knetDebit": "knetdebit", "fawry": "fawry"}; + static AlternativePaymentMethod = {"unionPay":"unionpay", "stcPay":"stcpay", "valu": "valu", "meezaQR": "meezaqr", "omannet": "omannet", "knetCredit": "knetcredit", "knetDebit": "knetdebit", "fawry": "fawry", "aman": "aman", "urpay": "urpay"}; }