feat: add macos release platform to shorebird_code_push_protocol (#2643)
This commit is contained in:
@@ -237,6 +237,7 @@ class PreviewCommand extends ShorebirdCommand {
|
||||
deviceId: deviceId,
|
||||
track: track,
|
||||
),
|
||||
ReleasePlatform.macos => throw UnimplementedError(),
|
||||
ReleasePlatform.ios => installAndLaunchIos(
|
||||
appId: appId,
|
||||
release: release,
|
||||
|
||||
@@ -57,5 +57,6 @@ Map<String, dynamic> _$CreatePatchMetadataToJson(
|
||||
|
||||
const _$ReleasePlatformEnumMap = {
|
||||
ReleasePlatform.android: 'android',
|
||||
ReleasePlatform.macos: 'macos',
|
||||
ReleasePlatform.ios: 'ios',
|
||||
};
|
||||
|
||||
@@ -45,5 +45,6 @@ Map<String, dynamic> _$UpdateReleaseMetadataToJson(
|
||||
|
||||
const _$ReleasePlatformEnumMap = {
|
||||
ReleasePlatform.android: 'android',
|
||||
ReleasePlatform.macos: 'macos',
|
||||
ReleasePlatform.ios: 'ios',
|
||||
};
|
||||
|
||||
+1
@@ -46,5 +46,6 @@ Map<String, dynamic> _$CreatePatchArtifactRequestToJson(
|
||||
|
||||
const _$ReleasePlatformEnumMap = {
|
||||
ReleasePlatform.android: 'android',
|
||||
ReleasePlatform.macos: 'macos',
|
||||
ReleasePlatform.ios: 'ios',
|
||||
};
|
||||
|
||||
+1
@@ -43,5 +43,6 @@ Map<String, dynamic> _$CreatePatchArtifactResponseToJson(
|
||||
|
||||
const _$ReleasePlatformEnumMap = {
|
||||
ReleasePlatform.android: 'android',
|
||||
ReleasePlatform.macos: 'macos',
|
||||
ReleasePlatform.ios: 'ios',
|
||||
};
|
||||
|
||||
+1
@@ -50,5 +50,6 @@ Map<String, dynamic> _$CreateReleaseArtifactRequestToJson(
|
||||
|
||||
const _$ReleasePlatformEnumMap = {
|
||||
ReleasePlatform.android: 'android',
|
||||
ReleasePlatform.macos: 'macos',
|
||||
ReleasePlatform.ios: 'ios',
|
||||
};
|
||||
|
||||
+1
@@ -43,5 +43,6 @@ Map<String, dynamic> _$CreateReleaseArtifactResponseToJson(
|
||||
|
||||
const _$ReleasePlatformEnumMap = {
|
||||
ReleasePlatform.android: 'android',
|
||||
ReleasePlatform.macos: 'macos',
|
||||
ReleasePlatform.ios: 'ios',
|
||||
};
|
||||
|
||||
+1
@@ -41,5 +41,6 @@ const _$ReleaseStatusEnumMap = {
|
||||
|
||||
const _$ReleasePlatformEnumMap = {
|
||||
ReleasePlatform.android: 'android',
|
||||
ReleasePlatform.macos: 'macos',
|
||||
ReleasePlatform.ios: 'ios',
|
||||
};
|
||||
|
||||
@@ -42,5 +42,6 @@ Map<String, dynamic> _$PatchArtifactToJson(PatchArtifact instance) =>
|
||||
|
||||
const _$ReleasePlatformEnumMap = {
|
||||
ReleasePlatform.android: 'android',
|
||||
ReleasePlatform.macos: 'macos',
|
||||
ReleasePlatform.ios: 'ios',
|
||||
};
|
||||
|
||||
@@ -65,5 +65,6 @@ const _$ReleaseStatusEnumMap = {
|
||||
|
||||
const _$ReleasePlatformEnumMap = {
|
||||
ReleasePlatform.android: 'android',
|
||||
ReleasePlatform.macos: 'macos',
|
||||
ReleasePlatform.ios: 'ios',
|
||||
};
|
||||
|
||||
@@ -50,5 +50,6 @@ Map<String, dynamic> _$ReleaseArtifactToJson(ReleaseArtifact instance) =>
|
||||
|
||||
const _$ReleasePlatformEnumMap = {
|
||||
ReleasePlatform.android: 'android',
|
||||
ReleasePlatform.macos: 'macos',
|
||||
ReleasePlatform.ios: 'ios',
|
||||
};
|
||||
|
||||
@@ -3,6 +3,8 @@ enum ReleasePlatform {
|
||||
// ignore: public_member_api_docs
|
||||
android('Android'),
|
||||
// ignore: public_member_api_docs
|
||||
macos('macOS'),
|
||||
// ignore: public_member_api_docs
|
||||
ios('iOS');
|
||||
|
||||
const ReleasePlatform(this.displayName);
|
||||
|
||||
Reference in New Issue
Block a user