1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
use super::*;
/// HarmonyOS / OpenHarmony device form factor profiles supported by the Stage-Model builder.
#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub enum HarmonyDeviceKind {
/// HarmonyOS smartphone profile (`phone`).
#[default]
Phone,
/// HarmonyOS tablet profile (`tablet`).
Tablet,
/// HarmonyOS 2-in-1 PC / desktop profile (`2in1`).
Pc2In1,
/// Universal multi-device profile (`phone` + `tablet` + `2in1`).
Universal,
/// Foldable display profile (`phone` + `tablet`).
Foldable,
/// HarmonyOS smartwatch wearable profile (`wearable`).
Wearable,
/// HarmonyOS smart TV / Vision profile (`tv`).
Tv,
/// HarmonyOS automotive / cockpit profile (`car`).
Car,
}
/// OpenHarmony native CPU ABI supported by N-API/XComponent/EGL compilation.
#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub enum HarmonyAbi {
/// 64-bit ARM (`arm64-v8a` / `aarch64-unknown-linux-ohos`).
#[default]
Arm64V8a,
/// 64-bit x86 (`x86_64` / `x86_64-unknown-linux-ohos`).
X86_64,
}
/// All 13 supported super-app MiniApp ecosystem targets.
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub enum MiniAppVendor {
/// WeChat Mini-Program (`wx`, `.wxml`/`.wxss`, `WXWebAssembly`).
Wechat,
/// Alipay Mini-Program (`my`, `.axml`/`.acss`, `MYWebAssembly`).
Alipay,
/// Douyin / ByteDance Mini-Program (`tt`, `.ttml`/`.ttss`, `TTWebAssembly`).
Douyin,
/// Baidu Smart Mini-Program (`swan`, `.swan`/`.css`).
Baidu,
/// QQ Mini-Program (`qq`, `.qml`/`.qss`, `QQWebAssembly`).
Qq,
/// Kuaishou Mini-Program (`ks`, `.ksml`/`.css`).
Kuaishou,
/// JD Mini-Program (`jd`, `.jxml`/`.jxss`).
Jd,
/// Xiaohongshu Mini-Program (`xhs`, `.xhsml`/`.css`).
Xhs,
/// DingTalk Mini-Program (`dd`, `.axml`/`.acss`, `MYWebAssembly`).
Dingtalk,
/// Feishu / Lark Mini-Program (`tt`, `.ttml`/`.ttss`, `TTWebAssembly`).
Feishu,
/// Taobao Mini-Program (`my`, `.axml`/`.acss`, `MYWebAssembly`).
Taobao,
/// Meituan Mini-Program (`mt`, `.mxml`/`.mxss`).
Meituan,
/// HarmonyOS Atomic Service (`bundleType=atomicService`, `installationFree=true`).
HarmonyAtomic,
}
/// QuickApp distribution targets supported by the pure-Rust QuickApp builder.
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub enum QuickAppVendor {
/// QuickApp Alliance (`vip.ltpp.euv.quickapp`, Xiaomi/OPPO/vivo/Honor).
Alliance,
/// Huawei QuickApp (`vip.ltpp.euv.huawei.quickapp`).
Huawei,
}
/// All 8 smartwatch wearable targets supported by the pure-Rust wearable builder.
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub enum WearableVendor {
/// Google/Samsung Wear OS APK (routed to `android` builder with `WearOs`).
WearOs,
/// Apple watchOS SwiftUI/Rust bundle (routed to `apple` builder with `WatchOsSim`).
WatchOs,
/// Huawei HarmonyOS Watch (routed to `harmony` builder with `Wearable`).
HarmonyWatch,
/// Xiaomi HyperOS / Vela Watch zero-DOM WASM + Canvas2D host.
Vela,
/// vivo BlueOS Watch Studio zero-DOM WASM host (round 466 + GT squircle).
VivoWatch,
/// OPPO ColorOS Watch / Wear OS SurfaceView + Rotary Crown host.
OppoWatch,
/// Garmin Connect IQ Monkey C + AOD watch host.
Garmin,
/// Amazfit Zepp OS v3 zero-DOM WASM host (round 480 + squircle 390).
ZeppOs,
}