@momo-kits/native-kits 0.157.1-test.4-debug → 0.157.1-test.5-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.
@@ -40,7 +40,7 @@ kotlin {
40
40
  }
41
41
 
42
42
  cocoapods {
43
- version = "0.157.1-test.4-debug"
43
+ version = "0.157.1-test.5-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.157.1-test.2'
3
+ spec.version = '0.157.1-test.4'
4
4
  spec.homepage = 'https://momo.vn'
5
5
  spec.source = { :http=> ''}
6
6
  spec.authors = ''
@@ -86,7 +86,7 @@ data class ComponentInformation(
86
86
  val action: String? = null
87
87
  )
88
88
 
89
- var IsShowBaseLineDebug = true
89
+ var IsShowBaseLineDebug = false
90
90
 
91
91
  val ApplicationContext = staticCompositionLocalOf<MiniAppContext?> {
92
92
  null
@@ -1,7 +1,6 @@
1
1
  package vn.momo.kits.const
2
2
 
3
3
  import androidx.compose.runtime.Stable
4
- import androidx.compose.runtime.mutableStateOf
5
4
  import androidx.compose.runtime.staticCompositionLocalOf
6
5
  import androidx.compose.ui.graphics.Color
7
6
  import androidx.compose.ui.unit.dp
@@ -13,7 +13,6 @@ import androidx.compose.runtime.Composable
13
13
  import androidx.compose.runtime.CompositionLocalProvider
14
14
  import androidx.compose.runtime.DisposableEffect
15
15
  import androidx.compose.runtime.LaunchedEffect
16
- import androidx.compose.runtime.mutableStateOf
17
16
  import androidx.compose.runtime.remember
18
17
  import androidx.compose.runtime.staticCompositionLocalOf
19
18
  import androidx.compose.ui.unit.Dp
@@ -60,25 +59,20 @@ fun NavigationContainer(
60
59
  val parentContext = ApplicationContext.current
61
60
  val mergedContext = MiniAppContext.merge(parentContext, applicationContext)
62
61
 
63
- val theme = remember { mutableStateOf(initialTheme) }
64
-
65
- LaunchedEffect(Unit) {
66
- val headerBar = config?.headerBar
67
- if (headerBar != null && theme.value.assets.headerBackground == null) {
68
- theme.value = theme.value.copy(
69
- assets = ThemeAssets(
70
- headerBackground = headerBar
71
- )
72
- )
73
- }
62
+ val theme = if (config?.headerBar != null && initialTheme.assets.headerBackground == null) {
63
+ initialTheme.copy(assets = ThemeAssets(headerBackground = config.headerBar))
64
+ } else {
65
+ initialTheme
74
66
  }
75
67
 
76
- val startDestination = DynamicScreenRegistry.register(initialScreen, options)
68
+ val startDestination = remember {
69
+ DynamicScreenRegistry.register(initialScreen, options)
70
+ }
77
71
 
78
72
  CompositionLocalProvider(
79
73
  LocalNavigator provides navigator,
80
74
  LocalMaxApi provides maxApi,
81
- AppTheme provides theme.value,
75
+ AppTheme provides theme,
82
76
  AppStatusBar provides statusBarHeight,
83
77
  AppNavigationBar provides navigationBarHeight,
84
78
  ApplicationContext provides mergedContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.157.1-test.4-debug",
3
+ "version": "0.157.1-test.5-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},
package/local.properties DELETED
@@ -1,8 +0,0 @@
1
- ## This file must *NOT* be checked into Version Control Systems,
2
- # as it contains information specific to your local configuration.
3
- #
4
- # Location of the SDK. This is only used by Gradle.
5
- # For customization when using a Version Control System, please read the
6
- # header note.
7
- #Mon Dec 22 10:07:29 ICT 2025
8
- sdk.dir=/Users/phuc/Library/Android/sdk