@momo-kits/native-kits 0.160.1-beta.6-debug → 0.160.1-beta.7-debug

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.
Files changed (33) hide show
  1. package/compose/build.gradle.kts +1 -1
  2. package/compose/compose.podspec +1 -1
  3. package/compose/src/androidMain/kotlin/vn/momo/kits/platform/Platform.android.kt +2 -1
  4. package/compose/src/commonMain/kotlin/vn/momo/kits/application/Context.kt +8 -7
  5. package/compose/src/commonMain/kotlin/vn/momo/kits/application/Screen.kt +4 -3
  6. package/compose/src/commonMain/kotlin/vn/momo/kits/components/BaselineView.kt +4 -0
  7. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Input.kt +5 -1
  8. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputSearch.kt +19 -14
  9. package/compose/src/commonMain/kotlin/vn/momo/kits/components/ScaleSizeScope.kt +17 -0
  10. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Typography.kt +27 -12
  11. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/NavigationContainer.kt +1 -0
  12. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackScreen.kt +2 -2
  13. package/compose/src/commonMain/kotlin/vn/momo/kits/platform/Platform.kt +14 -1
  14. package/compose/src/iosMain/kotlin/vn/momo/kits/platform/Platform.ios.kt +11 -7
  15. package/gradle/libs.versions.toml +1 -1
  16. package/gradle.properties +1 -1
  17. package/ios/Application/ApplicationEnvironment.swift +2 -6
  18. package/ios/Input/Input.swift +50 -21
  19. package/ios/Input/InputPhoneNumber.swift +17 -17
  20. package/ios/Typography/Text.swift +19 -14
  21. package/ios/Typography/Typography.swift +22 -1
  22. package/package.json +1 -1
  23. package/.claude/settings.local.json +0 -8
  24. package/example/ios/Example.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  25. package/example/ios/Example.xcworkspace/xcuserdata/huynhdung.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  26. package/example/ios/Example.xcworkspace/xcuserdata/huynhdung.xcuserdatad/xcschemes/xcschememanagement.plist +0 -5
  27. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/MoMoUIKits.xcscheme +0 -58
  28. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/Pods-Example.xcscheme +0 -58
  29. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/SDWebImage.xcscheme +0 -58
  30. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/SDWebImageSwiftUI.xcscheme +0 -58
  31. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/SkeletonUI.xcscheme +0 -58
  32. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/xcschememanagement.plist +0 -46
  33. package/local.properties +0 -8
@@ -40,7 +40,7 @@ kotlin {
40
40
  }
41
41
 
42
42
  cocoapods {
43
- version = "0.160.1-beta.6-debug"
43
+ version = "0.160.1-beta.7-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |spec|
2
2
  spec.name = 'compose'
3
- spec.version = '0.159.1-beta.7'
3
+ spec.version = '0.159.1-beta.12'
4
4
  spec.homepage = 'https://momo.vn'
5
5
  spec.source = { :http=> ''}
6
6
  spec.authors = ''
@@ -70,13 +70,14 @@ actual fun getScreenHeight(): Dp {
70
70
  return getScreenDimensions().height.dp + if (getOSVersion() >= 35) 0.dp else AppStatusBar.current + AppNavigationBar.current
71
71
  }
72
72
 
73
- actual fun getOSVersion(): Int = Build.VERSION.SDK_INT
73
+ actual fun getOSVersion(): OSVersion = OSVersion.Android(sdk = Build.VERSION.SDK_INT)
74
74
 
75
75
  @Composable
76
76
  actual fun LottieAnimation(
77
77
  path: String,
78
78
  tintColor: Color?,
79
79
  bgColor: Color?,
80
+ placedAsOverlay: Boolean,
80
81
  modifier: Modifier
81
82
  ) {
82
83
  val json = readJson(path)
@@ -6,9 +6,7 @@ import vn.momo.kits.components.TrustBannerData
6
6
 
7
7
  @Immutable
8
8
  data class FeatureFlags(
9
- val isBaselineEnabled: Boolean? = false,
10
- val isWhiteList: Boolean? = false,
11
- val allowFontScale: Boolean? = true,
9
+ val showBaseLineDebug: Boolean? = false,
12
10
  )
13
11
 
14
12
  @Immutable
@@ -30,6 +28,7 @@ data class MiniAppContext(
30
28
  val providerId: String = "",
31
29
  val permissions: List<Map<String, Any>>? = emptyList(),
32
30
  val features: FeatureFlags? = null,
31
+ val scaleSizeMaxRate: Float? = null,
33
32
  ) {
34
33
  companion object {
35
34
 
@@ -61,6 +60,7 @@ data class MiniAppContext(
61
60
  providerId = parent.providerId.ifBlank { child.providerId },
62
61
  permissions = if (!parent.permissions.isNullOrEmpty()) parent.permissions else child.permissions,
63
62
  features = mergeFeatureFlags(parent.features, child.features),
63
+ scaleSizeMaxRate = parent.scaleSizeMaxRate ?: child.scaleSizeMaxRate,
64
64
  )
65
65
  }
66
66
 
@@ -74,7 +74,7 @@ data class MiniAppContext(
74
74
  if (child == null) return parent
75
75
 
76
76
  return FeatureFlags(
77
- isBaselineEnabled = parent.isBaselineEnabled ?: child.isBaselineEnabled
77
+ showBaseLineDebug = parent.showBaseLineDebug ?: child.showBaseLineDebug
78
78
  )
79
79
  }
80
80
  }
@@ -88,13 +88,12 @@ data class ComponentInformation(
88
88
  val action: String? = null
89
89
  )
90
90
 
91
+ var IsShowBaseLineDebug = false
92
+
91
93
  val ApplicationContext = staticCompositionLocalOf<MiniAppContext?> {
92
94
  null
93
95
  }
94
96
 
95
- var IsShowBaseLineDebug = false
96
-
97
- var UseFontScaleSystem = true
98
97
  val AppConfig = staticCompositionLocalOf<KitConfig?> {
99
98
  null
100
99
  }
@@ -106,3 +105,5 @@ val AppLanguage = staticCompositionLocalOf<String?> {
106
105
  val LocalComponentInformation = staticCompositionLocalOf<ComponentInformation?> {
107
106
  null
108
107
  }
108
+
109
+ val ScaleSizeMaxRate = staticCompositionLocalOf<Float?> { null }
@@ -59,8 +59,9 @@ import vn.momo.kits.modifier.DeprecatedModifier
59
59
  import vn.momo.kits.modifier.conditional
60
60
  import vn.momo.kits.modifier.shadow
61
61
  import vn.momo.kits.navigation.component.SnackBar
62
- import vn.momo.kits.platform.getOSVersion
62
+ import vn.momo.kits.platform.supportsImePadding
63
63
  import vn.momo.kits.utils.getAppStatusBarHeight
64
+ import vn.momo.kits.utils.getNavigationBarHeight
64
65
 
65
66
  enum class HeaderType {
66
67
  DEFAULT,
@@ -102,7 +103,7 @@ fun Screen(
102
103
  val keyboardController = LocalSoftwareKeyboardController.current
103
104
 
104
105
  val isKeyboardVisible = isKeyboardVisible()
105
- val indicator = getAppStatusBarHeight()
106
+ val indicator = getNavigationBarHeight()
106
107
  val bottomPadding = if (isKeyboardVisible) 0.dp else indicator
107
108
 
108
109
  val headerHeight = if (animatedHeader !== null)
@@ -134,7 +135,7 @@ fun Screen(
134
135
  Box(
135
136
  Modifier.fillMaxSize()
136
137
  .background(backgroundColor ?: AppTheme.current.colors.background.default)
137
- .conditional(useAvoidKeyboard && getOSVersion() > 29) {
138
+ .conditional(useAvoidKeyboard && supportsImePadding()) {
138
139
  imePadding()
139
140
  }.then(DeprecatedModifier())
140
141
  ) {
@@ -21,6 +21,10 @@ import androidx.compose.ui.graphics.Color
21
21
  import androidx.compose.ui.graphics.PathEffect
22
22
  import androidx.compose.ui.graphics.StrokeCap
23
23
  import androidx.compose.ui.unit.dp
24
+ import io.ktor.util.Platform
25
+ import vn.momo.kits.application.IsShowBaseLineDebug
26
+ import vn.momo.kits.const.Colors
27
+ import vn.momo.kits.modifier.conditional
24
28
  import vn.momo.kits.platform.getPlatformName
25
29
  import vn.momo.kits.platform.getStatusBarHeight
26
30
 
@@ -221,6 +221,7 @@ fun Input(
221
221
  onBlur: () -> Unit = {},
222
222
  loading: Boolean = false,
223
223
  required: Boolean = false,
224
+ maxLength: Int? = null,
224
225
  fontWeight: InputFontWeight = InputFontWeight.REGULAR,
225
226
  keyboardType: KeyboardType = KeyboardType.Text,
226
227
  modifier: Modifier = Modifier,
@@ -319,7 +320,10 @@ fun Input(
319
320
  onBlur()
320
321
  }
321
322
  },
322
- onValueChange = onChangeText,
323
+ onValueChange = { newText ->
324
+ val limitedText = maxLength?.let { newText.take(it) } ?: newText
325
+ onChangeText(limitedText)
326
+ },
323
327
  decorationBox = { innerTextField ->
324
328
  // Floating label
325
329
  if (floatingValue.isNotEmpty() || floatingIcon.isNotEmpty()) {
@@ -105,6 +105,8 @@ data class InputSearchProps(
105
105
  val iconModifier: Modifier = Modifier,
106
106
  val onClearPress: () -> Unit = {},
107
107
  val leftPosition: Dp? = null,
108
+ val placeholderCustomRender: (@Composable () -> Unit)? = null,
109
+ val searchIcon: (@Composable () -> Unit)? = null
108
110
  )
109
111
 
110
112
  @Composable
@@ -145,12 +147,13 @@ fun InputSearch(
145
147
  )
146
148
  }
147
149
 
148
- Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier
149
- .fillMaxWidth()
150
- .height(36.dp)
151
- .conditional(IsShowBaseLineDebug) {
152
- border(1.dp, Colors.blue_03)
153
- }
150
+ Row(
151
+ verticalAlignment = Alignment.CenterVertically, modifier = Modifier
152
+ .fillMaxWidth()
153
+ .height(36.dp)
154
+ .conditional(IsShowBaseLineDebug) {
155
+ border(1.dp, Colors.blue_03)
156
+ }
154
157
  ) {
155
158
  BasicTextField(
156
159
  enabled = !inputSearchProps.disabled,
@@ -184,13 +187,14 @@ fun InputSearch(
184
187
  horizontalArrangement = Arrangement.Start,
185
188
  verticalAlignment = Alignment.CenterVertically
186
189
  ) {
190
+
187
191
  Row(
188
192
  modifier = Modifier.padding(
189
193
  horizontal = Spacing.M
190
194
  ),
191
195
  verticalAlignment = Alignment.CenterVertically
192
196
  ) {
193
- Icon(
197
+ inputSearchProps.searchIcon?.invoke() ?: Icon(
194
198
  source = "navigation_search",
195
199
  modifier = Modifier.padding(end = Spacing.XS),
196
200
  size = 24.dp,
@@ -198,13 +202,14 @@ fun InputSearch(
198
202
  )
199
203
  Box(Modifier.weight(1f)) {
200
204
  if (inputSearchProps.text.value.isEmpty()) {
201
- Text(
202
- text = inputSearchProps.placeholder,
203
- style = placeHolderStyle,
204
- maxLines = 1,
205
- color = placeholderColor,
206
- overflow = TextOverflow.Ellipsis
207
- )
205
+ inputSearchProps.placeholderCustomRender?.invoke()
206
+ ?: Text(
207
+ text = inputSearchProps.placeholder,
208
+ style = placeHolderStyle,
209
+ maxLines = 1,
210
+ color = placeholderColor,
211
+ overflow = TextOverflow.Ellipsis
212
+ )
208
213
  }
209
214
  innerTextField()
210
215
  }
@@ -0,0 +1,17 @@
1
+ package vn.momo.kits.components
2
+
3
+ import androidx.compose.runtime.Composable
4
+ import androidx.compose.runtime.CompositionLocalProvider
5
+ import vn.momo.kits.application.ScaleSizeMaxRate
6
+
7
+ @Composable
8
+ fun ScaleSizeScope(
9
+ scaleSizeMaxRate: Float? = null,
10
+ content: @Composable () -> Unit
11
+ ) {
12
+ CompositionLocalProvider(
13
+ ScaleSizeMaxRate provides scaleSizeMaxRate,
14
+ ) {
15
+ content()
16
+ }
17
+ }
@@ -7,11 +7,15 @@ import androidx.compose.ui.text.TextStyle
7
7
  import androidx.compose.ui.text.font.FontFamily
8
8
  import androidx.compose.ui.text.font.FontWeight
9
9
  import androidx.compose.ui.text.style.TextDecoration
10
- import androidx.compose.ui.unit.*
10
+ import androidx.compose.ui.unit.Dp
11
+ import androidx.compose.ui.unit.TextUnit
12
+ import androidx.compose.ui.unit.TextUnitType
13
+ import androidx.compose.ui.unit.dp
14
+ import androidx.compose.ui.unit.sp
11
15
  import org.jetbrains.compose.resources.Font
12
16
  import org.jetbrains.compose.resources.FontResource
13
17
  import org.jetbrains.compose.resources.InternalResourceApi
14
- import vn.momo.kits.application.UseFontScaleSystem
18
+ import vn.momo.kits.application.ScaleSizeMaxRate
15
19
  import vn.momo.kits.platform.getScreenDimensions
16
20
  import vn.momo.uikits.resources.Res
17
21
  import vn.momo.uikits.resources.momosignature
@@ -29,23 +33,34 @@ import kotlin.math.max
29
33
  import kotlin.math.min
30
34
 
31
35
  const val DEFAULT_SCREEN_SIZE = 375f
32
- const val MAX_FONT_SCALE = 1.2f
36
+ const val MAX_FONT_SCALE = 1.5f
37
+ const val MAX_DEVICE_SCALE = 5
33
38
 
34
39
  @Composable
35
40
  fun scaleSize(size: Float): Float {
36
- if (UseFontScaleSystem) {
37
- val deviceWidth = getScreenDimensions().width
38
- val deviceScale = deviceWidth / DEFAULT_SCREEN_SIZE
39
- val fontScale = LocalDensity.current.fontScale
41
+ val scaleSizeMaxRate: Float = ScaleSizeMaxRate.current ?: MAX_FONT_SCALE
42
+ val deviceWidth = getScreenDimensions().width
43
+ val deviceScale = deviceWidth / DEFAULT_SCREEN_SIZE
40
44
 
41
- val maxSize = size * MAX_FONT_SCALE
42
- val fontSizeScaleDevice = if (deviceScale > 1) deviceScale * size else size
43
- val fontSizeScaleOS = if (fontScale > 1) fontScale * size else size
45
+ val density = LocalDensity.current
46
+ val fontScale = density.fontScale
47
+
48
+ var fontSizeScaleDevice = size
49
+ var fontSizeScaleOS = size
44
50
 
45
- return min(max(fontSizeScaleDevice, fontSizeScaleOS), maxSize)
51
+ if (deviceScale > 1) {
52
+ fontSizeScaleDevice =
53
+ min(deviceScale * fontSizeScaleDevice, fontSizeScaleDevice + MAX_DEVICE_SCALE)
46
54
  }
47
55
 
48
- return size
56
+ if (fontScale > 1) {
57
+ fontSizeScaleOS = min(fontScale * fontSizeScaleOS, fontSizeScaleOS * scaleSizeMaxRate)
58
+ }
59
+
60
+ return max(
61
+ fontSizeScaleDevice,
62
+ fontSizeScaleOS
63
+ )
49
64
  }
50
65
 
51
66
  @Composable
@@ -61,6 +61,7 @@ fun NavigationContainer(
61
61
  ApplicationContext provides mergedContext,
62
62
  AppConfig provides config,
63
63
  AppLanguage provides language,
64
+ ScaleSizeMaxRate provides mergedContext?.scaleSizeMaxRate,
64
65
  ) {
65
66
  LaunchedEffect(Unit) {
66
67
  setNavigator?.invoke(navigator)
@@ -62,7 +62,7 @@ import vn.momo.kits.navigation.component.HeaderRight
62
62
  import vn.momo.kits.navigation.component.HeaderType
63
63
  import vn.momo.kits.navigation.component.InputSearchType
64
64
  import vn.momo.kits.platform.BackHandler
65
- import vn.momo.kits.platform.getOSVersion
65
+ import vn.momo.kits.platform.supportsImePadding
66
66
  import vn.momo.kits.navigation.tracking.ScreenTracker
67
67
  import vn.momo.kits.navigation.tracking.ScreenTrackingState
68
68
  import kotlinx.coroutines.delay
@@ -166,7 +166,7 @@ internal fun StackScreen(
166
166
  .conditional(options.keyboardOptions.keyboardShouldPersistTaps) {
167
167
  hideKeyboardOnTap()
168
168
  }
169
- .conditional(options.keyboardOptions.useAvoidKeyboard && getOSVersion() > 29) {
169
+ .conditional(options.keyboardOptions.useAvoidKeyboard && supportsImePadding()) {
170
170
  imePadding()
171
171
  }
172
172
  ) {
@@ -30,13 +30,26 @@ expect fun ProvideNavigationEventDispatcherOwner(content: @Composable () -> Unit
30
30
  @Composable
31
31
  expect fun getScreenHeight(): Dp
32
32
 
33
- expect fun getOSVersion(): Int
33
+ sealed interface OSVersion {
34
+ val value: Int
35
+ data class Android(val sdk: Int) : OSVersion { override val value: Int get() = sdk }
36
+ data class IOS(val major: Int) : OSVersion { override val value: Int get() = major }
37
+
38
+ operator fun compareTo(other: Int): Int = value.compareTo(other)
39
+ }
40
+ expect fun getOSVersion(): OSVersion
41
+
42
+ fun supportsImePadding(): Boolean = when (val v = getOSVersion()) {
43
+ is OSVersion.Android -> v.sdk > 29
44
+ is OSVersion.IOS -> true
45
+ }
34
46
 
35
47
  @Composable
36
48
  expect fun LottieAnimation(
37
49
  path: String,
38
50
  tintColor: Color? = null,
39
51
  bgColor: Color? = null,
52
+ placedAsOverlay: Boolean = false,
40
53
  modifier: Modifier = Modifier
41
54
  )
42
55
 
@@ -12,17 +12,19 @@ import androidx.compose.runtime.getValue
12
12
  import androidx.compose.runtime.mutableStateOf
13
13
  import androidx.compose.runtime.remember
14
14
  import androidx.compose.runtime.setValue
15
+ import androidx.compose.ui.ExperimentalComposeUiApi
15
16
  import androidx.compose.ui.InternalComposeUiApi
16
17
  import androidx.compose.ui.Modifier
17
18
  import androidx.compose.ui.backhandler.LocalCompatNavigationEventDispatcherOwner
18
19
  import androidx.compose.ui.graphics.Color
19
20
  import androidx.compose.ui.graphics.NativePaint
20
21
  import androidx.compose.ui.graphics.toArgb
21
- import androidx.compose.ui.interop.UIKitView
22
22
  import androidx.compose.ui.semantics.SemanticsPropertyKey
23
23
  import androidx.compose.ui.semantics.semantics
24
24
  import androidx.compose.ui.unit.Dp
25
25
  import androidx.compose.ui.unit.dp
26
+ import androidx.compose.ui.viewinterop.UIKitInteropProperties
27
+ import androidx.compose.ui.viewinterop.UIKitView
26
28
  import cocoapods.lottie_ios.CompatibleAnimation
27
29
  import cocoapods.lottie_ios.CompatibleAnimationKeypath
28
30
  import cocoapods.lottie_ios.CompatibleAnimationView
@@ -85,16 +87,17 @@ actual fun getScreenHeight(): Dp {
85
87
  return getScreenDimensions().height.dp
86
88
  }
87
89
 
88
- actual fun getOSVersion(): Int {
89
- return UIDevice.currentDevice.systemVersion.substringBefore(".").toIntOrNull() ?: 0
90
- }
90
+ actual fun getOSVersion(): OSVersion = OSVersion.IOS(
91
+ major = UIDevice.currentDevice.systemVersion.substringBefore(".").toIntOrNull() ?: 0
92
+ )
91
93
 
92
- @OptIn(ExperimentalForeignApi::class)
94
+ @OptIn(ExperimentalForeignApi::class, ExperimentalComposeUiApi::class)
93
95
  @Composable
94
96
  actual fun LottieAnimation(
95
97
  path: String,
96
98
  tintColor: Color?,
97
99
  bgColor: Color?,
100
+ placedAsOverlay: Boolean,
98
101
  modifier: Modifier
99
102
  ) {
100
103
  var animation by remember { mutableStateOf<CompatibleAnimation?>(null) }
@@ -112,11 +115,12 @@ actual fun LottieAnimation(
112
115
  Box(modifier) {
113
116
  UIKitView(
114
117
  modifier = Modifier.fillMaxSize(),
118
+ properties = UIKitInteropProperties(placedAsOverlay = placedAsOverlay),
115
119
  factory = {
116
120
  CompatibleAnimationView(value).apply {
117
121
  translatesAutoresizingMaskIntoConstraints = true
118
122
 
119
- setBackgroundColor(bgColor?.toUIColor() ?: UIColor.whiteColor)
123
+ setBackgroundColor(bgColor?.toUIColor() ?: UIColor.clearColor)
120
124
 
121
125
  setLoopAnimationCount(-1.0)
122
126
  setAnimationSpeed(1.0)
@@ -137,7 +141,7 @@ actual fun LottieAnimation(
137
141
  },
138
142
 
139
143
  update = { view ->
140
- view.setBackgroundColor(bgColor?.toUIColor() ?: UIColor.whiteColor)
144
+ view.setBackgroundColor(bgColor?.toUIColor() ?: UIColor.clearColor)
141
145
 
142
146
  if (tintColor != null) {
143
147
  val uiColor = tintColor.toUIColor()
@@ -18,7 +18,7 @@ androidx-appcompat = "1.7.0"
18
18
  material = "1.10.0"
19
19
  maxapi = "0.1.1"
20
20
  vanniktechMavenPublish = "0.34.0"
21
- kits = "0.160.1-beta.6"
21
+ kits = "0.159.1-beta.7"
22
22
  nativemaxapi = "0.0.6"
23
23
 
24
24
  [libraries]
package/gradle.properties CHANGED
@@ -18,7 +18,7 @@ kotlin.apple.xcodeCompatibility.nowarn=true
18
18
  name="ComposeKits"
19
19
  group=vn.momo.kits
20
20
  artifact.id=kits
21
- version=0.160.1-beta.6
21
+ version=0.159.1-beta.16
22
22
 
23
23
  repo=GitLab
24
24
  url=https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven
@@ -17,7 +17,7 @@ public class MiniAppContext {
17
17
  public var toolkitConfig: [String: Any] = [:]
18
18
  public var providerId: String = "momo"
19
19
  public var permissions: [[String: Any]] = []
20
-
20
+
21
21
  public init(appId: String, appCode: String, appName: Any? = nil, appIcon: String, description: Any? = nil, support: [String: Any] = [:], toolkitConfig: [String: Any] = [:], providerId: String = "momo", permissions: [[String: Any]] = []) {
22
22
  self.appId = appId
23
23
  self.appCode = appCode
@@ -37,15 +37,11 @@ public class KitConfig {
37
37
  public var headerGradient: String? = nil
38
38
  }
39
39
 
40
- public var IsShowBaseLineDebug = false
41
-
42
- public var UseFontScaleSystem = true
43
-
44
40
  public class ApplicationEnvironment: ObservableObject {
45
41
  let applicationContext: MiniAppContext?
46
42
  let composeApi: KitComposeApi?
47
43
  let config: KitConfig?
48
-
44
+
49
45
  public init(applicationContext: MiniAppContext? = nil, composeApi: KitComposeApi? = nil, config: KitConfig? = nil) {
50
46
  self.applicationContext = applicationContext
51
47
  self.composeApi = composeApi