From 84be9d4eff9c18ae670e9bb4da506937371d580a Mon Sep 17 00:00:00 2001 From: NginxL <8777777+NginxL@users.noreply.github.com> Date: Sun, 6 Dec 2026 03:00:01 +0800 Subject: [PATCH] fix(xkit): expose DeviceInfo initializer Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com> --- Sources/XKit/GrandSlam/Anisette/DeviceInfo.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/XKit/GrandSlam/Anisette/DeviceInfo.swift b/Sources/XKit/GrandSlam/Anisette/DeviceInfo.swift index dab423f2..b0861d52 100644 --- a/Sources/XKit/GrandSlam/Anisette/DeviceInfo.swift +++ b/Sources/XKit/GrandSlam/Anisette/DeviceInfo.swift @@ -12,6 +12,12 @@ public struct DeviceInfo: Codable, Sendable { public let akdUserAgent: String + public init(deviceID: String, clientInfo: String, akdUserAgent: String) { + self.deviceID = deviceID + self.clientInfo = clientInfo + self.akdUserAgent = akdUserAgent + } + public var dictionary: [String: String] { [ Self.clientInfoKey: clientInfo,