@pinwheel/react-native-pinwheel 3.0.5 → 3.1.1
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/CHANGELOG.md +9 -1
- package/RNPinwheelSDK.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/underdog_tech/react/PinwheelViewManager.kt +7 -1
- package/dist/client-events/registry/v2.3.d.ts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/ios/RNTPinwheelView.m +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,18 @@ 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) | [3.0.3](#303) | [3.0.4](#304) | [3.0.5](#305)
|
|
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) | [3.0.5](#305) | [3.1.0](#310) | [3.1.1](#311)
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
+
### [3.1.1](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/3.1.1)
|
|
12
|
+
|
|
13
|
+
Expand internal functionality to increase conversion rate and upgrade vulnerable dependencies.
|
|
14
|
+
|
|
15
|
+
### [3.1.0](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/3.1.0)
|
|
16
|
+
|
|
17
|
+
Expand internal functionality to support a broader range of platforms and increase conversion rate. Fix the casing of the `screenName` field in the exported `ScreenTransitionEventPayload` event payload type.
|
|
18
|
+
|
|
11
19
|
### [3.0.5](https://www.npmjs.com/package/@pinwheel/react-native-pinwheel/v/3.0.5)
|
|
12
20
|
|
|
13
21
|
Expand internal functionality to support a broader range of platforms and increase conversion rate. Export `OtherEventPayload` event payload type for the `other_event` event.
|
package/RNPinwheelSDK.podspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
2
|
s.name = "RNPinwheelSDK"
|
|
3
|
-
s.version = "3.
|
|
3
|
+
s.version = "3.1.1"
|
|
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.
|
|
@@ -14,5 +14,5 @@ Pod::Spec.new do |s|
|
|
|
14
14
|
s.public_header_files = 'ios/**/*.h'
|
|
15
15
|
s.requires_arc = true
|
|
16
16
|
s.dependency "React"
|
|
17
|
-
s.dependency 'PinwheelSDK', '3.
|
|
17
|
+
s.dependency 'PinwheelSDK', '3.1.1'
|
|
18
18
|
end
|
package/android/build.gradle
CHANGED
|
@@ -11,6 +11,7 @@ import com.facebook.react.bridge.ReadableArray
|
|
|
11
11
|
import com.facebook.react.bridge.WritableMap
|
|
12
12
|
import com.facebook.react.bridge.WritableNativeMap
|
|
13
13
|
import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
14
|
+
import com.facebook.react.modules.systeminfo.ReactNativeVersion
|
|
14
15
|
import com.facebook.react.uimanager.ThemedReactContext
|
|
15
16
|
import com.facebook.react.uimanager.ViewGroupManager
|
|
16
17
|
import com.facebook.react.uimanager.annotations.ReactPropGroup
|
|
@@ -149,6 +150,11 @@ class PinwheelViewManager(
|
|
|
149
150
|
this.token = token
|
|
150
151
|
}
|
|
151
152
|
|
|
153
|
+
fun getReactNativeVersion(): String {
|
|
154
|
+
val version = ReactNativeVersion.VERSION
|
|
155
|
+
return "${version["major"]}.${version["minor"]}.${version["patch"]}"
|
|
156
|
+
}
|
|
157
|
+
|
|
152
158
|
/**
|
|
153
159
|
* Replace your React Native view with a custom fragment
|
|
154
160
|
*/
|
|
@@ -158,7 +164,7 @@ class PinwheelViewManager(
|
|
|
158
164
|
|
|
159
165
|
|
|
160
166
|
this.token?.let {
|
|
161
|
-
val pinwheelFragment = PinwheelFragment.newInstance(it, "react native", "3.
|
|
167
|
+
val pinwheelFragment = PinwheelFragment.newInstance(it, "react native", "3.1.1", getReactNativeVersion())
|
|
162
168
|
pinwheelFragment.pinwheelEventListener = this
|
|
163
169
|
val activity = reactContext.currentActivity as FragmentActivity
|
|
164
170
|
activity.supportFragmentManager
|
|
@@ -57,7 +57,7 @@ export type DdFormCreateEventPayload = {
|
|
|
57
57
|
};
|
|
58
58
|
export type DdFormDownloadEventPayload = {};
|
|
59
59
|
export type ScreenTransitionEventPayload = {
|
|
60
|
-
|
|
60
|
+
screenName: string;
|
|
61
61
|
selectedEmployerId?: string;
|
|
62
62
|
selectedEmployerName?: string;
|
|
63
63
|
selectedPlatformId?: string;
|
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
package/ios/RNTPinwheelView.m
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
- (void)initPinwheelWrapperVC {
|
|
20
20
|
if (self.token != nil && self.pinwheelWrapperVC == nil) {
|
|
21
|
-
self.pinwheelWrapperVC = [[PinwheelWrapperVC alloc] initWithToken:self.token delegate:self sdk:@"react native" version: @"3.
|
|
21
|
+
self.pinwheelWrapperVC = [[PinwheelWrapperVC alloc] initWithToken:self.token delegate:self sdk:@"react native" version: @"3.1.1"];
|
|
22
22
|
[self addSubview:self.pinwheelWrapperVC.view];
|
|
23
23
|
}
|
|
24
24
|
}
|