@momo-kits/native-kits 0.168.1-beta.27-debug → 0.168.1-beta.28-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.
@@ -20,12 +20,11 @@ private let floatingHeight = DuoMetrics.floatingTabBarHeight
20
20
  private let floatingPadding = Spacing.XS
21
21
  // the system bar sizes its pill to the tabs instead of stretching it across the display
22
22
  private let floatingItemWidth: CGFloat = 80
23
- // while pressed the selection bubble grows into a lens past the pill's edges
24
- private let lensScaleX: CGFloat = 1.2
25
- private let lensScaleY: CGFloat = 1.3
23
+ // the rail's badge stays inside the capsule: its end sits XXS off the cell's end edge
24
+ private let railBadgeMaxWidth = itemSize - Spacing.XXS * 2
25
+ private let railBadgeEndOffset = (itemSize - iconSize) / 2 - Spacing.XXS
26
26
  // Figma Home-2026 tab bar "Selection": brand pink at 8%
27
27
  private let selectionTintOpacity: Double = 0x14 / 255
28
- private let tabSpring = Animation.interpolatingSpring(mass: 0.8, stiffness: 220, damping: 18)
29
28
 
30
29
  /// Room tab screens leave for the Duo tab bar, provided by BottomTab to its tab StackScreens.
31
30
  struct DuoTabBarInsets: Equatable {
@@ -91,16 +90,20 @@ struct DuoTabBar: View {
91
90
  let selectedIndex: Int
92
91
  let onTabSelected: (Int) -> Void
93
92
  var compression = DuoBarCompression()
93
+ var onTabLongPress: ((Int) -> Void)?
94
+ /// A tick per tab the lens enters while dragged.
95
+ var onTick: () -> Void = {}
94
96
 
95
97
  @Environment(\.screenLayout) private var layout
96
98
 
97
99
  var body: some View {
98
100
  if let sideBar = layout.sideBar {
99
101
  DuoRailTabBar(sideBar: sideBar, items: items, floatingButton: floatingButton,
100
- selectedIndex: selectedIndex, onTabSelected: onTabSelected, compression: compression)
102
+ selectedIndex: selectedIndex, onTabSelected: onTabSelected, compression: compression,
103
+ onTabLongPress: onTabLongPress, onTick: onTick)
101
104
  } else {
102
- DuoFloatingTabBar(items: items, floatingButton: floatingButton,
103
- selectedIndex: selectedIndex, onTabSelected: onTabSelected)
105
+ DuoFloatingTabBar(items: items, floatingButton: floatingButton, selectedIndex: selectedIndex,
106
+ onTabSelected: onTabSelected, onTabLongPress: onTabLongPress, onTick: onTick)
104
107
  }
105
108
  }
106
109
  }
@@ -115,8 +118,11 @@ private struct DuoRailTabBar: View {
115
118
  let selectedIndex: Int
116
119
  let onTabSelected: (Int) -> Void
117
120
  let compression: DuoBarCompression
121
+ let onTabLongPress: ((Int) -> Void)?
122
+ let onTick: () -> Void
118
123
 
119
- @State private var pressedIndex: Int?
124
+ @Environment(\.accessibilityReduceMotion) private var reduceMotion
125
+ @StateObject private var selection = DuoLiquidSelection()
120
126
 
121
127
  private var isRight: Bool { sideBar.edge == .right }
122
128
 
@@ -124,11 +130,11 @@ private struct DuoRailTabBar: View {
124
130
  VStack(spacing: Spacing.M) {
125
131
  if compression.tabBarCompressed, items.indices.contains(selectedIndex) {
126
132
  SwiftUI.Button(action: compression.expandTabBar) {
127
- DuoTabIcon(item: items[selectedIndex], selected: true)
133
+ DuoTabIcon(item: items[selectedIndex], selected: true, badgeMaxWidth: railBadgeMaxWidth, inRail: true)
128
134
  .frame(width: itemSize, height: itemSize)
129
135
  .contentShape(Circle())
130
136
  }
131
- .buttonStyle(.plain)
137
+ .buttonStyle(DuoPressLiftStyle())
132
138
  .modifier(DuoBarMaterial(shape: Circle()))
133
139
  .accessibilityLabel(items[selectedIndex].label)
134
140
  .accessibilityIdentifier("bottom_tab_bar")
@@ -147,35 +153,51 @@ private struct DuoRailTabBar: View {
147
153
  .ignoresSafeArea()
148
154
  }
149
155
 
150
- /// Column of icon-only tab items with the sliding selection bubble.
156
+ private func select(_ index: Int) {
157
+ onTabSelected(index)
158
+ compression.onTabSelected()
159
+ }
160
+
161
+ /// Column of icon-only tab items with the sliding selection lens.
151
162
  private var rail: some View {
152
- ZStack(alignment: .top) {
153
- DuoSelectionMaterial(lens: pressedIndex != nil)
163
+ let selection = configured()
164
+ let lens = selection.lensScale
165
+ return ZStack(alignment: .top) {
166
+ DuoSelectionMaterial()
154
167
  .frame(width: railBubbleWidth, height: railBubbleHeight)
155
- .offset(y: railPadding - (railBubbleHeight - itemSize) / 2
156
- + CGFloat(pressedIndex ?? selectedIndex) * (itemSize + railGap))
157
- .animation(tabSpring, value: selectedIndex)
158
- .animation(tabSpring, value: pressedIndex)
168
+ .scaleEffect(x: lens.x * lens.across, y: lens.y * lens.along)
169
+ .offset(y: railPadding - (railBubbleHeight - itemSize) / 2 + selection.offset)
159
170
 
160
171
  VStack(spacing: railGap) {
161
172
  ForEach(items.indices, id: \.self) { index in
162
- SwiftUI.Button {
163
- onTabSelected(index)
164
- compression.onTabSelected()
165
- } label: {
166
- DuoTabIcon(item: items[index], selected: index == selectedIndex)
173
+ DuoLiquidTab(selection: selection, index: index, label: items[index].label,
174
+ selected: index == selectedIndex, onSelect: { select(index) }) { active in
175
+ DuoTabIcon(item: items[index], selected: active, badgeMaxWidth: railBadgeMaxWidth, inRail: true)
167
176
  .frame(width: itemSize, height: itemSize)
168
- .contentShape(Rectangle())
169
177
  }
170
- .buttonStyle(DuoLensPressStyle(index: index, pressedIndex: $pressedIndex))
171
- .accessibilityLabel(items[index].label)
172
178
  }
173
179
  }
174
180
  .padding(.vertical, railPadding)
175
181
  }
176
182
  .frame(width: itemSize)
183
+ .modifier(DuoLiquidInput(selection: selection, space: "DuoRail"))
177
184
  .modifier(DuoBarMaterial(shape: Capsule()))
185
+ .scaleEffect(selection.barScale)
178
186
  .accessibilityIdentifier("bottom_tab_bar")
187
+ .onAppear { selection.sync(index: selectedIndex) }
188
+ .onChange(of: selectedIndex) { selection.sync(index: $0) }
189
+ }
190
+
191
+ private func configured() -> DuoLiquidSelection {
192
+ selection.axis = .y
193
+ selection.count = items.count
194
+ selection.pitch = itemSize + railGap
195
+ selection.firstCenter = railPadding + itemSize / 2
196
+ selection.reduceMotion = reduceMotion
197
+ selection.onSelect = select
198
+ selection.onLongPress = onTabLongPress
199
+ selection.onTick = onTick
200
+ return selection
179
201
  }
180
202
  }
181
203
 
@@ -185,10 +207,13 @@ private struct DuoFloatingTabBar: View {
185
207
  let floatingButton: BottomTabFloatingButton?
186
208
  let selectedIndex: Int
187
209
  let onTabSelected: (Int) -> Void
210
+ let onTabLongPress: ((Int) -> Void)?
211
+ let onTick: () -> Void
188
212
 
189
213
  @Environment(\.screenLayout) private var layout
190
214
  @Environment(\.appTheme) private var theme
191
- @State private var pressedIndex: Int?
215
+ @Environment(\.accessibilityReduceMotion) private var reduceMotion
216
+ @StateObject private var selection = DuoLiquidSelection()
192
217
 
193
218
  private var barWidth: CGFloat {
194
219
  let margins = layout.insets.leading + layout.insets.trailing + 2 * DuoMetrics.floatingTabBarMargin
@@ -213,82 +238,139 @@ private struct DuoFloatingTabBar: View {
213
238
  }
214
239
 
215
240
  private var bar: some View {
216
- ZStack(alignment: .leading) {
217
- DuoSelectionMaterial(lens: pressedIndex != nil)
241
+ let selection = configured()
242
+ let lens = selection.lensScale
243
+ return ZStack(alignment: .leading) {
244
+ DuoSelectionMaterial()
218
245
  .frame(width: cellWidth)
219
- .offset(x: CGFloat(pressedIndex ?? selectedIndex) * cellWidth)
220
- .animation(tabSpring, value: selectedIndex)
221
- .animation(tabSpring, value: pressedIndex)
246
+ .scaleEffect(x: lens.x * lens.along, y: lens.y * lens.across)
247
+ .offset(x: selection.offset)
222
248
 
223
249
  HStack(spacing: 0) {
224
250
  ForEach(items.indices, id: \.self) { index in
225
- tabCell(index)
251
+ DuoLiquidTab(selection: selection, index: index, label: items[index].label,
252
+ selected: index == selectedIndex, onSelect: { onTabSelected(index) }) { active in
253
+ tabCell(index, active: active)
254
+ }
226
255
  }
227
256
  }
228
257
  }
258
+ .modifier(DuoLiquidInput(selection: selection, space: "DuoFloatingBar"))
229
259
  .padding(floatingPadding)
230
260
  .frame(width: barWidth, height: floatingHeight)
231
261
  .modifier(DuoBarMaterial(shape: Capsule()))
262
+ .scaleEffect(selection.barScale)
232
263
  .accessibilityIdentifier("bottom_tab_bar")
264
+ .onAppear { selection.sync(index: selectedIndex) }
265
+ .onChange(of: selectedIndex) { selection.sync(index: $0) }
266
+ .onChange(of: cellWidth) { _ in selection.sync(index: selectedIndex) }
233
267
  }
234
268
 
235
- private func tabCell(_ index: Int) -> some View {
236
- let selected = index == selectedIndex
237
- return SwiftUI.Button { onTabSelected(index) } label: {
238
- VStack(spacing: Spacing.XXS) {
239
- DuoTabIcon(item: items[index], selected: selected)
240
- MomoText(
241
- items[index].label,
242
- typography: .labelXsMedium,
243
- color: selected ? theme.colors.primary : theme.colors.text.hint,
244
- textAlign: .center,
245
- maxLines: 1
246
- )
247
- // like the system tab bar the label keeps its design size; a constant snapshot, nothing to observe
248
- .environment(\.momoFontScale, FontScale(userScaleRate: 1, useOSScaleRate: false))
249
- }
250
- .frame(width: cellWidth)
251
- .frame(maxHeight: .infinity)
269
+ private func configured() -> DuoLiquidSelection {
270
+ selection.axis = .x
271
+ selection.count = items.count
272
+ selection.pitch = cellWidth
273
+ selection.firstCenter = cellWidth / 2
274
+ selection.reduceMotion = reduceMotion
275
+ selection.onSelect = onTabSelected
276
+ selection.onLongPress = onTabLongPress
277
+ selection.onTick = onTick
278
+ return selection
279
+ }
280
+
281
+ private func tabCell(_ index: Int, active: Bool) -> some View {
282
+ VStack(spacing: Spacing.XXS) {
283
+ DuoTabIcon(item: items[index], selected: active, badgeMaxWidth: cellWidth / 2 - Spacing.XXS)
284
+ MomoText(
285
+ items[index].label,
286
+ typography: .labelXsMedium,
287
+ color: active ? theme.colors.primary : theme.colors.text.hint,
288
+ textAlign: .center,
289
+ maxLines: 1
290
+ )
291
+ // like the system tab bar the label keeps its design size; a constant snapshot, nothing to observe
292
+ .environment(\.momoFontScale, FontScale(userScaleRate: 1, useOSScaleRate: false))
293
+ }
294
+ .frame(width: cellWidth)
295
+ .frame(maxHeight: .infinity)
296
+ }
297
+ }
298
+
299
+ /// One gesture over the whole bar drives the selection; SwiftUI drops `onEnded` when the system
300
+ /// cancels a touch, so the reset of the gesture state ends it instead.
301
+ private struct DuoLiquidInput: ViewModifier {
302
+ let selection: DuoLiquidSelection
303
+ let space: String
304
+
305
+ @GestureState private var touching = false
306
+
307
+ func body(content: Content) -> some View {
308
+ content
309
+ .coordinateSpace(name: space)
252
310
  .contentShape(Rectangle())
311
+ .gesture(
312
+ DragGesture(minimumDistance: 0, coordinateSpace: .named(space))
313
+ .updating($touching) { _, state, _ in state = true }
314
+ .onChanged { selection.touchChanged(location: $0.location, translation: $0.translation, time: $0.time) }
315
+ .onEnded { selection.touchEnded(location: $0.location) }
316
+ )
317
+ .onChange(of: touching) { if !$0 { selection.touchCancelled() } }
318
+ }
319
+ }
320
+
321
+ /// A tab drawn twice, inactive with the active layer over it fading in as the lens passes;
322
+ /// the tab the lens lands on pops.
323
+ private struct DuoLiquidTab<Content: View>: View {
324
+ @ObservedObject var selection: DuoLiquidSelection
325
+ let index: Int
326
+ let label: String
327
+ let selected: Bool
328
+ let onSelect: () -> Void
329
+ @ViewBuilder let content: (_ active: Bool) -> Content
330
+
331
+ var body: some View {
332
+ ZStack {
333
+ content(false)
334
+ content(true).opacity(selection.activeOpacity(index))
253
335
  }
254
- .buttonStyle(DuoLensPressStyle(index: index, pressedIndex: $pressedIndex))
255
- .accessibilityLabel(items[index].label)
336
+ .scaleEffect(selection.popIndex == index ? selection.pop : 1)
337
+ .accessibilityElement(children: .ignore)
338
+ .accessibilityLabel(label)
339
+ .accessibilityAddTraits(selected ? [.isButton, .isSelected] : .isButton)
340
+ .accessibilityAction { onSelect() }
256
341
  }
257
342
  }
258
343
 
259
- /// Pink tinted capsule under the selected tab; while pressed it grows into a lens (80x54 to about 96x70).
344
+ /// Pink tinted capsule under the selected tab.
260
345
  private struct DuoSelectionMaterial: View {
261
- let lens: Bool
262
-
263
346
  @Environment(\.appTheme) private var theme
264
347
 
265
348
  var body: some View {
266
349
  Capsule()
267
350
  .fill(theme.colors.primary.opacity(selectionTintOpacity))
268
- .scaleEffect(x: lens ? lensScaleX : 1, y: lens ? lensScaleY : 1)
269
351
  .allowsHitTesting(false)
270
352
  }
271
353
  }
272
354
 
273
- /// Tracks the finger so the selection lens jumps to the pressed tab before it is selected.
274
- private struct DuoLensPressStyle: ButtonStyle {
275
- let index: Int
276
- @Binding var pressedIndex: Int?
355
+ /// Lift of a single button, e.g. the compressed rail (RN `usePressLift`).
356
+ private struct DuoPressLiftStyle: ButtonStyle {
357
+ @Environment(\.accessibilityReduceMotion) private var reduceMotion
277
358
 
278
359
  func makeBody(configuration: Configuration) -> some View {
279
- configuration.label.onChange(of: configuration.isPressed) { pressed in
280
- if pressed {
281
- pressedIndex = index
282
- } else if pressedIndex == index {
283
- pressedIndex = nil
284
- }
285
- }
360
+ configuration.label
361
+ .scaleEffect(configuration.isPressed && !reduceMotion ? 1 + (liquidLensScaleX - 1) * 0.5 : 1)
362
+ .animation(liquidSpring, value: configuration.isPressed)
286
363
  }
287
364
  }
288
365
 
366
+ /// Floating bar: the badge starts at the icon's center and grows toward the cell's end edge.
367
+ /// Rail: it ends just inside the capsule and grows back over the icon (RN TabBarIcon `end: -3`).
368
+ /// Capped at `badgeMaxWidth` (an overlay alone would only offer it the icon's 28pt).
289
369
  private struct DuoTabIcon: View {
290
370
  let item: BottomTabItem
291
371
  let selected: Bool
372
+ let badgeMaxWidth: CGFloat
373
+ var inRail = false
292
374
 
293
375
  @Environment(\.appTheme) private var theme
294
376
 
@@ -300,10 +382,15 @@ private struct DuoTabIcon: View {
300
382
 
301
383
  var body: some View {
302
384
  Icon(source: item.icon, size: iconSize, color: selected ? theme.colors.primary : theme.colors.text.hint)
303
- .overlay(alignment: .topTrailing) {
385
+ .overlay(alignment: inRail ? .topTrailing : .topLeading) {
304
386
  if let badgeLabel, !badgeLabel.isEmpty {
305
- Badge(label: badgeLabel).offset(x: Spacing.S, y: -Spacing.XS)
306
- } else if badgeLabel != nil || item.showDot {
387
+ Badge(label: badgeLabel)
388
+ .frame(width: max(badgeMaxWidth, 0), alignment: inRail ? .trailing : .leading)
389
+ .offset(x: inRail ? railBadgeEndOffset : iconSize / 2, y: -Spacing.XS)
390
+ }
391
+ }
392
+ .overlay(alignment: .topTrailing) {
393
+ if badgeLabel?.isEmpty == true || (badgeLabel == nil && item.showDot) {
307
394
  BadgeDot(size: .small)
308
395
  }
309
396
  }
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'MoMoUIKits'
3
- s.version = '0.168.1-beta.27'
3
+ s.version = '0.168.1-beta.24'
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.168.1-beta.27'
3
+ s.version = '0.168.1-beta.24'
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.168.1-beta.27-debug",
3
+ "version": "0.168.1-beta.28-debug",
4
4
  "private": false,
5
5
  "dependeNavigationncies": {},
6
6
  "devDependencies": {},
@@ -1,185 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(curl -s -o /dev/null -w \"%{http_code}\" \"https://repo.maven.apache.org/maven2/org/jetbrains/skiko/skiko-android/0.144.6/skiko-android-0.144.6.pom\")",
5
- "Bash(curl -s \"https://repo.maven.apache.org/maven2/org/jetbrains/skiko/skiko-android/maven-metadata.xml\")",
6
- "Bash(curl -s \"https://repo.maven.apache.org/maven2/org/jetbrains/skiko/skiko/maven-metadata.xml\")",
7
- "Bash(curl -s \"https://repo.maven.apache.org/maven2/org/jetbrains/skiko/skiko/0.144.6/skiko-0.144.6.module\")",
8
- "Bash(curl -s -o /dev/null -w '%{http_code}' https://repo.maven.apache.org/maven2/org/jetbrains/skiko/skiko-android/0.144.6/skiko-android-0.144.6.__TRACKED_VAR__)",
9
- "Bash(curl -s \"https://repo.maven.apache.org/maven2/org/jetbrains/skiko/skiko-android/0.144.6/\")",
10
- "Bash(curl -s \"https://repo.maven.apache.org/maven2/org/jetbrains/skiko/skiko-android/\")",
11
- "Bash(curl -s -o /dev/null -w \"%{http_code}\\\\n\" \"https://repo.maven.apache.org/maven2/org/jetbrains/skiko/skiko-android/0.148.1/skiko-android-0.148.1.pom\")",
12
- "Bash(curl -s -o /dev/null -w \"%{http_code}\\\\n\" \"https://repo.maven.apache.org/maven2/org/jetbrains/skiko/skiko-android/0.144.5/skiko-android-0.144.5.pom\")",
13
- "Bash(curl -s -o /dev/null -w \"%{http_code}\\\\n\" \"https://dl.google.com/dl/android/maven2/org/jetbrains/skiko/skiko-android/0.144.6/skiko-android-0.144.6.pom\")",
14
- "Bash(curl -s \"https://search.maven.org/solrsearch/select?q=a:skiko-android&rows=5&wt=json\")",
15
- "Bash(curl -sL -o /dev/null -w \"%{http_code} %{url_effective}\\\\n\" \"https://repo1.maven.org/maven2/org/jetbrains/skiko/skiko-android/0.144.6/skiko-android-0.144.6.pom\")",
16
- "Bash(curl *)",
17
- "Bash(./gradlew :sample:androidApp:dependencies --configuration debugRuntimeClasspath)",
18
- "Bash(./gradlew :sample:shared:compileDebugKotlinAndroid)",
19
- "Bash(./gradlew :sample:androidApp:compileDebugKotlin)",
20
- "Bash(ls -d *.xcodeproj)",
21
- "Bash(grep -c ChipDemo.swift __TRACKED_VAR__/project.pbxproj)",
22
- "Bash(grep -c PBXFileSystemSynchronizedRootGroup __TRACKED_VAR__/project.pbxproj)",
23
- "Bash(grep -c InformationDemo.swift __TRACKED_VAR__/project.pbxproj)",
24
- "Bash(plutil -lint project.pbxproj)",
25
- "Bash(xcode-select -p)",
26
- "Bash(/usr/bin/xcrun xcodebuild *)",
27
- "Bash(echo \"exit: $?\")",
28
- "Bash(/Applications/Xcode26.app/Contents/Developer/usr/bin/xcodebuild -version)",
29
- "Bash(./gradlew :compose:tasks --all)",
30
- "Bash(grep -n \"vanniktech\\\\|mavenPublishing\\\\|^publishing\\\\|version = gitlabVersion\\\\|namespace =\\\\|compileSdk =\\\\|minSdk =\\\\|GitLabPackages\\\\|name = \\\\\"\\\\${gitlabRepo}Packages\\\\\"\")",
31
- "Bash(git checkout *)",
32
- "Bash(./gradlew :compose:publishAllPublicationsToGitLabPackagesRepository --dry-run)",
33
- "Bash(git fetch *)",
34
- "Bash(git pull *)",
35
- "Bash(git push *)",
36
- "Bash(git branch *)",
37
- "Bash(xcodebuild -workspace iosApp.xcworkspace -list)",
38
- "Bash(xcrun simctl *)",
39
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14 Pro' -configuration Debug build CODE_SIGNING_ALLOWED=NO)",
40
- "Bash(pod install *)",
41
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -sdk iphonesimulator -destination 'id=1E6F9A79-5E64-4590-BEA2-828D75D99393' -configuration Debug build CODE_SIGNING_ALLOWED=NO)",
42
- "Bash(xcrun swiftc *)",
43
- "Bash(echo \"=== exit: $? \\(1=none found\\) ===\")",
44
- "Bash(cat Radius.swift)",
45
- "Bash(cat Spacing.swift)",
46
- "Bash(echo \"exit=$?\")",
47
- "Bash(ruby *)",
48
- "Bash(xcodebuild -list -workspace iosApp.xcworkspace)",
49
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme MoMoUIKits -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14 Pro' build)",
50
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme MoMoUIKits -sdk iphonesimulator -destination 'platform=iOS Simulator,id=E6A899C0-098E-473A-95B8-A2BBD2D42A92' build)",
51
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -sdk iphonesimulator -destination 'platform=iOS Simulator,id=E6A899C0-098E-473A-95B8-A2BBD2D42A92' build)",
52
- "Bash(xcodebuild build *)",
53
- "Bash(git stash *)",
54
- "Bash(plutil -lint sample/iosApp/iosApp.xcodeproj/project.pbxproj)",
55
- "Bash(git add *)",
56
- "Bash(git commit -m 'feat: DS-646 [ci build] *)",
57
- "Bash(git commit -q -m 'fix: DS-656 [ci build] *)",
58
- "Bash(xargs git log --oneline -1)",
59
- "Bash(git rev-list *)",
60
- "Bash(git status *)",
61
- "Bash(git rebase *)",
62
- "Bash(git merge *)",
63
- "Bash(git reset *)",
64
- "Bash(awk '/^ *)",
65
- "Bash(git ls-tree *)",
66
- "Bash(awk *)",
67
- "Read(//Users/sophia/Workspace/momo/momo-app/**)",
68
- "Bash(git log *)",
69
- "Bash(xcodebuild -version)",
70
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -configuration Debug build CODE_SIGNING_ALLOWED=NO)",
71
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme MoMoUIKits -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -configuration Debug build CODE_SIGNING_ALLOWED=NO)",
72
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme MoMoUIKits -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -configuration Debug clean build CODE_SIGNING_ALLOWED=NO)",
73
- "Bash(git commit *)",
74
- "Bash(npm view *)",
75
- "Bash(echo \"EXIT=$? -> not resolvable\")",
76
- "Bash(yarn install *)",
77
- "Bash(RCT_NEW_ARCH_ENABLED=1 pod install)",
78
- "Bash(xcodebuild -workspace MoMoPlatform.xcworkspace -list)",
79
- "Bash(git --no-pager diff --stat ios/Application/Localize.swift ios/Application/Navigation/NavigationContainer.swift ios/Popup/PopupDisplay.swift ios/Popup/PopupNotify.swift ios/Template/TrustBanner/TrustBanner.swift)",
80
- "Bash(git rm *)",
81
- "Bash(echo \"EXIT=$?\")",
82
- "Bash(git -C /Users/sophia/Workspace/momo/momo-native-kits diff sample/iosApp/iosApp/Demo/ButtonDemo.swift)",
83
- "Bash(python3 *)",
84
- "Bash(git -C /Users/sophia/Workspace/momo/momo-native-kits status --short)",
85
- "Bash(git -C /Users/sophia/Workspace/momo/momo-native-kits log --oneline -3)",
86
- "Bash(git -C /Users/sophia/Workspace/momo/momo-native-kits log --oneline -5 -- ios/Button/Button.swift)",
87
- "Bash(git -C /Users/sophia/Workspace/momo/momo-native-kits diff ios/native-kits.podspec compose/compose.podspec gradle.properties package.json)",
88
- "Bash(git -C /Users/sophia/Workspace/momo/momo-native-kits show HEAD:ios/Button/Button.swift)",
89
- "Bash(git -C /Users/sophia/Workspace/momo/momo-native-kits diff package.json ios/native-kits.podspec)",
90
- "Bash(grep -n \"must be a \\\\`.background\\\\` of the label\" /Users/sophia/Workspace/momo/momo-app/node_modules/@momo-kits/native-kits/ios/Button/Button.swift)",
91
- "Bash(git -C /Users/sophia/Workspace/momo/momo-native-kits show -s --format=\"%h %ci %s\" 953b234d)",
92
- "Bash(git -C /Users/sophia/Workspace/momo/momo-app show -s --format=\"%h %ci %s\" f8757a14437)",
93
- "Bash(git -C /Users/sophia/Workspace/momo/momo-app log -S '\"@momo-kits/native-kits\": \"0.163.1-beta.18\"' --format=\"%h %ci %s\" -- package.json)",
94
- "Bash(swiftc -O repro_isfull.swift -o repro_isfull)",
95
- "Bash(./repro_isfull)",
96
- "Bash(grep -n '^\\\\[32;1m$\\\\|section_start\\\\|xcodebuild.*-workspace\\\\|xcodebuild.*archive\\\\|Prebuilt\\\\|prebuilt\\\\|framework.*download\\\\|rugby\\\\|Rugby' /private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/7e2b5bd7-f8b3-42f7-b242-127fa8eabd12/scratchpad/job_trace.log)",
97
- "Bash(grep -n '\\\\[32;1m\\\\$' /private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/7e2b5bd7-f8b3-42f7-b242-127fa8eabd12/scratchpad/job_trace.log)",
98
- "Bash(npm pack *)",
99
- "Bash(mkdir -p b13 b18)",
100
- "Bash(tar xzf *)",
101
- "Bash(git *)",
102
- "Bash(tar -tzf momo-kits-native-kits-0.163.1-beta.18.tgz)",
103
- "Bash(tar -xzf momo-kits-native-kits-0.163.1-beta.18.tgz package/ios/Button/Button.swift)",
104
- "Bash(tar -xzf momo-kits-native-kits-0.162.28.tgz package/ios/Button/Button.swift -C .)",
105
- "Bash(mkdir -p old)",
106
- "Bash(tar -xzf momo-kits-native-kits-0.162.28.tgz -C old package/ios/Button/Button.swift)",
107
- "Bash(nm '/private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/7e2b5bd7-f8b3-42f7-b242-127fa8eabd12/scratchpad/ipa_extract/Payload/MoMoPlatform UAT.app/MoMoPlatform UAT')",
108
- "Bash(xcodebuild -workspace /Users/sophia/Workspace/momo/momo-native-kits/sample/iosApp/iosApp.xcworkspace -list)",
109
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme MoMoUIKits -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' build)",
110
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -derivedDataPath build-verify build)",
111
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme MoMoUIKits -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -derivedDataPath build-verify build)",
112
- "Bash(./gradlew :sample:shared:syncComposeResourcesForIos)",
113
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -sdk iphonesimulator -destination 'platform=iOS Simulator,id=E6A899C0-098E-473A-95B8-A2BBD2D42A92' -derivedDataPath build-verify build)",
114
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme MoMoUIKits -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -quiet build)",
115
- "Bash(xcodebuild -workspace sample/iosApp/iosApp.xcworkspace -list)",
116
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -destination 'id=0228A4B2-57E0-4E56-BFAD-DB9E95044AD9' -derivedDataPath /private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/6986983a-795d-419d-9d78-fcc100e87876/scratchpad/dd build)",
117
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -destination 'id=1E6F9A79-5E64-4590-BEA2-828D75D99393' -derivedDataPath /private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/6986983a-795d-419d-9d78-fcc100e87876/scratchpad/dd build)",
118
- "Bash([ -s $S/kb.png ])",
119
- "Bash(sips -g pixelWidth -g pixelHeight /private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/6986983a-795d-419d-9d78-fcc100e87876/scratchpad/kb.png)",
120
- "Bash(defaults read *)",
121
- "Bash(defaults write *)",
122
- "Bash(xcrun xcodebuild *)",
123
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -quiet build)",
124
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -sdk iphonesimulator -destination 'platform=iOS Simulator,id=E6A899C0-098E-473A-95B8-A2BBD2D42A92' -quiet build)",
125
- "Read(//tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/3e8adc08-a7e7-4169-aee6-8b22a6996f38/scratchpad/**)",
126
- "Bash(echo \"parse-exit=$?\")",
127
- "Bash(echo \"=== exit $?\")",
128
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -configuration Debug build)",
129
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -sdk iphonesimulator -destination 'platform=iOS Simulator,id=E6A899C0-098E-473A-95B8-A2BBD2D42A92' -configuration Debug build)",
130
- "Bash(./gradlew :sample:shared:compileCommonMainKotlinMetadata -q)",
131
- "Bash(echo \"gradle=$?\")",
132
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -sdk iphonesimulator -destination 'id=0228A4B2-57E0-4E56-BFAD-DB9E95044AD9' -derivedDataPath build/dd build)",
133
- "Bash(osascript *)",
134
- "Bash(screencapture -x -R253,53,452,950 win.png)",
135
- "Bash(sips -g pixelWidth -g pixelHeight win.png)",
136
- "Bash(screencapture -x -R\"253,53,452,950\" win.png)",
137
- "Bash(screencapture -x full.png)",
138
- "Bash(sips -g pixelWidth -g pixelHeight full.png)",
139
- "Bash(sips -c 1900 904 --cropOffset 106 506 full.png --out crop.png)",
140
- "Bash(swiftc -O mouse.swift -o mouse)",
141
- "Bash(./mouse click *)",
142
- "Bash(./mouse drag *)",
143
- "Bash(sips -c 900 924 --cropOffset 0 0 s12.png --out s12crop.png)",
144
- "Bash(sips -c 300 1170 --cropOffset 300 0 s12.png --out s12top.png)",
145
- "Bash(sips -c 700 1170 --cropOffset 250 0 t1.png --out t1c.png)",
146
- "Bash(sips -c 700 1170 --cropOffset 250 0 t2.png --out t2c.png)",
147
- "Bash(sips -c 700 1170 --cropOffset 150 0 t3.png --out t3c.png)",
148
- "Bash(sips -c 1200 1170 --cropOffset 600 0 t4.png --out t4c.png)",
149
- "Bash(sips -c 600 1170 --cropOffset 150 0 t5.png --out t5c.png)",
150
- "Bash(sips -c 500 1170 --cropOffset 150 0 u1.png --out u1c.png)",
151
- "Bash(cp /Users/sophia/Workspace/momo/momo-native-kits/ios/Application/Navigation/NavigationContainer.swift /Users/sophia/Workspace/momo/momo-app/node_modules/@momo-kits/native-kits/ios/Application/Navigation/NavigationContainer.swift)",
152
- "Bash(cp /Users/sophia/Workspace/momo/momo-native-kits/ios/Application/Navigation/Navigator.swift /Users/sophia/Workspace/momo/momo-app/node_modules/@momo-kits/native-kits/ios/Application/Navigation/Navigator.swift)",
153
- "Bash(cp /Users/sophia/Workspace/momo/momo-native-kits/ios/Application/Navigation/NavigatorManager.swift /Users/sophia/Workspace/momo/momo-app/node_modules/@momo-kits/native-kits/ios/Application/Navigation/NavigatorManager.swift)",
154
- "Bash(cp /Users/sophia/Workspace/momo/momo-native-kits/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/NavigationDemo.swift /Users/sophia/Workspace/momo/momo-app/node_modules/@momo-kits/native-kits/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/NavigationDemo.swift)",
155
- "Bash(xcodebuild -workspace MoMoPlatform.xcworkspace -scheme MoMoPlatform-UAT -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -derivedDataPath build/DerivedData build)",
156
- "Bash(cp android/gradle/libs.versions.toml /private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/bfb380ee-54cb-4a02-bc5f-d152cce4b727/scratchpad/libs.versions.toml.bak)",
157
- "Bash(sed -i '' 's/kits = \"0.163.1-sp.8\"/kits = \"0.163.1-sp.7\"/' android/gradle/libs.versions.toml)",
158
- "Bash(xcrun --sdk iphonesimulator --show-sdk-path)",
159
- "Bash(chmod +x /private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/62b6dcd2-247f-4111-98ef-3847c8914676/scratchpad/tc.sh)",
160
- "Bash(/private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/62b6dcd2-247f-4111-98ef-3847c8914676/scratchpad/tc.sh)",
161
- "Bash(perl -0pi -e 's{^ static let \\(\\\\w+\\) = \\(appFont\\\\\\(size: [\\\\d.]+\\\\\\)\\(?:\\\\.weight\\\\\\(\\\\.\\\\w+\\\\\\)\\)?\\)\\(\\\\s*//.*\\)?$}{ static var $1: Font { $2 }$3}mg' ios/Typography/Typography.swift)",
162
- "Bash(perl -0pi -e 's{\\(\\\\s*\\)// AI-GENERATED START: route Localize injection through the observing modifier\\\\n\\(\\\\s*\\)\\\\.momoLocalize\\\\\\(localize\\\\\\)\\\\n\\(\\\\s*\\)// AI-GENERATED END: route Localize injection through the observing modifier}{$1// AI-GENERATED START: route Localize + font-scale injection through the observing modifiers\\\\n$2.momoLocalize\\(localize\\)\\\\n$2.momoFontScale\\(\\)\\\\n$3// AI-GENERATED END: route Localize + font-scale injection through the observing modifiers}g' ios/Application/Navigation/NavigationContainer.swift)",
163
- "Bash(perl -pi -e 's/Mirrors Compose.s `fontScale\\\\\\(\\\\.\\\\.\\\\.\\\\\\)`/Mirrors Compose'\"'\"'s `scaleSize\\(...\\)`/' ios/Chip/Chip.swift)",
164
- "Bash(perl -pi -e 's/fontScale\\\\\\(\\(size == \\\\.small \\\\? 48 : 56\\), 1\\\\.1\\\\\\)/fontScale\\($1\\)/' ios/Input/Input.swift ios/Input/InputPhoneNumber.swift)",
165
- "Bash(perl -pi -e 's/^\\(\\\\s*\\)\\\\.momoFontScale\\\\\\(\\\\\\)$/$1.momoFontScale\\(context: applicationEnvironment.applicationContext\\)/' ios/Application/Navigation/NavigationContainer.swift)",
166
- "Bash(chmod +x /private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/62b6dcd2-247f-4111-98ef-3847c8914676/scratchpad/tcdemo.sh)",
167
- "Bash(/private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/62b6dcd2-247f-4111-98ef-3847c8914676/scratchpad/tcdemo.sh)",
168
- "Bash(\"/Users/sophia/Workspace/momo-glab/momo-agent-flows/momo-agent/scripts/repo.sh\" find *)",
169
- "Read(//Users/sophia/.momo-agent/**)",
170
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 16 Pro' -derivedDataPath /private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/62b6dcd2-247f-4111-98ef-3847c8914676/scratchpad/dd build)",
171
- "Bash(\"/Users/sophia/Workspace/momo-glab/momo-agent-flows/momo-agent/scripts/repo.sh\" prep *)",
172
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -configuration Debug -destination id=1E6F9A79-5E64-4590-BEA2-828D75D99393 -derivedDataPath /private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/62b6dcd2-247f-4111-98ef-3847c8914676/scratchpad/dd build)",
173
- "Bash(find /private/tmp/claude-503/-Users-sophia-Workspace-momo-momo-native-kits/62b6dcd2-247f-4111-98ef-3847c8914676/scratchpad/dd/Build/Products -maxdepth 2 -name *.app)",
174
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -configuration Debug -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -derivedDataPath build/dd build)",
175
- "Bash(xcodebuild -workspace iosApp.xcworkspace -scheme iosApp -configuration Debug -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -derivedDataPath build/dd ARCHS=arm64 ONLY_ACTIVE_ARCH=YES build)",
176
- "Bash(./gradlew :compose:generateDummyFramework)",
177
- "Bash(break)",
178
- "Bash(\"/Users/sophia/Workspace/momo-glab/momo-agent-flows/momo-agent/scripts/gitlab.sh\" mr-view *)",
179
- "Bash(\"/Users/sophia/Workspace/momo-glab/momo-agent-flows/momo-agent/scripts/gitlab.sh\" mr-discussions *)",
180
- "Bash(command -v glab)",
181
- "Bash(glab --version)",
182
- "Bash(/Users/sophia/Workspace/momo-glab/momo-agent-flows/momo-agent/scripts/jira.sh transitions *)"
183
- ]
184
- }
185
- }
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
- #Tue Jun 02 17:05:32 ICT 2026
8
- sdk.dir=/Users/sophia/Library/Android/sdk