@appboxo/react-native-sdk 1.14.0 → 1.15.2

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.
@@ -123,5 +123,5 @@ dependencies {
123
123
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
124
124
  //noinspection GradleDynamicVersion
125
125
  implementation 'com.facebook.react:react-native:+' // From node_modules
126
- implementation('io.boxo.sdk:boxo-android:1.42.0')
126
+ implementation('io.boxo.sdk:boxo-android:1.45.1')
127
127
  }
@@ -245,10 +245,15 @@ class RnappboxosdkModule(reactContext: ReactApplicationContext) :
245
245
  sendEvent(MINIAPP_LIFECYCLE_EVENT_NAME, params)
246
246
  }
247
247
 
248
- override fun onAuth(fragment: BoxoFragment, miniapp: Miniapp) {
248
+ override fun onAuth(fragment: BoxoFragment, miniapp: Miniapp, requiredFields: List<String>) {
249
249
  val params: WritableMap = Arguments.createMap()
250
250
  params.putString("app_id", miniapp.appId)
251
251
  params.putString("lifecycle", "onAuth")
252
+
253
+ val fields = Arguments.createArray()
254
+ requiredFields.forEach { item -> fields.pushString(item) }
255
+ params.putArray("required_fields", fields)
256
+
252
257
  sendEvent(MINIAPP_LIFECYCLE_EVENT_NAME, params)
253
258
  }
254
259
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appboxo/react-native-sdk",
3
3
  "title": "BoxoSDK for React Native",
4
- "version": "1.14.0",
4
+ "version": "1.15.2",
5
5
  "description": "BoxoSDK plugin for react native",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -22,7 +22,7 @@ Pod::Spec.new do |s|
22
22
  s.requires_arc = true
23
23
 
24
24
  s.dependency "React"
25
- s.dependency 'BoxoSDK', '1.28.0'
25
+ s.dependency 'BoxoSDK', '1.29.0'
26
26
  # ...
27
27
  # s.dependency "..."
28
28
  end