@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.
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
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