@swmansion/argent 0.34.1-next.3 → 0.34.1-next.31

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.
Files changed (51) hide show
  1. package/LICENSE +1 -0
  2. package/assets/ios-screen-stream/Info.plist +12 -0
  3. package/assets/ios-screen-stream/ios-screen-stream.swift +321 -0
  4. package/bin/argent-android-devtools-0.4.0.apk +0 -0
  5. package/bin/darwin/argent-macos-helper +0 -0
  6. package/bin/darwin/ax-service +0 -0
  7. package/bin/darwin/simulator-server +0 -0
  8. package/bin/darwin/tvos-ax-service +0 -0
  9. package/bin/darwin/tvos-hid-daemon +0 -0
  10. package/bin/linux/simulator-server +0 -0
  11. package/bin/linux-arm64/simulator-server +0 -0
  12. package/bin/network-inspector/network-inspector.jar +0 -0
  13. package/bin/tcp/ax-service +0 -0
  14. package/bin/win32/simulator-server.exe +0 -0
  15. package/dist/cli-cmds.mjs +916 -557
  16. package/dist/client.js +342 -179
  17. package/dist/flow-script-runner.mjs +1 -0
  18. package/dist/installer-help.js +4 -0
  19. package/dist/installer-help.js.map +1 -1
  20. package/dist/installer.mjs +1150 -911
  21. package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentLaunchPerformanceTests.swift +21 -0
  22. package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentRunnerSession+Commands.swift +9 -3
  23. package/dist/mcp-server.mjs +544 -712
  24. package/dist/preview-ui/index.html +28 -2
  25. package/dist/tool-args.generated.d.ts +38 -8
  26. package/dist/tool-server.cjs +7004 -3444
  27. package/dylibs/libArgentAudio.dylib +0 -0
  28. package/dylibs/libArgentInjectionBootstrap.dylib +0 -0
  29. package/dylibs/libKeyboardPatch.dylib +0 -0
  30. package/dylibs/libNativeDevtoolsIos.dylib +0 -0
  31. package/dylibs/macos/libArgentInjectionBootstrap.dylib +0 -0
  32. package/dylibs/macos/libNativeDevtoolsMacos.dylib +0 -0
  33. package/dylibs/tcp/libArgentInjectionBootstrap.dylib +0 -0
  34. package/dylibs/tcp/libKeyboardPatch.dylib +0 -0
  35. package/dylibs/tcp/libNativeDevtoolsIos.dylib +0 -0
  36. package/dylibs/tvos/libArgentInjectionBootstrap.dylib +0 -0
  37. package/dylibs/tvos/libKeyboardPatch.dylib +0 -0
  38. package/dylibs/tvos/libNativeDevtoolsIos.dylib +0 -0
  39. package/package.json +1 -1
  40. package/rules/argent.md +6 -23
  41. package/skills/argent-create-e2e/references/e2e-yaml.md +2 -2
  42. package/skills/argent-create-e2e/references/live-authoring.md +1 -1
  43. package/skills/argent-device-interact/references/foldables.md +22 -0
  44. package/skills/argent-ios-device-interact/SKILL.md +2 -2
  45. package/skills/argent-macos-app-interact/SKILL.md +15 -5
  46. package/skills/argent-macos-app-interact/references/e2e.md +1 -1
  47. package/skills/argent-native-profiler/SKILL.md +14 -2
  48. package/skills/argent-react-native-app-workflow/SKILL.md +1 -1
  49. package/skills/argent-react-native-optimization/SKILL.md +10 -1
  50. package/skills/argent-react-native-profiler/SKILL.md +4 -3
  51. package/skills/argent-screen-recording/SKILL.md +3 -2
@@ -0,0 +1,21 @@
1
+ import XCTest
2
+
3
+ final class ArgentLaunchPerformanceTests: XCTestCase {
4
+ func testLaunchDuration() {
5
+ guard let bundleID = ProcessInfo.processInfo.environment["ARGENT_LAUNCH_BUNDLE_ID"],
6
+ !bundleID.isEmpty
7
+ else {
8
+ XCTFail("Set TEST_RUNNER_ARGENT_LAUNCH_BUNDLE_ID to the installed app's bundle ID.")
9
+ return
10
+ }
11
+
12
+ let options = XCTMeasureOptions()
13
+ // Must match LAUNCH_ITERATIONS in native-profiler/launch-analysis/measure.ts.
14
+ options.iterationCount = 5
15
+ let app = XCUIApplication(bundleIdentifier: bundleID)
16
+
17
+ measure(metrics: [XCTApplicationLaunchMetric()], options: options) {
18
+ app.launch()
19
+ }
20
+ }
21
+ }
@@ -3,11 +3,15 @@ import XCTest
3
3
 
4
4
  extension DeviceButton {
5
5
  /// The XCUIDevice member for this wire name.
6
- var hardwareButton: XCUIDevice.Button {
6
+ var hardwareButton: XCUIDevice.Button? {
7
7
  switch self {
8
8
  case .home: return .home
9
+ #if targetEnvironment(simulator)
10
+ case .volumeUp, .volumeDown: return nil
11
+ #else
9
12
  case .volumeUp: return .volumeUp
10
13
  case .volumeDown: return .volumeDown
14
+ #endif
11
15
  case .actionButton: return .action
12
16
  }
13
17
  }
@@ -191,7 +195,9 @@ extension ArgentRunnerSession {
191
195
 
192
196
  // press on an absent button is a silent no-op that would read as a
193
197
  // successful press, so it is refused up front.
194
- guard device.hasHardwareButton(button.hardwareButton) else {
198
+ guard let hardwareButton = button.hardwareButton,
199
+ device.hasHardwareButton(hardwareButton)
200
+ else {
195
201
  return .failure(
196
202
  .unsupportedOperation,
197
203
  "this \(UIDevice.current.model) has no \(button.rawValue) button",
@@ -200,7 +206,7 @@ extension ArgentRunnerSession {
200
206
  )
201
207
  }
202
208
 
203
- device.press(button.hardwareButton)
209
+ device.press(hardwareButton)
204
210
 
205
211
  return .success(MessagePayload(message: "pressed \(button.rawValue)"))
206
212
  }