From 1fee99cd2abfccc6e1e8722eb5e63ad0269c12b6 Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Tue, 9 Jun 2026 03:16:51 +0530 Subject: [PATCH] ci: verify pigeon autogen output during static analysis (#28920) Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- .github/workflows/static_analysis.yml | 2 ++ .../Runner/Permission/PermissionApi.g.swift | 18 ------------------ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index f3ab31d630..1eb96aac3c 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -90,6 +90,8 @@ jobs: mobile/**/*.g.dart mobile/**/*.gr.dart mobile/**/*.drift.dart + mobile/**/*.g.swift + mobile/**/*.g.kt - name: Verify files have not changed if: steps.verify-changed-files.outputs.files_changed == 'true' diff --git a/mobile/ios/Runner/Permission/PermissionApi.g.swift b/mobile/ios/Runner/Permission/PermissionApi.g.swift index 988e9b56dd..b9c116f0c5 100644 --- a/mobile/ios/Runner/Permission/PermissionApi.g.swift +++ b/mobile/ios/Runner/Permission/PermissionApi.g.swift @@ -11,24 +11,6 @@ import Foundation #error("Unsupported platform.") #endif -/// Error class for passing custom error details to Dart side. -final class PigeonError: Error { - let code: String - let message: String? - let details: Sendable? - - init(code: String, message: String?, details: Sendable?) { - self.code = code - self.message = message - self.details = details - } - - var localizedDescription: String { - return - "PigeonError(code: \(code), message: \(message ?? ""), details: \(details ?? "")" - } -} - private func wrapResult(_ result: Any?) -> [Any?] { return [result] }