Skip to content

Commit 1e4025d

Browse files
committed
feat: add HarmonyOS compatibility info
1 parent b42c121 commit 1e4025d

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export const VALID_KEYWORDS_MAP = {
4949
tvos: 'tvos',
5050
visionos: 'visionos',
5151
vegaos: 'vegaos',
52+
harmony: 'harmony',
5253
web: 'web',
5354
windows: 'windows',
5455
hasexample: 'hasExample',

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export type PackageData = {
2222
tvos?: boolean;
2323
visionos?: boolean;
2424
horizon?: boolean;
25+
harmony?: boolean | string;
2526
vegaos?: boolean | string;
2627
unmaintained?: boolean;
2728
dev?: boolean;

src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export function getCompatibilityList(item: PackageData): string[] {
9999
return [
100100
item.expoGo ? 'Expo Go' : null,
101101
item.fireos ? 'FireOS' : null,
102+
item.harmony ? 'HarmonyOS' : null,
102103
item.horizon ? 'Meta Horizon OS' : null,
103104
item.vegaos ? 'Vega OS' : null,
104105
].filter(entry => entry !== null);

0 commit comments

Comments
 (0)