Skip to content

Commit b61573a

Browse files
committed
feat: add os field in appcast item
1 parent a1ed0ba commit b61573a

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

packages/auto_updater/lib/src/appcast.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class AppcastItem {
4040
this.maximumOperatingSystemVersionIsOK,
4141
this.channel,
4242
this.criticalUpdate,
43+
this.os,
4344
});
4445

4546
factory AppcastItem.fromJson(Map<String, dynamic> json) =>
@@ -62,6 +63,7 @@ class AppcastItem {
6263
final bool? maximumOperatingSystemVersionIsOK;
6364
final String? channel;
6465
final bool? criticalUpdate;
66+
final String? os;
6567

6668
Map<String, dynamic> toJson() => _$AppcastItemToJson(this);
6769
}

packages/auto_updater/lib/src/appcast.g.dart

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/auto_updater_macos/macos/Classes/AutoUpdater.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ extension SUAppcastItem {
3535
"maximumOperatingSystemVersionIsOK": self.maximumOperatingSystemVersionIsOK,
3636
"channel": self.channel ?? "",
3737
"criticalUpdate": self.isCriticalUpdate,
38+
"os": self.osString,
3839
]
3940
return dict;
4041
}

0 commit comments

Comments
 (0)