Skip to main content

euv_cli/builder/ecosystem/
enum.rs

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