@appboxo/expo-boxo-sdk 0.11.0 → 0.12.0
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
package/README.md
CHANGED
|
@@ -49,7 +49,6 @@ Set global configs
|
|
|
49
49
|
| **`clientId`** | <code>string</code> | your client id from dashboard |
|
|
50
50
|
| **`userId`** | <code>string</code> | hostapp userId, will be used for the Consent Management |
|
|
51
51
|
| **`sandboxMode`** | <code>boolean</code> | switch to sandbox mode |
|
|
52
|
-
| **`multitaskMode`** | <code>boolean</code> | Each miniapp appears as a task in the Recents screen. !It works only on android devices. |
|
|
53
52
|
| **`theme`** | <code>'light' \| 'dark' \| 'system'</code> | theme for splash screen and other native components used inside miniapp. |
|
|
54
53
|
| **`isDebug`** | <code>boolean</code> | enables webview debugging |
|
|
55
54
|
| **`showPermissionsPage`** | <code>boolean</code> | use it to hide "Settings" from Miniapp menu |
|
|
@@ -170,7 +169,6 @@ hideMiniapps()
|
|
|
170
169
|
```
|
|
171
170
|
|
|
172
171
|
Miniapp opens on a native screen. To show payment processing page need to hide miniapp screen.
|
|
173
|
-
To use this function need to enable 'enableMultitaskMode: true' in Appboxo.setConfigs()
|
|
174
172
|
|
|
175
173
|
--------------------
|
|
176
174
|
|
package/android/build.gradle
CHANGED
|
@@ -3,6 +3,7 @@ package io.boxo.expo
|
|
|
3
3
|
import android.os.Handler
|
|
4
4
|
import android.os.Looper
|
|
5
5
|
import android.graphics.Color
|
|
6
|
+
import androidx.fragment.app.FragmentActivity
|
|
6
7
|
import io.boxo.data.models.MiniappData
|
|
7
8
|
import io.boxo.data.models.PageAnimation
|
|
8
9
|
import io.boxo.data.models.ConsentScreenConfig
|
|
@@ -48,7 +49,6 @@ class ExpoBoxoSdkModule : Module() {
|
|
|
48
49
|
.setClientId(options.clientId)
|
|
49
50
|
.setUserId(options.userId)
|
|
50
51
|
.sandboxMode(options.sandboxMode)
|
|
51
|
-
.multitaskMode(options.multitaskMode)
|
|
52
52
|
.setTheme(globalTheme)
|
|
53
53
|
.setLanguage(options.language)
|
|
54
54
|
.permissionsPage(options.showPermissionsPage)
|
|
@@ -197,7 +197,7 @@ class ExpoBoxoSdkModule : Module() {
|
|
|
197
197
|
configBuilder.enableSplash(options.enableSplash)
|
|
198
198
|
configBuilder.saveState(options.saveState)
|
|
199
199
|
miniapp.setConfig(configBuilder.build())
|
|
200
|
-
miniapp.open(appContext.currentActivity
|
|
200
|
+
miniapp.open(appContext.currentActivity as FragmentActivity)
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
Function("setAuthCode") { appId: String, authCode: String ->
|
package/ios/ConfigOptions.swift
CHANGED