-
-
Notifications
You must be signed in to change notification settings - Fork 994
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Completely refactor the
FrameProcessorPlugins.ts
file into mu…
…ltiple files (#2830) * feat: Completely refactor the `FrameProcessorPlugins.ts` file into multiple files * Refactor * Prepare * Update some docs * fix: Fix invalid `options` param (undefined) * Update FRAME_PROCESSORS_CREATE_OVERVIEW.mdx
- Loading branch information
Showing
18 changed files
with
378 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
package/example/src/frame-processors/ExampleKotlinSwiftPlugin.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
package/src/frame-processors/FrameProcessorsUnavailableError.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CameraRuntimeError } from '../CameraError' | ||
|
||
export class FrameProcessorsUnavailableError extends CameraRuntimeError { | ||
constructor(reason: unknown) { | ||
super( | ||
'system/frame-processors-unavailable', | ||
'Frame Processors are not available, react-native-worklets-core is not installed! ' + | ||
`Error: ${reason instanceof Error ? reason.message : reason}`, | ||
) | ||
} | ||
} |
Oops, something went wrong.