@swmansion/argent 0.34.1-next.3 → 0.34.1-next.30
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.
- package/LICENSE +1 -0
- package/assets/ios-screen-stream/Info.plist +12 -0
- package/assets/ios-screen-stream/ios-screen-stream.swift +321 -0
- package/bin/argent-android-devtools-0.4.0.apk +0 -0
- package/bin/darwin/argent-macos-helper +0 -0
- package/bin/darwin/ax-service +0 -0
- package/bin/darwin/simulator-server +0 -0
- package/bin/darwin/tvos-ax-service +0 -0
- package/bin/darwin/tvos-hid-daemon +0 -0
- package/bin/linux/simulator-server +0 -0
- package/bin/linux-arm64/simulator-server +0 -0
- package/bin/network-inspector/network-inspector.jar +0 -0
- package/bin/tcp/ax-service +0 -0
- package/bin/win32/simulator-server.exe +0 -0
- package/dist/cli-cmds.mjs +710 -412
- package/dist/client.js +202 -107
- package/dist/installer-help.js +4 -0
- package/dist/installer-help.js.map +1 -1
- package/dist/installer.mjs +1070 -837
- package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentLaunchPerformanceTests.swift +21 -0
- package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentRunnerSession+Commands.swift +9 -3
- package/dist/mcp-server.mjs +384 -621
- package/dist/preview-ui/index.html +28 -2
- package/dist/tool-args.generated.d.ts +38 -8
- package/dist/tool-server.cjs +6821 -3369
- package/dylibs/libArgentAudio.dylib +0 -0
- package/dylibs/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/libKeyboardPatch.dylib +0 -0
- package/dylibs/libNativeDevtoolsIos.dylib +0 -0
- package/dylibs/macos/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/macos/libNativeDevtoolsMacos.dylib +0 -0
- package/dylibs/tcp/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/tcp/libKeyboardPatch.dylib +0 -0
- package/dylibs/tcp/libNativeDevtoolsIos.dylib +0 -0
- package/dylibs/tvos/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/tvos/libKeyboardPatch.dylib +0 -0
- package/dylibs/tvos/libNativeDevtoolsIos.dylib +0 -0
- package/package.json +1 -1
- package/rules/argent.md +6 -23
- package/skills/argent-create-e2e/references/e2e-yaml.md +2 -2
- package/skills/argent-create-e2e/references/live-authoring.md +1 -1
- package/skills/argent-device-interact/references/foldables.md +22 -0
- package/skills/argent-ios-device-interact/SKILL.md +2 -2
- package/skills/argent-macos-app-interact/SKILL.md +15 -5
- package/skills/argent-macos-app-interact/references/e2e.md +1 -1
- package/skills/argent-native-profiler/SKILL.md +14 -2
- package/skills/argent-react-native-app-workflow/SKILL.md +1 -1
- package/skills/argent-react-native-optimization/SKILL.md +10 -1
- package/skills/argent-react-native-profiler/SKILL.md +4 -3
- package/skills/argent-screen-recording/SKILL.md +3 -2
package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentLaunchPerformanceTests.swift
ADDED
|
@@ -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
|
+
}
|
package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentRunnerSession+Commands.swift
CHANGED
|
@@ -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
|
|
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(
|
|
209
|
+
device.press(hardwareButton)
|
|
204
210
|
|
|
205
211
|
return .success(MessagePayload(message: "pressed \(button.rawValue)"))
|
|
206
212
|
}
|