Skip to content

fix(xkit): expose DeviceInfo initializer - #493

Draft
NginxL wants to merge 1 commit into
xtool-org:mainfrom
NginxL:fix/device-info-public-init-463
Draft

NginxL wants to merge 1 commit into
xtool-org:mainfrom
NginxL:fix/device-info-public-init-463

Conversation

@NginxL

@NginxL NginxL commented Dec 5, 2026

Copy link
Copy Markdown

What does this PR do?

Adds the public memberwise initializer that DeviceInfo needs for external AnisetteDataProvider implementations. The three stored values (deviceID, clientInfo, and akdUserAgent) can now be supplied directly instead of requiring a JSON decode workaround.

Fixes #463.

How was it tested?

  • Compiled DeviceInfo.swift into a temporary XKit Swift module with Swift 6.4.2.
  • Typechecked a separate client module that calls DeviceInfo(deviceID:clientInfo:akdUserAgent:) and verifies the three property values.
  • git diff --check.

Not run: the full xtool build, iOS device interaction, Linux testing, or Apple authentication flows. The change is limited to a value initializer.

AI tool usage

  • 0 - No AI was used to write code
  • 1 - I was assisted by AI in writing code. I reviewed the finished result.
  • 2 - I set the AI going and left it to it; nobody has read the result - no review, or AI review only

The commit includes a DCO sign-off. This PR is a draft pending maintainer review and full CI.

Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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.

Public DeviceInfo has no memberwise initializer for external AnisetteDataProvider implementations

1 participant