Skip to content

Commit c7907a9

Browse files
committed
Bump package to 3.1.4
1 parent 42109a7 commit c7907a9

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ for Android & iOS by [Arttitude 360](http://www.arttitude360.com)
1313

1414
## 1. Description
1515

16-
This React Native module provides a wrapper to add Paystack Payments to your React Native application using the [Paystack Android Mobile SDK](https://github.com/PaystackHQ/paystack-android) and the [Paystack iOS Mobile SDK](https://github.com/PaystackHQ/paystack-ios) libraries.
16+
This React Native module provides a wrapper to add Paystack Payments to your React Native application using the [Paystack Android Mobile SDK](https://github.com/PaystackHQ/paystack-android) and the [Paystack iOS Mobile SDK](https://github.com/PaystackHQ/paystack-ios) libraries. If interested, there is a [Sample App](https://github.com/tolu360/vestarapp).
1717

1818
## 2. Installation
1919

@@ -29,8 +29,8 @@ yarn add react-native-paystack
2929
```
3030

3131
### Versioning
32-
- For `RN <=0.39` use version 2+ e.g. react-native-paystack@2.2.0
33-
- For `RN >=0.40` use version 3+ e.g. react-native-paystack@3.1.0
32+
- For `RN <=0.39` use version 2+ e.g. react-native-paystack@2.2.0 (No longer updated)
33+
- For `RN >=0.40` use version 3+ e.g. react-native-paystack@3.1.4
3434

3535
### Configuration
3636

@@ -89,6 +89,15 @@ protected List<ReactPackage> getPackages() {
8989
}
9090
```
9191

92+
#### More Config (Android v3.1.4+)
93+
- Update Gradle plugin to v3.0.0 for your app, follow the following steps if you are not sure how:
94+
* Edit your `~ android/build.gradle` to look similar to [build.gradle](https://github.com/tolu360/vestarapp/blob/master/android/build.gradle)
95+
* Edit your `~ android/gradle/wrapper/gradle-wrapper.properties` to look similar to [gradle-wrapper.properties](https://github.com/tolu360/vestarapp/blob/master/android/gradle/wrapper/gradle-wrapper.properties)
96+
97+
- Update your Android build tools and environment to v27+ after the Gradle plugin update
98+
* Edit your `~ android/app/build.gradle` to look similar to [build.gradle](https://github.com/tolu360/vestarapp/blob/master/android/app/build.gradle)
99+
100+
92101
## 3. Usage
93102

94103
### Import Library
@@ -107,7 +116,7 @@ protected List<ReactPackage> getPackages() {
107116
}
108117
```
109118

110-
- For Android, add the following tag in your `android/app/src/main/AndroidManifest.xml` file:
119+
- For Android, add the following tag in your `android/app/src/main/AndroidManifest.xml` file within the `<application></application>` tags:
111120

112121
```xml
113122
<meta-data android:name="co.paystack.android.PublicKey" android:value="INSERT-PUBLIC-KEY-HERE"/>
@@ -260,6 +269,8 @@ Perhaps needless to say, this module leverages the [Paystack Android SDK](https:
260269
+ 3.1.0: Retired support for `getToken` on both platforms.
261270
+ 3.1.0: Added support for `chargeCardWithAccessCode` on both platforms.
262271
+ 3.1.0: Upgraded to v3.*+ of both the Paystack iOS and Android SDKs.
272+
+ 3.1.1: Fix for breaking change in RN v0.47+
273+
* 3.1.4: Miscellaneous and dependencies update on Android
263274

264275
## 6. License
265276

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "React Native Wrappers for Paystack Android & iOS Mobile SDKs",
44
"main": "index.js",
55
"author": "Tolu Olowu (Arttitude 360) <tolu@arttitude360.com>",
6-
"version": "3.1.1",
6+
"version": "3.1.4",
77
"scripts": {
88
},
99
"repository": {
@@ -26,7 +26,7 @@
2626
"payments"
2727
],
2828
"peerDependencies": {
29-
"react": ">=15.4.0",
29+
"react": ">=15.4.0 || ^16.0.0-alpha",
3030
"react-native": ">=0.40.0"
3131
},
3232
"devDependencies": {

0 commit comments

Comments
 (0)