chore(shorebird_code_push_protocol): remove unused patchHash (#3846)

This commit is contained in:
nickshorebird
2026-07-09 15:38:33 -04:00
committed by GitHub
parent 4f43c06456
commit 9086e89bd5
2 changed files with 0 additions and 11 deletions
@@ -15,7 +15,6 @@ class PatchCheckRequest {
required this.appId,
required this.channel,
this.patchNumber,
this.patchHash,
this.clientId,
this.currentPatchNumber,
});
@@ -28,7 +27,6 @@ class PatchCheckRequest {
() => PatchCheckRequest(
releaseVersion: json['release_version'] as String,
patchNumber: json['patch_number'] as int?,
patchHash: json['patch_hash'] as String?,
platform: ReleasePlatform.fromJson(json['platform'] as String),
arch: json['arch'] as String,
appId: json['app_id'] as String,
@@ -56,9 +54,6 @@ class PatchCheckRequest {
/// number. If omitted, the server returns the latest available.
final int? patchNumber;
/// The current patch hash of the app.
final String? patchHash;
/// A platform to which a Shorebird release can be deployed.
final ReleasePlatform platform;
@@ -85,7 +80,6 @@ class PatchCheckRequest {
return {
'release_version': releaseVersion,
'patch_number': patchNumber,
'patch_hash': patchHash,
'platform': platform.toJson(),
'arch': arch,
'app_id': appId,
@@ -99,7 +93,6 @@ class PatchCheckRequest {
int get hashCode => Object.hashAll([
releaseVersion,
patchNumber,
patchHash,
platform,
arch,
appId,
@@ -114,7 +107,6 @@ class PatchCheckRequest {
return other is PatchCheckRequest &&
releaseVersion == other.releaseVersion &&
patchNumber == other.patchNumber &&
patchHash == other.patchHash &&
platform == other.platform &&
arch == other.arch &&
appId == other.appId &&
@@ -6,7 +6,6 @@ void main() {
const request = PatchCheckRequest(
releaseVersion: '1',
patchNumber: 2,
patchHash: '3',
platform: ReleasePlatform.android,
arch: 'arm64',
appId: 'app_123',
@@ -26,7 +25,6 @@ void main() {
const copy = PatchCheckRequest(
releaseVersion: '1',
patchNumber: 2,
patchHash: '3',
platform: ReleasePlatform.android,
arch: 'arm64',
appId: 'app_123',
@@ -37,7 +35,6 @@ void main() {
const different = PatchCheckRequest(
releaseVersion: '1',
patchNumber: 2,
patchHash: '3',
platform: ReleasePlatform.android,
arch: 'arm64',
appId: 'app_123',