@momo-kits/native-kits 0.162.2-test.22-debug → 0.162.2-test.23-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.162.2-test.22-debug"
43
+ version = "0.162.2-test.23-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.162.2-lottie.2'
3
+ spec.version = '0.162.2-test.22'
4
4
  spec.homepage = 'https://momo.vn'
5
5
  spec.source = { :http=> ''}
6
6
  spec.authors = ''
@@ -33,7 +33,6 @@ class Navigation(
33
33
  tintColor: Color? = null,
34
34
  footerComponent: (@Composable () -> Unit)? = null,
35
35
  floatingButtonProps: FloatingButtonProps? = null,
36
- applyContentBottomPadding: Boolean? = null,
37
36
  keyboardOptions: KeyboardOptions? = null
38
37
  ) {
39
38
  updateOptions(
@@ -50,7 +49,6 @@ class Navigation(
50
49
  tintColor = tintColor ?: options.tintColor,
51
50
  footerComponent = footerComponent ?: options.footerComponent,
52
51
  floatingButtonProps = floatingButtonProps ?: options.floatingButtonProps,
53
- applyContentBottomPadding = applyContentBottomPadding ?: options.applyContentBottomPadding,
54
52
  keyboardOptions = keyboardOptions ?: options.keyboardOptions,
55
53
  )
56
54
  )
@@ -86,9 +84,6 @@ data class NavigationOptions(
86
84
  val tintColor: Color? = null,
87
85
  val footerComponent: @Composable (() -> Unit)? = null,
88
86
  val floatingButtonProps: FloatingButtonProps? = null,
89
- // Reserve the bottom safe-area (navigation bar) padding on the content when there is no footer.
90
- // Set false for screens that draw edge-to-edge or handle their own bottom inset.
91
- val applyContentBottomPadding: Boolean = true,
92
87
  val keyboardOptions: KeyboardOptions = KeyboardOptions()
93
88
  ) {
94
89
  internal fun hasFooter() : Boolean = footerComponent != null
@@ -279,8 +279,8 @@ internal fun ColumnScope.MainContent(content: @Composable () -> Unit, isBottomTa
279
279
  .padding(
280
280
  bottom = when {
281
281
  options.hasFooter() || isBottomTabRoot -> 0.dp
282
- !options.applyContentBottomPadding -> 0.dp
283
282
  isBottomTabChild -> bottomTabBarInset() + (navigationBar - keyboardSizeState().value).coerceAtLeast(0.dp)
283
+ !options.scrollData.scrollable -> 0.dp
284
284
  else -> navigationBar
285
285
  }
286
286
  )
@@ -43,14 +43,12 @@ fun supportsImePadding(): Boolean = when (val v = getOSVersion()) {
43
43
  is OSVersion.Android -> v.sdk > 29
44
44
  is OSVersion.IOS -> true
45
45
  }
46
- /** Sentinel for [LottieAnimation.iterations] meaning "loop forever" (kept as the default). */
47
46
  const val LottieIterateForever: Int = Int.MAX_VALUE
48
47
 
49
- /** Event names emitted by [LottieAnimation.onEvent]. */
50
48
  object LottieEvent {
51
- const val Start = "start" // playback (re)started — isPlaying became true
52
- const val Pause = "pause" // playback paused — isPlaying became false
53
- const val Finish = "finish" // completed all iterations; never for LottieIterateForever
49
+ const val Start = "start"
50
+ const val Pause = "pause"
51
+ const val Finish = "finish"
54
52
  }
55
53
 
56
54
  @Composable
@@ -61,7 +59,6 @@ expect fun LottieAnimation(
61
59
  placedAsOverlay: Boolean = false,
62
60
  iterations: Int = LottieIterateForever,
63
61
  isPlaying: Boolean = true,
64
- // Single listener for playback events; receives a LottieEvent.* string.
65
62
  onEvent: ((String) -> Unit)? = null,
66
63
  modifier: Modifier = Modifier,
67
64
  useCompose: Boolean = false
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.162.2-test.22
21
+ version=0.162.2-test.23
22
22
 
23
23
  repo=GitLab
24
24
  url=https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.162.2-test.22-debug",
3
+ "version": "0.162.2-test.23-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},