fix: Fix CI for V3 (#1475)

* fix: Fix CI for "Build Android"

* update versions

* Update Gemfile.lock

* format swift

* fix: Fix swift lint

* Update .swiftlint.yml

* Use C++17 for lint

* fix: Fix C++ lints
This commit is contained in:
Marc Rousavy
2023-02-15 17:24:33 +01:00
committed by GitHub
parent 30b56153db
commit f0ea18115e
12 changed files with 47 additions and 49 deletions

View File

@@ -22,8 +22,6 @@ opt_in_rules:
- vertical_whitespace_opening_braces
- vertical_whitespace_closing_braces
- vertical_parameter_alignment_on_call
- unused_import
- unused_declaration
- untyped_error_in_catch
- unowned_variable_capture
- unavailable_function
@@ -37,7 +35,10 @@ opt_in_rules:
- redundant_nil_coalescing
- attributes
- convenience_type
analyzer_rules:
- explicit_self
- unused_declaration
- unused_import
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods

View File

@@ -144,7 +144,8 @@ extension CameraView {
} else {
ReactLogger.log(level: .error, message: "Cannot resume interrupted Audio Session!")
}
@unknown default: ()
@unknown default:
()
}
}
}

View File

@@ -212,7 +212,7 @@ extension CameraView: AVCaptureVideoDataOutputSampleBufferDelegate, AVCaptureAud
if let frameProcessor = frameProcessorCallback, captureOutput is AVCaptureVideoDataOutput {
// Call the JavaScript Frame Processor func (worklet)
let frame = Frame(buffer: sampleBuffer, orientation: self.bufferOrientation)
let frame = Frame(buffer: sampleBuffer, orientation: bufferOrientation)
frameProcessor(frame)
}
}

View File

@@ -34,7 +34,7 @@ final class CameraViewManager: RCTViewManager {
// Runs on JS Thread
runtimeManager = FrameProcessorRuntimeManager()
runtimeManager!.installFrameProcessorBindings()
return NSNumber(booleanLiteral: true)
return true as NSNumber
}
@objc