Commit Graph

687 Commits

Author SHA1 Message Date
Marc Rousavy
9ef2496a7a
Update FRAME_PROCESSORS.mdx 2021-07-08 14:23:30 +02:00
Marc Rousavy
a62697fe2a
Update FRAME_PROCESSORS.mdx 2021-07-08 14:22:56 +02:00
Marc Rousavy
cf68a4c647
docs: Explain Frame Processor benefits more 2021-07-08 14:17:10 +02:00
Marc Rousavy
5b75ce0dfb
Update TROUBLESHOOTING.mdx 2021-07-08 12:05:29 +02:00
Marc Rousavy
63cc806bd6
docs: Update Android TROUBLESHOOTING 2021-07-08 12:03:00 +02:00
Marc Rousavy
1033610382 chore: release 2.4.2-beta.8 2021-07-08 11:16:25 +02:00
Marc Rousavy
66f22d7b21 fix: Only extract either JSC or Hermes REA .aar 2021-07-08 11:12:26 +02:00
Marc Rousavy
4fb7803574 chore: Fix Android npm files 2021-07-08 11:07:50 +02:00
Marc Rousavy
89110dc481 Ignore app.plugin.js with ESLint 2021-07-08 11:04:48 +02:00
Marc Rousavy
06911495f1 fix: TS error 2021-07-08 11:04:05 +02:00
Marc Rousavy
ba08b4dfce chore: Format Swift 2021-07-08 11:01:02 +02:00
Marc Rousavy
5126dd63b4 feat: Make videoWidth and videoHeight available on all devices 2021-07-08 10:59:27 +02:00
Marc Rousavy
b2f3c08a07
fix: Distribute Android code as source (#234)
* Build Android as source

* more reliably find `enableHermes`
2021-07-08 10:52:14 +02:00
dependabot[bot]
349b1146b0
chore(deps-dev): bump @types/react from 17.0.11 to 17.0.13 (#254)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.11 to 17.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-08 10:51:34 +02:00
dependabot[bot]
63053f8650
chore(deps): bump gradle-download-task from 4.1.1 to 4.1.2 in /android (#262)
Bumps [gradle-download-task](https://github.com/michel-kraemer/gradle-download-task) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/michel-kraemer/gradle-download-task/releases)
- [Commits](https://github.com/michel-kraemer/gradle-download-task/compare/4.1.1...4.1.2)

---
updated-dependencies:
- dependency-name: de.undercouch:gradle-download-task
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-08 10:50:38 +02:00
dependabot[bot]
39fb4e0cd3
chore(deps-dev): bump metro-react-native-babel-preset in /example (#247)
Bumps [metro-react-native-babel-preset](https://github.com/facebook/metro) from 0.66.0 to 0.66.1.
- [Release notes](https://github.com/facebook/metro/releases)
- [Changelog](https://github.com/facebook/metro/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/metro/compare/v0.66.0...v0.66.1)

---
updated-dependencies:
- dependency-name: metro-react-native-babel-preset
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-07 16:20:57 +02:00
dependabot[bot]
7661aea442
chore(deps): bump @docusaurus/preset-classic in /docs (#250)
Bumps [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic) from 2.0.0-beta.2 to 2.0.0-beta.3.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v2.0.0-beta.3/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-07 16:17:27 +02:00
Marc Rousavy
a4397e1978 docs: Update expo install docs 2021-07-07 16:13:15 +02:00
Marc Rousavy
b40d3ddc6b docs: Update expo getting started docs 2021-07-07 16:06:01 +02:00
Marc Rousavy
2f889f5855
fix: Fix hot-reload crash caused by Frame Processor Runtime being initialized twice (#258)
* Fix Frame Processor Runtime being initialized twice causing a hot-reload to crash

* Remove unnecessary `HasRegisteredPlugins` singleton

* make non-optional

* `REACT_CLASS` -> `TAG`

* fix nullable
2021-07-07 15:00:32 +02:00
Marc Rousavy
d3a8b49f9b
feat: Expo support (#260)
* Create `withVisionCamera` plugin

* Add docs for setting up Expo

* Update SETUP.mdx

* Update app.config.js

* rename config -> plugin

* Update SETUP.mdx

* add "runs with expo" badge to README

* Revert "add "runs with expo" badge to README"

This reverts commit e05a87a2354a056432af7b94060e95df37077472.

* fix `withVisionCamera` path

* remove unnecessary type docs
2021-07-07 14:55:25 +02:00
Marc Rousavy
3007cd9430 fix: Add @Keep annotation to prevent minifier from deleting java funcs 2021-07-07 13:18:38 +02:00
Marc Rousavy
7a5e879b92 fix: Fix lint error for missing JNI func (3) 2021-07-07 13:17:41 +02:00
Marc Rousavy
91e81d7594 fix: Fix lint error for missing JNI func (2) 2021-07-07 13:16:19 +02:00
Marc Rousavy
1730ce8980 fix: Fix lint error for missing JNI func 2021-07-07 13:15:32 +02:00
Marc Rousavy
339b470ca5 fix: Fix wrong HDR error being thrown on LowLight mode 2021-07-07 13:14:36 +02:00
Marc Rousavy
1e64215d37
chore(deps): upgrade camerax (#257)
* Upgrade CameraX to alpha6

* Upgrade CameraX extensions to alpha26

* `init` -> `getInstance`

* Use new Extensions API

* Update CameraView.kt

* use new ExtensionsManager API in `getAvailableCameraDevices()`

* fix cpplint errors
2021-07-07 12:57:28 +02:00
Marc Rousavy
aa9132b527
Run dependabot for Android daily 2021-07-07 11:38:47 +02:00
Marc Rousavy
ba50e2b485
Update FRAME_PROCESSORS.mdx 2021-07-07 10:21:17 +02:00
Marc Rousavy
0bb9ba1e8a docs: Remove outdated "use-cases" docs 2021-07-06 16:59:09 +02:00
Marc Rousavy
2fa0f8fd46
chore: Clean up root directory (#236)
* Clean up root

* remove unused REA patches

* Remove `cpp/` and create headers per platform

* fix `#import`

* fix `VISION_CAMERA_DISABLE_FRAME_PROCESSORS`
2021-07-06 16:42:58 +02:00
Marc Rousavy
65168f7abb
Update FRAME_PROCESSORS_CREATE_OVERVIEW.mdx 2021-07-06 15:28:17 +02:00
Marc Rousavy
444e421e67
Update FRAME_PROCESSORS_CREATE_OVERVIEW.mdx 2021-07-06 15:21:40 +02:00
Marc Rousavy
1f680276a0
Update FRAME_PROCESSORS.mdx 2021-07-06 15:16:54 +02:00
Marc Rousavy
3e3485ff7e
Update FRAME_PROCESSORS.mdx 2021-07-06 15:15:57 +02:00
Marc Rousavy
18e0d3ec7d
docs: Re-order Frame Processor docs 2021-07-06 15:12:29 +02:00
Marc Rousavy
db9c7d8e00
Update FRAME_PROCESSORS.mdx 2021-07-06 15:06:14 +02:00
Marc Rousavy
4a362a544f
Update FRAME_PROCESSORS.mdx 2021-07-06 15:05:13 +02:00
Marc Rousavy
d4057e9d8e
Update FRAME_PROCESSORS.mdx 2021-07-06 15:03:40 +02:00
Marc Rousavy
5ad386bfbc
Update FRAME_PROCESSORS.mdx 2021-07-06 15:01:58 +02:00
Marc Rousavy
94914907ba
docs: Shorten code sample 2021-07-06 14:56:44 +02:00
Marc Rousavy
1646bb56f4
docs: Link to Worklets docs 2021-07-06 14:54:05 +02:00
Marc Rousavy
db0baaefe8
docs: Use Hotdog/Not Hotdog as sample 2021-07-06 14:52:28 +02:00
Marc Rousavy
b39b38006c
docs: Update "The Frame object" docs 2021-07-06 14:32:39 +02:00
Marc Rousavy
ff892c2f4b
docs: Emphasize "video processing" 2021-07-06 14:02:04 +02:00
Marc Rousavy
949c44a97f
docs: Fix confusing wording 2021-07-06 14:00:48 +02:00
Marc Rousavy
0f6d0978f0
docs: Update Frame Processor Technical docs 2021-07-06 10:37:56 +02:00
Marc Rousavy
03cd0bb635
docs: Add link to Frame Processors to README 2021-07-06 10:26:41 +02:00
Marc Rousavy
fa5f5c0cab
feat: Implement Frame.close() (#229)
* Implement `Frame.close()`

* close frame in dtor

* Update JImageProxyHostObject.cpp

* fix close

* Check if closed

* remove a few logs

* r

* fix `isValid` and `isReady`

* Add JImage

* Release JNI frame ref on destroy

* fix pod setup

* Fix isValid call

* Fix `close` not returning a function

* throw error if closed twice

* iOS: Schedule `console.error` call on JS thread

* Android: Log Frame Processor Error to JS

* fix syntax

* Check if valid `toString()`

* Update Frame.ts

* Remove `isReady`

* Fix JImage accessors

* remove `JImage` C++ sources

* Throw error if accessing props on closed Frame

* Delete `JImage.h`
2021-07-06 10:08:44 +02:00
Marc Rousavy
7d3b352155
perf: Avoid expensive CMSampleBuffer copy (#235)
* Don't copy CMSampleBuffer

* Update CameraView+RecordVideo.swift

* Update Podfile.lock
2021-07-06 09:25:11 +02:00