Skip to content

High performance self-hosted photo and video management solution.

ci: verify pigeon autogen output during static analysis (#28920)

shenlong1fee99cd2abf
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 ?? "<nil>"), details: \(details ?? "<nil>")"
- }
-}
-
private func wrapResult(_ result: Any?) -> [Any?] {
return [result]
}