Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkgs/code_assets/lib/src/code_assets/os.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ final class OS {
/// operating system.
static const OS windows = OS._('windows');

/// The
/// [OpenHarmony / HarmonyOS NEXT](https://harmonyos.com) operating system.
static const OS ohos = OS._('ohos');

/// Known values for [OS].
static const List<OS> values = [android, fuchsia, iOS, linux, macOS, windows];
static const List<OS> values = [android, fuchsia, iOS, linux, macOS, windows, ohos];

/// Typical cross compilation between OSes.
static const osCrossCompilationDefault = {
Expand Down
4 changes: 3 additions & 1 deletion pkgs/code_assets/lib/src/code_assets/syntax.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,9 @@ class OSSyntax {

static const windows = OSSyntax._('windows');

static const List<OSSyntax> values = [android, iOS, linux, macOS, windows];
static const ohos = OSSyntax._('ohos');

static const List<OSSyntax> values = [android, iOS, linux, macOS, windows, ohos];

static final Map<String, OSSyntax> _byName = {
for (final value in values) value.name: value,
Expand Down
Loading