Commit Graph

41 Commits

Author SHA1 Message Date
Marc Rousavy
66b93181e1
Remove code scanning (#112)
* Remove Audio Device if it failed to configure

* Add `audio-in-use-by-other-app` error

* Try removing on interruption

* Format code

* Remove code scanning

* Fix export
2021-03-29 11:34:35 +02:00
Marc Rousavy
1558dd2f15
Error when Audio Input is in use by another app (#111)
* Remove Audio Device if it failed to configure

* Add `audio-in-use-by-other-app` error

* Try removing on interruption

* Format code

* Make error more clear
2021-03-29 11:32:00 +02:00
Marc Rousavy
750af31a80 Don't localize error messages 2021-03-26 15:54:27 +01:00
Marc Rousavy
5bfcdf324e Extract CameraProps to separate file 2021-03-23 17:15:09 +01:00
Marc Rousavy
f0828e63f0
Fix docs broken links (#97)
* Fix broken CameraProps.format link

* Use absolute urls for SETUP.mdx
2021-03-23 15:49:58 +01:00
Marc Rousavy
48821d50ca
Move Guides to docs/guides directory (#96)
* Move Guides to docs/guides directory

* Rename sidebar

* Fix api/ links

* Update SETUP.mdx
2021-03-23 15:25:27 +01:00
Marc Rousavy
35806ff660
Upgrade Example to RN 0.64 (#83)
* ReactLogger: Also log function

* Run SwiftFormat & SwiftLint in example project

* Upgrade to RN 0.64 1/2

* Update lockfiles

* Upgrade a few packages

* index.tsx -> index.js

* Upgrade docusaurus

* Fix line length violation

* Update CameraView.swift

* Update gradle plugin

* Fix example to prefer higher res cameras

* Remove unused log line

* Update App.tsx
2021-03-19 15:53:19 +01:00
Marc Rousavy
1def7230c8 Make VideoFile's duration/size props nullable 2021-03-18 12:18:57 +01:00
mrousavy
89a35812f7 Remove a few TODOs 2021-03-17 19:29:03 +01:00
Marc Rousavy
db8960580f
Feature/supports focus (#72)
* Add `supportsFocus` prop to CameraDevice

* Add true-depth camera again

* Revert "Add true-depth camera again"

This reverts commit 5814b8ca7a15b3273ff29498144bb352619a4c1d.
2021-03-17 18:07:05 +01:00
Marc Rousavy
9f30348053 Filter out true-depth-camera in getAvailableCameraDevices 2021-03-17 15:30:17 +01:00
Marc Rousavy
dee957648b
Fix tsc (again) (#50)
* Test forbid `<View>`

* Update validate-js.yml

* Run yarn lint with custom formatter lib

* Revert "Test forbid `<View>`"

This reverts commit d36ab54b48b7e86e594d360bd71c82b541ed63fa.

* Test: Intentional tsc error

* Update notice-new-dependencies.yml

* Update validate-js.yml

* Use reviewdog again, but with custom efm

* Fix <Camera> props

* Update validate-js.yml

* Try use github-check

* Update validate-js.yml

* Update validate-js.yml

* Add two reporters

* Update validate-js.yml

* Level error

* Use github-pr-review

* Update validate-js.yml

* Revert "Test: Intentional tsc error"

This reverts commit a4e7f6f599d403848729143f1bd87a3435c70826.
2021-03-12 14:19:22 +01:00
Marc Rousavy
33483cba94
Fix tsc (#49)
* Test: Rename a used prop

* Use `github-check` reporter

* Also output to CI

* Update validate-js.yml

* Update validate-js.yml

* Update validate-js.yml

* Revert "Test: Rename a used prop"

This reverts commit 266b2716ea591a1e826279c1f573870bee3b13e5.

* Run tsc and lint in parallel

* Flatten `CameraProps` into single `interface`

* Type NativeCameraViewProps

* Fix native method typings

* Force `as any` for now
2021-03-12 13:21:46 +01:00
Marc Rousavy
e8a4e9f6b5 Update code example languages 2021-03-09 12:02:10 +01:00
Marc Rousavy
bfba6a95ee Use @linkcode for typedocs 2021-03-08 18:51:53 +01:00
Marc Rousavy
981c5fa576 Update Camera.tsx 2021-03-08 18:32:20 +01:00
Marc Rousavy
95db7fb2ff Update Camera.tsx 2021-03-08 18:30:23 +01:00
Marc Rousavy
66aae62d17 Add more TypeDoc links 2021-03-08 18:21:30 +01:00
Marc Rousavy
8d358983f1 Add a few more docs links 2021-03-08 18:16:45 +01:00
Marc Rousavy
1f96aaa69f Fix @throws TypeDocs 2021-03-08 18:04:44 +01:00
Marc Rousavy
b1f78c0807 Update TemporaryFile.ts 2021-03-08 18:00:30 +01:00
Marc Rousavy
f051481010
Devops/reviewdog typescript (#25)
* Use reviewdog for TSC

* Replace all `type Readonly<T>` with `interface T`

* Use --frozen-lockfile for yarn

* Give all actions a name

* Fix yarn example
2021-03-08 17:51:47 +01:00
mrousavy
bfcb6b37d8 Add a few TypeDoc annotations for CameraError 2021-03-07 14:26:21 +01:00
Marc Rousavy
d4b8da790c
Add a few @internal annotations 2021-03-07 14:23:14 +01:00
Marc Rousavy
0a76a416ad
Update Code.ts 2021-03-07 14:20:58 +01:00
Marc Rousavy
0b7b4d50b5
Automatically build API documentation (#11)
* Automatically build API documentation using Typedoc and Docusaurus
* Move MD and move to MDX for Docusaurus Guides
2021-03-03 12:37:43 +01:00
Marc Rousavy
934106e837 ErrorWithCause: add .code and .domain 2021-02-23 15:59:07 +01:00
Marc Rousavy
49e5dd67dc Manually setup AVAudioSession (allow background music playback) 2021-02-23 10:27:31 +01:00
Marc Rousavy
3e98a7d190 Fix TS imports 2021-02-23 08:50:51 +01:00
Marc Rousavy
1ccbbae9e0 advance hook: useCameraDevices 2021-02-22 09:43:47 +01:00
Marc Rousavy
a6a465881a Update FormatFilter.ts 2021-02-22 09:21:54 +01:00
Marc Rousavy
93ec6a49b0 Update useCameraDevice.ts 2021-02-20 23:23:38 +01:00
Marc Rousavy
04fd5bb069 Squash format-filter 2021-02-20 23:20:28 +01:00
Marc Rousavy
4d8baf8cfa Update CameraDevice.ts 2021-02-20 17:11:17 +01:00
Marc Rousavy
dc2be934f6 ESLint autofix 2021-02-20 17:07:10 +01:00
Marc Rousavy
50509200aa Create useCameraDevice.ts 2021-02-20 17:05:02 +01:00
Marc Rousavy
b2594f3e12 import type 2021-02-19 16:24:28 +01:00
Marc Rousavy
efc655f78f fix eslint errors 2021-02-19 16:23:54 +01:00
Marc Rousavy
7d4cbd8c67 Create index.ts 2021-02-19 16:14:11 +01:00
Marc Rousavy
6ee0ce9cff MD 2021-02-19 16:08:26 +01:00
Marc Rousavy
c04a4b72be Bootstrap 2021-02-19 16:07:53 +01:00