@momo-kits/native-kits 0.300.4-debug → 0.300.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.
@@ -48,7 +48,7 @@ kotlin {
48
48
  }
49
49
 
50
50
  cocoapods {
51
- version = "0.300.4-debug"
51
+ version = "0.300.5-debug"
52
52
  summary = "IOS Shared module"
53
53
  homepage = "https://momo.vn"
54
54
  ios.deploymentTarget = "15.0"
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |spec|
2
2
  spec.name = 'compose'
3
- spec.version = '0.300.4-debug'
3
+ spec.version = '0.300.5-debug'
4
4
  spec.homepage = 'https://momo.vn'
5
5
  spec.source = { :http=> ''}
6
6
  spec.authors = ''
@@ -6,15 +6,15 @@ import platform.Foundation.NSNotification
6
6
  import platform.Foundation.NSNotificationCenter
7
7
  import platform.Foundation.NSOperationQueue
8
8
  import platform.darwin.NSObjectProtocol
9
+ import vn.momo.maxapi.contract.observability.logging.model.LogLevel
9
10
 
10
11
  private const val STATUS_BAR_TAPPED_NOTIFICATION = "statusBarSelected"
11
12
 
12
13
  @Composable
13
14
  internal actual fun RegisterScrollToTop(callback: (() -> Unit)?) {
14
15
  val maxApi = LocalMaxApi.current
15
- // AI-GENERATED START: capture the current typed logger client
16
16
  DisposableEffect(callback, maxApi) {
17
- // AI-GENERATED END: capture the current typed logger client
17
+ val logger = if (callback != null) maxApi?.openLogger() else null
18
18
  val token: NSObjectProtocol? = if (callback != null) {
19
19
  NSNotificationCenter.defaultCenter.addObserverForName(
20
20
  name = STATUS_BAR_TAPPED_NOTIFICATION,
@@ -22,15 +22,13 @@ internal actual fun RegisterScrollToTop(callback: (() -> Unit)?) {
22
22
  queue = NSOperationQueue.mainQueue,
23
23
  ) { _: NSNotification? ->
24
24
  runCatching { callback() }.onFailure {
25
- // AI-GENERATED START: use typed host logging
26
- maxApi?.writeLog("[ScrollToTop] callback threw: ${it.message}")
27
- // AI-GENERATED END: use typed host logging
28
-
25
+ logger?.log(LogLevel.ERROR, "[ScrollToTop] callback failed")
29
26
  }
30
27
  }
31
28
  } else null
32
29
  onDispose {
33
30
  token?.let { NSNotificationCenter.defaultCenter.removeObserver(it) }
31
+ logger?.close()
34
32
  }
35
33
  }
36
34
  }
@@ -19,7 +19,7 @@ androidx-appcompat = "1.7.0"
19
19
  material = "1.10.0"
20
20
  vanniktechMavenPublish = "0.34.0"
21
21
  kits = "0.167.1-duo.1"
22
- nativemaxapi = "0.3.9"
22
+ nativemaxapi = "0.3.11"
23
23
  gif-image = "0.1.2"
24
24
 
25
25
  [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.300.4
21
+ version=0.300.5
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.300.4'
3
+ s.version = '0.300.5'
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.300.4'
3
+ s.version = '0.300.5'
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.300.4-debug",
3
+ "version": "0.300.5-debug",
4
4
  "private": false,
5
5
  "dependeNavigationncies": {},
6
6
  "devDependencies": {},