@pinwheel/react-native-pinwheel 3.0.2 → 3.0.4
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.
- package/.vscode/settings.json +4 -0
- package/CHANGELOG.md +21 -10
- package/RNPinwheelSDK.podspec +1 -1
- package/android/build.gradle +3 -3
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.js +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,19 +4,27 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
# 3.0.x Releases
|
|
6
6
|
|
|
7
|
-
- `3.0.x` Releases - [3.0.0](#300) | [3.0.1](#301) | [3.0.2](#302)
|
|
7
|
+
- `3.0.x` Releases - [3.0.0](#300) | [3.0.1](#301) | [3.0.2](#302) | [3.0.3](#303) | [3.0.4](#304)
|
|
8
8
|
|
|
9
9
|
---
|
|
10
|
+
### [3.0.4](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/3.0.4)
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
####
|
|
13
|
+
Bugfix: Normalize event names to lower case. Event names began firing as uppercase in versions 3.0.0 and 2.5.0.
|
|
14
|
+
|
|
15
|
+
### [3.0.3](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/3.0.3)
|
|
16
|
+
|
|
17
|
+
Changed Minimum Android SDK requirements to 22
|
|
18
|
+
|
|
19
|
+
### [3.0.2](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/3.0.2)
|
|
12
20
|
|
|
13
21
|
Changed Minimum Android SDK requirements to 22
|
|
14
22
|
|
|
15
|
-
### [3.0.1](https://
|
|
23
|
+
### [3.0.1](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/3.0.1)
|
|
16
24
|
|
|
17
25
|
Expand internal functionality to support a broader range of platforms and increase conversion rate.
|
|
18
26
|
|
|
19
|
-
### [3.0.0](https://
|
|
27
|
+
### [3.0.0](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/3.0.0)
|
|
20
28
|
|
|
21
29
|
This new major version bump introduces an updated API to support partner-based switches.
|
|
22
30
|
|
|
@@ -36,12 +44,15 @@ This new major version bump introduces an updated API to support partner-based s
|
|
|
36
44
|
|
|
37
45
|
## 2.5.x Releases
|
|
38
46
|
|
|
39
|
-
[2.5.0](#250) | [2.5.1](#251) | [2.5.2](#252)
|
|
47
|
+
[2.5.0](#250) | [2.5.1](#251) | [2.5.2](#252) | [2.5.3](#253)
|
|
40
48
|
|
|
41
49
|
---
|
|
42
|
-
### [2.5.
|
|
50
|
+
### [2.5.3](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/2.5.3)
|
|
43
51
|
|
|
44
|
-
|
|
52
|
+
####
|
|
53
|
+
Bugfix: Normalize event names to lower case. Event names began firing as uppercase in versions 3.0.0 and 2.5.0.
|
|
54
|
+
|
|
55
|
+
### [2.5.2](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/2.5.2)
|
|
45
56
|
|
|
46
57
|
Expand internal functionality to support a broader range of platforms and increase conversion rate.
|
|
47
58
|
|
|
@@ -103,15 +114,15 @@ Add CircleCI scripting and local scripts.
|
|
|
103
114
|
|
|
104
115
|
Use node 16.7.0 instead of 12.16.1 to install dependencies.
|
|
105
116
|
|
|
106
|
-
### [2.3.6](https://
|
|
117
|
+
### [2.3.6](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/2.3.6)
|
|
107
118
|
|
|
108
119
|
N/A
|
|
109
120
|
|
|
110
|
-
### [2.3.5](https://
|
|
121
|
+
### [2.3.5](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/2.3.5)
|
|
111
122
|
|
|
112
123
|
N/A
|
|
113
124
|
|
|
114
|
-
### [2.3.4](https://
|
|
125
|
+
### [2.3.4](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/2.3.4)
|
|
115
126
|
|
|
116
127
|
#### Added
|
|
117
128
|
|
package/RNPinwheelSDK.podspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
2
|
s.name = "RNPinwheelSDK"
|
|
3
|
-
s.version = "3.0.
|
|
3
|
+
s.version = "3.0.4"
|
|
4
4
|
s.summary = "React Native plugin for Pinwheel's SDK"
|
|
5
5
|
s.description = <<-DESC
|
|
6
6
|
An open source React Native plugin for calling Pinwheel's native SDKs to manage payroll data.
|
package/android/build.gradle
CHANGED
|
@@ -16,11 +16,11 @@ apply plugin: 'com.android.library'
|
|
|
16
16
|
apply plugin: 'kotlin-android'
|
|
17
17
|
|
|
18
18
|
android {
|
|
19
|
-
compileSdkVersion
|
|
19
|
+
compileSdkVersion 31
|
|
20
20
|
|
|
21
21
|
defaultConfig {
|
|
22
|
-
minSdkVersion
|
|
23
|
-
targetSdkVersion
|
|
22
|
+
minSdkVersion 22
|
|
23
|
+
targetSdkVersion 31
|
|
24
24
|
versionCode 1
|
|
25
25
|
versionName "1.0"
|
|
26
26
|
}
|
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,8 +14,12 @@ export default ({ linkToken, onLogin, onLoginAttempt, onSuccess, onError, onExit
|
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
const { name, payload } = event;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
// Our Android SDK, since the beginning, has been firing events with upper case.
|
|
18
|
+
// Since we are now wrapping the Android SDK to create the RN SDK, we need to reconcile
|
|
19
|
+
// the event names here.
|
|
20
|
+
const normalizedName = name.toLowerCase();
|
|
21
|
+
onEvent && onEvent(normalizedName, payload);
|
|
22
|
+
switch (normalizedName) {
|
|
19
23
|
case 'exit':
|
|
20
24
|
// console.log(`case: exit, onExit: ${onExit}`);
|
|
21
25
|
onExit && onExit(payload);
|