You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
import Foundation
|
|
|
|
/// Vendor registration entry — placeholder symmetric with Android's
|
|
/// `integration/JieliNativeDevicePlugin.kt` calling
|
|
/// `NativeDevicePluginRegistry.register(...)`.
|
|
///
|
|
/// On Android the registry lives in `device_plugin_interface` (Kotlin) and is
|
|
/// a process-wide map keyed by vendor key. On iOS the equivalent registry has
|
|
/// not yet been ported (the `device_plugin_interface` iOS pod is currently a
|
|
/// no-op, matching its no-op Android side). When/if the Swift-side registry
|
|
/// lands, this method should:
|
|
///
|
|
/// 1. Build a `VendorDescriptor(vendorKey: "jieli", displayName: "JieLi (杰理)",
|
|
/// capabilities: [.scan, .connect, .bond, .customCommand,
|
|
/// .onDeviceCallTranslation, .onDeviceFaceToFaceTranslation,
|
|
/// .onDeviceRecordingTranslation])`;
|
|
/// 2. Provide a factory that returns a `NativeDevicePlugin` Swift wrapper
|
|
/// around `JieliHomeServer.shared`;
|
|
/// 3. Hand both to the registry.
|
|
///
|
|
/// Until then `register()` is a no-op so the plugin still loads cleanly.
|
|
public enum JieliNativeDevicePlugin {
|
|
|
|
public static let kVendor = "jieli"
|
|
|
|
public static func register() {
|
|
// TODO: when device_plugin_interface iOS gains a NativeDevicePluginRegistry,
|
|
// wire the JieLi factory here, mirroring Android's
|
|
// `JieliNativeDevicePlugin.register(context)`.
|
|
}
|
|
}
|
|
|