@appboxo/expo-boxo-sdk 0.11.1 → 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
@@ -1,7 +1,10 @@
1
1
  # Changelog
2
- ## [0.11.1]
2
+ ## [0.12.0]
3
3
  - update android native sdk
4
+ - remove multitask mode (android)
4
5
 
6
+ ## [0.11.1]
7
+ - update android native sdk
5
8
 
6
9
  ## [0.11.0]
7
10
  - add splash screen configuration options
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
 
@@ -42,5 +42,6 @@ android {
42
42
  }
43
43
  }
44
44
  dependencies {
45
- implementation('io.boxo.sdk:boxo-android:1.39.1')
45
+ implementation('io.boxo.sdk:boxo-android:1.40.2')
46
+ implementation('androidx.fragment:fragment:1.8.5')
46
47
  }
@@ -16,9 +16,6 @@ class ConfigOptions : Record {
16
16
  @Field
17
17
  val sandboxMode: Boolean = false
18
18
 
19
- @Field
20
- val multitaskMode: Boolean = true
21
-
22
19
  @Field
23
20
  val theme: String = "system"
24
21
 
@@ -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 ->
@@ -20,9 +20,6 @@ struct ConfigOptions: Record {
20
20
  @Field
21
21
  var sandboxMode: Bool = false
22
22
 
23
- @Field
24
- var multitaskMode: Bool = true
25
-
26
23
  @Field
27
24
  var theme: String = "system"
28
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appboxo/expo-boxo-sdk",
3
- "version": "0.11.1",
3
+ "version": "0.12.0",
4
4
  "description": "Expo wrapper over Boxo SDK for IOS and Android.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",