From fde077eba4960e5767deb81d4e925e65cc830fa3 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Tue, 26 Nov 2024 18:01:22 -0500 Subject: [PATCH 1/2] feat: add macos release type to shorebird_code_push_protocol --- .../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 ++ 9 files changed, 10 insertions(+) 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); From f0b8d03a7b626f2a62678265dc29805b9f359c84 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Tue, 26 Nov 2024 18:04:58 -0500 Subject: [PATCH 2/2] fix tests --- packages/shorebird_cli/lib/src/commands/preview_command.dart | 1 + 1 file changed, 1 insertion(+) 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,