@momo-kits/native-kits 0.164.1-beta.13-debug → 0.164.1-beta.14-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.164.1-beta.13-debug"
43
+ version = "0.164.1-beta.14-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.164.1-beta.13-debug'
3
+ spec.version = '0.164.1-beta.14-debug'
4
4
  spec.homepage = 'https://momo.vn'
5
5
  spec.source = { :http=> ''}
6
6
  spec.authors = ''
@@ -172,35 +172,21 @@ internal fun StackScreen(
172
172
  // Port of RN's `hasCustomBackHandling`: this handler is registered inside the NavHost
173
173
  // destination, so while it is enabled it beats NavHost's own predictive-back handler and
174
174
  // swallows the swipe. Enable it only when a plain pop is the wrong answer.
175
+ val canPop = navigator.canPop()
176
+
177
+ // `isBottomTabChild` used to be a term here, which swallowed the swipe on every tab screen:
178
+ // this handler out-ranks NavHost's predictive-back one and BackEventHandler implements only
179
+ // onBackCompleted, so back still landed but nothing seeked. The root case it was guarding is
180
+ // already covered by `!canPop` below, and letting a tab screen through means the nested tab
181
+ // NavHost seeks its own transition back to the previous tab.
175
182
  val hasCustomBackHandling = !SwipeBackConfig.enabled ||
176
- isBottomTabChild ||
177
183
  options.onBackHandler != null ||
178
184
  options.headerBackProps.preventBack != null ||
179
185
  OverplayComponentRegistry.isOverplayShowing() ||
180
- !navigator.canPop()
186
+ !canPop
181
187
 
182
188
  BackHandler(hasCustomBackHandling) { navigator.onBackSafe() }
183
189
 
184
- // TEMPORARY DIAGNOSTIC (DS-760) — remove once the swallowing term is known.
185
- // While this handler is enabled it out-ranks NavHost's predictive-back handler, so the back
186
- // still lands on release but nothing seeks: the pop works and the transition is missing,
187
- // which is exactly what is being reported. The test device has no Xcode, so the one channel
188
- // known to reach it reports which of the six terms is true. Distinct styles, felt on entering
189
- // the screen; "medium" means the whole predicate is false and the seek should be running.
190
- LaunchedEffect(hasCustomBackHandling, options, isBottomTabChild) {
191
- val api = maxApi ?: return@LaunchedEffect
192
- val style = when {
193
- !SwipeBackConfig.enabled -> "heavy"
194
- isBottomTabChild -> "heavy"
195
- options.onBackHandler != null -> "rigid"
196
- options.headerBackProps.preventBack != null -> "soft"
197
- OverplayComponentRegistry.isOverplayShowing() -> "soft"
198
- !navigator.canPop() -> "heavy"
199
- else -> "medium"
200
- }
201
- runCatching { api.triggerEventVibration(style, callback = null) }
202
- }
203
-
204
190
  CompositionLocalProvider(
205
191
  StackScreenScrollableState provides options.scrollData.scrollState,
206
192
  LocalNavigation provides navigation,
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.164.1-beta.13
21
+ version=0.164.1-beta.14
22
22
 
23
23
  repo=GitLab
24
24
  url=https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'MoMoUIKits'
3
- s.version = '0.164.1-beta.13'
3
+ s.version = '0.164.1-beta.14'
4
4
  s.summary = 'MoMoUIKits for iOS'
5
5
  s.homepage = 'https://momo.vn'
6
6
  s.license = { :type => 'MIT' }
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'MoMoUIKitsDemo'
3
- s.version = '0.164.1-beta.13'
3
+ s.version = '0.164.1-beta.14'
4
4
  s.summary = 'Demo browser for MoMoUIKits SwiftUI components'
5
5
  s.homepage = 'https://momo.vn'
6
6
  s.license = { :type => 'MIT' }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.164.1-beta.13-debug",
3
+ "version": "0.164.1-beta.14-debug",
4
4
  "private": false,
5
5
  "dependeNavigationncies": {},
6
6
  "devDependencies": {},