@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 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.
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = "RNPinwheelSDK"
3
- s.version = "3.0.5"
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.0.5'
17
+ s.dependency 'PinwheelSDK', '3.1.1'
18
18
  end
@@ -41,7 +41,7 @@ rootProject.allprojects {
41
41
  }
42
42
  }
43
43
 
44
- def PW_ANDROID_SDK_VERSION = '3.0.4'
44
+ def PW_ANDROID_SDK_VERSION = '3.1.1'
45
45
 
46
46
  dependencies {
47
47
  def pwVersion = rootProject.hasProperty('pwVersion') ? rootProject.pwVersion : PW_ANDROID_SDK_VERSION
@@ -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.0.5")
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
- screen_name: string;
60
+ screenName: string;
61
61
  selectedEmployerId?: string;
62
62
  selectedEmployerName?: string;
63
63
  selectedPlatformId?: string;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Importing package.json here causes a problem with the folder structure when we npm pack and publish.
3
3
  */
4
- export declare const VERSION = "3.0.5";
4
+ export declare const VERSION = "3.1.1";
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Importing package.json here causes a problem with the folder structure when we npm pack and publish.
3
3
  */
4
- export const VERSION = '3.0.5';
4
+ export const VERSION = '3.1.1';
@@ -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.0.5"];
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinwheel/react-native-pinwheel",
3
- "version": "3.0.5",
3
+ "version": "3.1.1",
4
4
  "type": "module",
5
5
  "description": "Pinwheel React Native SDK",
6
6
  "main": "dist/index.js",