From 8fdf60754b68b4822e2e7d34c79a3c5224238bbd Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Mon, 2 Dec 2024 10:28:02 -0500 Subject: [PATCH] feat: add macos release platform to shorebird_code_push_protocol (#2643) --- packages/shorebird_cli/lib/src/commands/preview_command.dart | 1 + .../shorebird_cli/lib/src/metadata/create_patch_metadata.g.dart | 1 + .../lib/src/metadata/update_release_metadata.g.dart | 1 + .../create_patch_artifact/create_patch_artifact_request.g.dart | 1 + .../create_patch_artifact/create_patch_artifact_response.g.dart | 1 + .../create_release_artifact_request.g.dart | 1 + .../create_release_artifact_response.g.dart | 1 + .../src/messages/update_release/update_release_request.g.dart | 1 + .../lib/src/models/patch_artifact.g.dart | 1 + .../shorebird_code_push_protocol/lib/src/models/release.g.dart | 1 + .../lib/src/models/release_artifact.g.dart | 1 + .../lib/src/models/release_platform.dart | 2 ++ 12 files changed, 13 insertions(+) diff --git a/packages/shorebird_cli/lib/src/commands/preview_command.dart b/packages/shorebird_cli/lib/src/commands/preview_command.dart index 36e60ed89..e9006a269 100644 --- a/packages/shorebird_cli/lib/src/commands/preview_command.dart +++ b/packages/shorebird_cli/lib/src/commands/preview_command.dart @@ -237,6 +237,7 @@ class PreviewCommand extends ShorebirdCommand { deviceId: deviceId, track: track, ), + ReleasePlatform.macos => throw UnimplementedError(), ReleasePlatform.ios => installAndLaunchIos( appId: appId, release: release, diff --git a/packages/shorebird_cli/lib/src/metadata/create_patch_metadata.g.dart b/packages/shorebird_cli/lib/src/metadata/create_patch_metadata.g.dart index e6d263755..6e1cb8587 100644 --- a/packages/shorebird_cli/lib/src/metadata/create_patch_metadata.g.dart +++ b/packages/shorebird_cli/lib/src/metadata/create_patch_metadata.g.dart @@ -57,5 +57,6 @@ Map _$CreatePatchMetadataToJson( const _$ReleasePlatformEnumMap = { ReleasePlatform.android: 'android', + ReleasePlatform.macos: 'macos', ReleasePlatform.ios: 'ios', }; diff --git a/packages/shorebird_cli/lib/src/metadata/update_release_metadata.g.dart b/packages/shorebird_cli/lib/src/metadata/update_release_metadata.g.dart index fcae53062..c814e50e2 100644 --- a/packages/shorebird_cli/lib/src/metadata/update_release_metadata.g.dart +++ b/packages/shorebird_cli/lib/src/metadata/update_release_metadata.g.dart @@ -45,5 +45,6 @@ Map _$UpdateReleaseMetadataToJson( const _$ReleasePlatformEnumMap = { ReleasePlatform.android: 'android', + ReleasePlatform.macos: 'macos', ReleasePlatform.ios: 'ios', }; diff --git a/packages/shorebird_code_push_protocol/lib/src/messages/create_patch_artifact/create_patch_artifact_request.g.dart b/packages/shorebird_code_push_protocol/lib/src/messages/create_patch_artifact/create_patch_artifact_request.g.dart index 91a066dff..50bee76c1 100644 --- a/packages/shorebird_code_push_protocol/lib/src/messages/create_patch_artifact/create_patch_artifact_request.g.dart +++ b/packages/shorebird_code_push_protocol/lib/src/messages/create_patch_artifact/create_patch_artifact_request.g.dart @@ -46,5 +46,6 @@ Map _$CreatePatchArtifactRequestToJson( const _$ReleasePlatformEnumMap = { ReleasePlatform.android: 'android', + ReleasePlatform.macos: 'macos', ReleasePlatform.ios: 'ios', }; diff --git a/packages/shorebird_code_push_protocol/lib/src/messages/create_patch_artifact/create_patch_artifact_response.g.dart b/packages/shorebird_code_push_protocol/lib/src/messages/create_patch_artifact/create_patch_artifact_response.g.dart index 5a3aca31f..8fecfe8b3 100644 --- a/packages/shorebird_code_push_protocol/lib/src/messages/create_patch_artifact/create_patch_artifact_response.g.dart +++ b/packages/shorebird_code_push_protocol/lib/src/messages/create_patch_artifact/create_patch_artifact_response.g.dart @@ -43,5 +43,6 @@ Map _$CreatePatchArtifactResponseToJson( const _$ReleasePlatformEnumMap = { ReleasePlatform.android: 'android', + ReleasePlatform.macos: 'macos', ReleasePlatform.ios: 'ios', }; diff --git a/packages/shorebird_code_push_protocol/lib/src/messages/create_release_artifact/create_release_artifact_request.g.dart b/packages/shorebird_code_push_protocol/lib/src/messages/create_release_artifact/create_release_artifact_request.g.dart index 21c6591f5..cf9d61d05 100644 --- a/packages/shorebird_code_push_protocol/lib/src/messages/create_release_artifact/create_release_artifact_request.g.dart +++ b/packages/shorebird_code_push_protocol/lib/src/messages/create_release_artifact/create_release_artifact_request.g.dart @@ -50,5 +50,6 @@ Map _$CreateReleaseArtifactRequestToJson( const _$ReleasePlatformEnumMap = { ReleasePlatform.android: 'android', + ReleasePlatform.macos: 'macos', ReleasePlatform.ios: 'ios', }; diff --git a/packages/shorebird_code_push_protocol/lib/src/messages/create_release_artifact/create_release_artifact_response.g.dart b/packages/shorebird_code_push_protocol/lib/src/messages/create_release_artifact/create_release_artifact_response.g.dart index ae1757fd5..fa2fc01fe 100644 --- a/packages/shorebird_code_push_protocol/lib/src/messages/create_release_artifact/create_release_artifact_response.g.dart +++ b/packages/shorebird_code_push_protocol/lib/src/messages/create_release_artifact/create_release_artifact_response.g.dart @@ -43,5 +43,6 @@ Map _$CreateReleaseArtifactResponseToJson( const _$ReleasePlatformEnumMap = { ReleasePlatform.android: 'android', + ReleasePlatform.macos: 'macos', ReleasePlatform.ios: 'ios', }; diff --git a/packages/shorebird_code_push_protocol/lib/src/messages/update_release/update_release_request.g.dart b/packages/shorebird_code_push_protocol/lib/src/messages/update_release/update_release_request.g.dart index dcc11637b..a12b26ab7 100644 --- a/packages/shorebird_code_push_protocol/lib/src/messages/update_release/update_release_request.g.dart +++ b/packages/shorebird_code_push_protocol/lib/src/messages/update_release/update_release_request.g.dart @@ -41,5 +41,6 @@ const _$ReleaseStatusEnumMap = { const _$ReleasePlatformEnumMap = { ReleasePlatform.android: 'android', + ReleasePlatform.macos: 'macos', ReleasePlatform.ios: 'ios', }; diff --git a/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.g.dart b/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.g.dart index 18fc88e12..1fbf2b421 100644 --- a/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.g.dart +++ b/packages/shorebird_code_push_protocol/lib/src/models/patch_artifact.g.dart @@ -42,5 +42,6 @@ Map _$PatchArtifactToJson(PatchArtifact instance) => const _$ReleasePlatformEnumMap = { ReleasePlatform.android: 'android', + ReleasePlatform.macos: 'macos', ReleasePlatform.ios: 'ios', }; diff --git a/packages/shorebird_code_push_protocol/lib/src/models/release.g.dart b/packages/shorebird_code_push_protocol/lib/src/models/release.g.dart index 9e2d85a72..78c33c56a 100644 --- a/packages/shorebird_code_push_protocol/lib/src/models/release.g.dart +++ b/packages/shorebird_code_push_protocol/lib/src/models/release.g.dart @@ -65,5 +65,6 @@ const _$ReleaseStatusEnumMap = { const _$ReleasePlatformEnumMap = { ReleasePlatform.android: 'android', + ReleasePlatform.macos: 'macos', ReleasePlatform.ios: 'ios', }; diff --git a/packages/shorebird_code_push_protocol/lib/src/models/release_artifact.g.dart b/packages/shorebird_code_push_protocol/lib/src/models/release_artifact.g.dart index f2b34e0d9..333a6c41c 100644 --- a/packages/shorebird_code_push_protocol/lib/src/models/release_artifact.g.dart +++ b/packages/shorebird_code_push_protocol/lib/src/models/release_artifact.g.dart @@ -50,5 +50,6 @@ Map _$ReleaseArtifactToJson(ReleaseArtifact instance) => const _$ReleasePlatformEnumMap = { ReleasePlatform.android: 'android', + ReleasePlatform.macos: 'macos', ReleasePlatform.ios: 'ios', }; diff --git a/packages/shorebird_code_push_protocol/lib/src/models/release_platform.dart b/packages/shorebird_code_push_protocol/lib/src/models/release_platform.dart index b84311f4c..11e51bbb2 100644 --- a/packages/shorebird_code_push_protocol/lib/src/models/release_platform.dart +++ b/packages/shorebird_code_push_protocol/lib/src/models/release_platform.dart @@ -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);