Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Di/ios provider/file and logs/qa 16207 #119

Merged
merged 9 commits into from
Feb 13, 2025

Conversation

DaniilSmirnov
Copy link

@DaniilSmirnov DaniilSmirnov commented Feb 10, 2025

Implementation of ios filesystem and ios logs (with filters)

@DaniilSmirnov DaniilSmirnov requested a review from a team as a code owner February 10, 2025 20:32
const realGroup = await group.get()
const parser = new IncompleteJsonParser()

DeviceLogger.stream = spawn('idb', ['log', '--udid', options.serial, '--', '--style', 'json'])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--style json is unrecognized on an iphone with ios 18.1.1 and idb-companion 1.1.8

lib/units/ios-device/plugins/devicelog.js Outdated Show resolved Hide resolved
lib/units/ios-device/plugins/devicelog.js Show resolved Hide resolved
lib/units/ios-device/plugins/filesystem.js Outdated Show resolved Hide resolved
lib/units/ios-device/plugins/filesystem.js Outdated Show resolved Hide resolved
lib/units/ios-device/plugins/filesystem.js Outdated Show resolved Hide resolved
lib/units/ios-device/plugins/filesystem.js Outdated Show resolved Hide resolved
lib/units/ios-device/plugins/filesystem.js Show resolved Hide resolved
lib/units/ios-device/plugins/filesystem.js Outdated Show resolved Hide resolved
lib/units/ios-device/plugins/filesystem.js Outdated Show resolved Hide resolved
@@ -82,7 +87,7 @@ export default syrup.serial()
realGroup.group
, wireutil.envelope(new wire.DeviceLogcatEntryMessage(
options.serial
, new Date().getTime() / 1000
, Date.parse(timestamp) / 1000

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default value of timestamp in case no timestamp could be found from the log line entry is not parseable
image

@DaniilSmirnov DaniilSmirnov merged commit 757572f into master Feb 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants