Skip to content

Commit 9ea158a

Browse files
authored
chore: Move to /mrousavy/ (mrousavy#224)
* rename 1/n * 2 * 3 * fix indent
1 parent 5c9cc50 commit 9ea158a

File tree

62 files changed

+95
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+95
-103
lines changed

.github/ISSUE_TEMPLATE/BUG_REPORT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ assignees: ''
1212
Remember that you can use this project FOR FREE.
1313
Badly written issues are less likely to be picked up than well written ones.
1414
BEFORE creating an issue, make sure you tried everything in the TROUBLESHOOTING guide:
15-
https://cuvent.github.io/react-native-vision-camera/docs/guides/troubleshooting
15+
https://mrousavy.github.io/react-native-vision-camera/docs/guides/troubleshooting
1616
-->
1717

1818
## What

CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [email protected]. All
58+
reported by creating an issue on the GitHub repository. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
Read the READMEs in [`android/`](android/README.md), [`ios/`](ios/README.md), and [`cpp/`](cpp/README.md) for a quick overview of the development workflow.
1717

18-
> You can also open VisionCamera in [a quick online editor (github1s)](https://github1s.com/cuvent/react-native-vision-camera)
18+
> You can also open VisionCamera in [a quick online editor (github1s)](https://github1s.com/mrousavy/react-native-vision-camera)
1919
2020
### iOS
2121

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2021 Cuvent Technologies UG (haftungsbeschränkt)
1+
Copyright 2021 Marc Rousavy
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

README.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
<br />
77
<blockquote><b>📸 The Camera library that sees the vision.</b></blockquote>
88
<pre align="center">npm i <a href="https://www.npmjs.com/package/react-native-vision-camera">react-native-vision-camera</a><br/>npx pod-install </pre>
9-
<a href="https://cuvent.com">
10-
<img height="40" src="docs/static/img/cuvent-logo-text.svg" />
11-
</a>
12-
<br/>
139
<span>
1410
<a align="center" href="https://github.com/mrousavy?tab=followers">
1511
<img src="https://img.shields.io/github/followers/mrousavy?label=Follow%20%40mrousavy&style=social" />
@@ -32,8 +28,8 @@
3228

3329
### Documentation
3430

35-
* [Guides](https://cuvent.github.io/react-native-vision-camera/docs/guides)
36-
* [API](https://cuvent.github.io/react-native-vision-camera/docs/api)
31+
* [Guides](https://mrousavy.github.io/react-native-vision-camera/docs/guides)
32+
* [API](https://mrousavy.github.io/react-native-vision-camera/docs/api)
3733
* [Example](./example/)
3834

3935
### Features
@@ -69,4 +65,4 @@ function App() {
6965

7066
<br />
7167

72-
#### 🚀 Get started by [setting up permissions](https://cuvent.github.io/react-native-vision-camera/docs/guides/)!
68+
#### 🚀 Get started by [setting up permissions](https://mrousavy.github.io/react-native-vision-camera/docs/guides/)!

VisionCamera.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
1111
s.authors = package["author"]
1212

1313
s.platforms = { :ios => "11.0" }
14-
s.source = { :git => "https://github.com/cuvent/react-native-vision-camera.git", :tag => "#{s.version}" }
14+
s.source = { :git => "https://github.com/mrousavy/react-native-vision-camera.git", :tag => "#{s.version}" }
1515

1616
s.pod_target_xcconfig = {
1717
"DEFINES_MODULE" => "YES",

android/src/main/java/com/mrousavy/camera/CameraView+RecordVideo.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ suspend fun CameraView.startRecording(options: ReadableMap, onRecordCallback: Ca
4747
override fun onVideoSaved(outputFileResults: VideoCapture.OutputFileResults) {
4848
val map = Arguments.createMap()
4949
map.putString("path", videoFile.absolutePath)
50-
// TODO: duration and size - see https://github.com/cuvent/react-native-vision-camera/issues/77
50+
// TODO: duration and size - see https://github.com/mrousavy/react-native-vision-camera/issues/77
5151
onRecordCallback(map, null)
5252

5353
// reset the torch mode

android/src/main/java/com/mrousavy/camera/CameraView+TakePhoto.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ suspend fun CameraView.takePhoto(options: ReadableMap): WritableMap = coroutineS
3636
else -> throw InvalidTypeScriptUnionError("flash", flashMode ?: "(null)")
3737
}
3838
}
39-
// All those options are not yet implemented - see https://github.com/cuvent/react-native-vision-camera/issues/75
39+
// All those options are not yet implemented - see https://github.com/mrousavy/react-native-vision-camera/issues/75
4040
if (options.hasKey("photoCodec")) {
4141
// TODO photoCodec
4242
}

docs/docs/guides/DEVICES.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const devices = await Camera.getAvailableCameraDevices()
3434
```
3535

3636
:::note
37-
See the [`CameraDevice` type](https://github.com/cuvent/react-native-vision-camera/blob/main/src/CameraDevice.ts) for more information about a Camera Device
37+
See the [`CameraDevice` type](https://github.com/mrousavy/react-native-vision-camera/blob/main/src/CameraDevice.ts) for more information about a Camera Device
3838
:::
3939

4040
A camera device (`CameraDevice`) contains a list of physical device types this camera device consists of.

docs/docs/guides/ERRORS.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The `CameraError` type is a baseclass type for all other errors and provides the
5050
* `cause.cause?`: The cause that caused this cause. (Recursive) (Optional)
5151

5252
:::note
53-
See [the `CameraError.ts` file](https://github.com/cuvent/react-native-vision-camera/blob/main/src/CameraError.ts) for a list of all possible error codes
53+
See [the `CameraError.ts` file](https://github.com/mrousavy/react-native-vision-camera/blob/main/src/CameraError.ts) for a list of all possible error codes
5454
:::
5555

5656
### Runtime Errors

docs/docs/guides/FORMATS.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function App() {
3939
```
4040

4141
:::note
42-
See the [CameraPreset.ts](https://github.com/cuvent/react-native-vision-camera/blob/main/src/CameraPreset.ts) type for more information about presets
42+
See the [CameraPreset.ts](https://github.com/mrousavy/react-native-vision-camera/blob/main/src/CameraPreset.ts) type for more information about presets
4343
:::
4444

4545
:::warning
@@ -61,7 +61,7 @@ Each application has different needs, so the format filtering is up to you.
6161
To get all available formats, simply use the `CameraDevice`'s `.formats` property. See how to get a camera device in the [Camera Devices guide](devices).
6262

6363
:::note
64-
You can also manually get all camera devices and decide which device to use based on the available `formats`. In fact, this is how we do it in the [Cuvent](https://cuvent.com) app.
64+
You can also manually get all camera devices and decide which device to use based on the available `formats`.
6565
:::
6666

6767
This example shows how you would pick the format with the _highest frame rate_:

docs/docs/guides/FRAME_PROCESSORS_CREATE_OVERVIEW.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,19 @@ export function detectObject(frame: Frame): string {
6363
}
6464
```
6565

66-
You can also manipulate the buffer and return it (or a copy of it) by using the [`Frame` class](https://github.com/cuvent/react-native-vision-camera/blob/main/ios/Frame%20Processor/Frame.h):
66+
You can also manipulate the buffer and return it (or a copy of it) by using the [`Frame` class](https://github.com/mrousavy/react-native-vision-camera/blob/main/ios/Frame%20Processor/Frame.h):
6767

6868
```objc
6969
#import <VisionCamera/Frame.h>
7070

7171
static inline id resize(Frame* frame, NSArray args) {
7272
CMSampleBufferRef resizedBuffer = // ...
73-
73+
7474
return [[Frame alloc] initWithBuffer:resizedBuffer orientation:frame.orientation];
7575
}
7676
```
7777

78-
Which returns a [`Frame`](https://github.com/cuvent/react-native-vision-camera/blob/main/src/Frame.ts) in JS:
78+
Which returns a [`Frame`](https://github.com/mrousavy/react-native-vision-camera/blob/main/src/Frame.ts) in JS:
7979

8080
```js
8181
const frameProcessor = useFrameProcessor((frame) => {
@@ -172,7 +172,7 @@ Your Frame Processor Plugins have to be fast. VisionCamera automatically detects
172172

173173
#### 🚀 Create your first Frame Processor Plugin for [iOS](frame-processors-plugins-ios) or [Android](frame-processors-plugins-android)!
174174

175-
[1]: https://github.com/cuvent/react-native-vision-camera/blob/main/src/Frame.ts
176-
[2]: https://github.com/cuvent/react-native-vision-camera/blob/main/ios/Frame%20Processor/Frame.h
175+
[1]: https://github.com/mrousavy/react-native-vision-camera/blob/main/src/Frame.ts
176+
[2]: https://github.com/mrousavy/react-native-vision-camera/blob/main/ios/Frame%20Processor/Frame.h
177177
[3]: https://developer.android.com/reference/androidx/camera/core/ImageProxy
178178
[4]: https://github.com/facebook/react-native/blob/9a43eac7a32a6ba3164a048960101022a92fcd5a/React/Base/RCTBridgeModule.h#L20-L24

docs/docs/guides/FRAME_PROCESSOR_CREATE_FINAL.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ If you want to distribute your Frame Processor Plugin, simply use npm.
6767
4. Implement the Frame Processor Plugin in the iOS, Android and JS/TS Codebase using the guides above
6868
5. Add installation instructions to let users know they have to add your frame processor in the `babel.config.js` configuration.
6969
6. Publish the plugin to npm. Users will only have to install the plugin using `npm i vision-camera-plugin-xxxxx` and add it to their `babel.config.js` file.
70-
7. [Add the plugin to the **official VisionCamera plugin list**](https://github.com/cuvent/react-native-vision-camera/edit/main/docs/docs/guides/FRAME_PROCESSOR_PLUGIN_LIST.mdx) for more visibility
70+
7. [Add the plugin to the **official VisionCamera plugin list**](https://github.com/mrousavy/react-native-vision-camera/edit/main/docs/docs/guides/FRAME_PROCESSOR_PLUGIN_LIST.mdx) for more visibility
7171
7272
<br />
7373

docs/docs/guides/FRAME_PROCESSOR_CREATE_PLUGIN_IOS.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ VISION_EXPORT_FRAME_PROCESSOR(scanQRCodes)
4848
@end
4949
```
5050

51-
4. **Implement your Frame Processing.** See the [QR Code Plugin (Objective-C)](https://github.com/cuvent/react-native-vision-camera/blob/main/example/ios/Frame%20Processor%20Plugins/QR%20Code%20Plugin%20%28Objective%2DC%29) for reference.
51+
4. **Implement your Frame Processing.** See the [QR Code Plugin (Objective-C)](https://github.com/mrousavy/react-native-vision-camera/blob/main/example/ios/Frame%20Processor%20Plugins/QR%20Code%20Plugin%20%28Objective%2DC%29) for reference.
5252

5353
:::note
5454
The JS function name will be equal to the Objective-C function name you choose (with a `__` prefix). Make sure it is unique across other Frame Processor Plugins, and doesn't shadow a JS runtime variable.
@@ -97,7 +97,7 @@ public class QRCodeFrameProcessorPlugin: NSObject, FrameProcessorPluginBase {
9797
}
9898
```
9999

100-
5. **Implement your frame processing.** See [QR Code Plugin (Swift)](https://github.com/cuvent/react-native-vision-camera/blob/main/example/ios/Frame%20Processor%20Plugins/QR%20Code%20Plugin%20%28Swift%29) for reference.
100+
5. **Implement your frame processing.** See [QR Code Plugin (Swift)](https://github.com/mrousavy/react-native-vision-camera/blob/main/example/ios/Frame%20Processor%20Plugins/QR%20Code%20Plugin%20%28Swift%29) for reference.
101101

102102

103103
</TabItem>

docs/docs/guides/FRAME_PROCESSOR_PLUGIN_LIST.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ You have to restart metro-bundler for changes in the `babel.config.js` file to t
4141
<br />
4242
<p align="center">
4343
<b>
44-
<a href="https://github.com/cuvent/react-native-vision-camera/edit/main/docs/docs/guides/FRAME_PROCESSOR_PLUGIN_LIST.mdx">Click here</a> to add your Frame Processor Plugin to this list!
44+
<a href="https://github.com/mrousavy/react-native-vision-camera/edit/main/docs/docs/guides/FRAME_PROCESSOR_PLUGIN_LIST.mdx">Click here</a> to add your Frame Processor Plugin to this list!
4545
</b>
4646
</p>
4747
<br />

docs/docs/guides/LIFECYCLE.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The Camera's `isActive` property can be used to _pause_ the session (`isActive={
1616

1717
For example, you want to **pause the camera** when the user **navigates to another page** or **minimizes the app** since otherwise the camera continues to run in the background without the user seeing it, causing **siginificant battery drain**. Also, on iOS a green dot indicates the user that the camera is still active, possibly causing the user to raise privacy concerns. (🔗 See ["About the orange and green indicators in your iPhone status bar"](https://support.apple.com/en-us/HT211876))
1818

19-
This example demonstrates how you could pause the camera stream once the app goes into background using a [custom `useIsAppForeground` hook](https://github.com/cuvent/react-native-vision-camera/blob/main/example/src/hooks/useIsForeground.ts):
19+
This example demonstrates how you could pause the camera stream once the app goes into background using a [custom `useIsAppForeground` hook](https://github.com/mrousavy/react-native-vision-camera/blob/main/example/src/hooks/useIsForeground.ts):
2020

2121
```tsx
2222
function App() {

docs/docs/guides/TROUBLESHOOTING.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Before opening an issue, make sure you try the following:
4646
npm i # or "yarn"
4747
```
4848
2. Since the Android implementation uses the not-yet fully stable **CameraX** API, make sure you've browsed the [CameraX issue tracker](https://issuetracker.google.com/issues?q=componentid:618491%20status:open) to find out if your issue is a limitation by the **CameraX** library even I cannot get around.
49-
3. Make sure your minimum SDK version is **21 or higher**, and target SDK version is **30 or higher**. See [the example's `build.gradle`](https://github.com/cuvent/react-native-vision-camera/blob/main/example/android/build.gradle#L5-L9) for reference.
49+
3. Make sure your minimum SDK version is **21 or higher**, and target SDK version is **30 or higher**. See [the example's `build.gradle`](https://github.com/mrousavy/react-native-vision-camera/blob/main/example/android/build.gradle#L5-L9) for reference.
5050
1. Open your `build.gradle`
5151
2. Set `buildToolsVersion` to `30.0.0` or higher
5252
3. Set `compileSdkVersion` to `30` or higher
@@ -65,4 +65,4 @@ Before opening an issue, make sure you try the following:
6565

6666
## Issues
6767

68-
If nothing has helped so far, try browsing the [GitHub issues](https://github.com/cuvent/react-native-vision-camera/issues?q=is%3Aissue). If your issue doesn't exist, [create a new one](https://github.com/cuvent/react-native-vision-camera/issues/new/choose). Make sure to fill out the template and include as many details as possible. Also try to reproduce the issue in the [example app](https://github.com/cuvent/react-native-vision-camera/blob/main/example).
68+
If nothing has helped so far, try browsing the [GitHub issues](https://github.com/mrousavy/react-native-vision-camera/issues?q=is%3Aissue). If your issue doesn't exist, [create a new one](https://github.com/mrousavy/react-native-vision-camera/issues/new/choose). Make sure to fill out the template and include as many details as possible. Also try to reproduce the issue in the [example app](https://github.com/mrousavy/react-native-vision-camera/blob/main/example).

docs/docs/guides/ZOOMING.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ A Camera's `zoom` property is represented in a **logarithmic scale**. That means
9696

9797
### Pinch-to-zoom
9898

99-
The above example only demonstrates how to animate the `zoom` property. To actually implement pinch-to-zoom or pan-to-zoom, take a look at the [VisionCamera example app](https://github.com/cuvent/react-native-vision-camera/tree/main/example), the pinch-to-zoom gesture can be found [here](https://github.com/cuvent/react-native-vision-camera/blob/d8551792e97eaa6fa768f54059ffce054bf748d9/example/src/CameraPage.tsx#L162-L176), and the pan-to-zoom gesture can be found [here](https://github.com/cuvent/react-native-vision-camera/blob/d8551792e97eaa6fa768f54059ffce054bf748d9/example/src/views/CaptureButton.tsx#L185-L205). They implement a real world use-case, where the maximum zoom value is clamped to a realistic value, and the zoom responds very gracefully by using a logarithmic scale.
99+
The above example only demonstrates how to animate the `zoom` property. To actually implement pinch-to-zoom or pan-to-zoom, take a look at the [VisionCamera example app](https://github.com/mrousavy/react-native-vision-camera/tree/main/example), the pinch-to-zoom gesture can be found [here](https://github.com/mrousavy/react-native-vision-camera/blob/d8551792e97eaa6fa768f54059ffce054bf748d9/example/src/CameraPage.tsx#L162-L176), and the pan-to-zoom gesture can be found [here](https://github.com/mrousavy/react-native-vision-camera/blob/d8551792e97eaa6fa768f54059ffce054bf748d9/example/src/views/CaptureButton.tsx#L185-L205). They implement a real world use-case, where the maximum zoom value is clamped to a realistic value, and the zoom responds very gracefully by using a logarithmic scale.
100100

101101
<br />
102102

docs/docusaurus.config.js

+11-15
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module.exports = {
22
title: 'VisionCamera',
33
tagline: '📸 The Camera library that sees the vision.',
4-
url: 'https://cuvent.github.io',
4+
url: 'https://mrousavy.github.io',
55
baseUrl: '/react-native-vision-camera/',
66
onBrokenLinks: 'throw',
77
onBrokenMarkdownLinks: 'throw',
88
favicon: './favicon.ico',
9-
organizationName: 'cuvent',
9+
organizationName: 'mrousavy',
1010
projectName: 'react-native-vision-camera',
1111
themeConfig: {
1212
algolia: {
@@ -34,12 +34,12 @@ module.exports = {
3434
position: 'left'
3535
},
3636
{
37-
href: 'https://github.com/cuvent/react-native-vision-camera/tree/main/example',
37+
href: 'https://github.com/mrousavy/react-native-vision-camera/tree/main/example',
3838
label: 'Example App',
3939
position: 'left'
4040
},
4141
{
42-
href: 'https://github.com/cuvent/react-native-vision-camera',
42+
href: 'https://github.com/mrousavy/react-native-vision-camera',
4343
label: 'GitHub',
4444
position: 'right',
4545
},
@@ -61,7 +61,7 @@ module.exports = {
6161
},
6262
{
6363
label: 'Example App',
64-
href: 'https://github.com/cuvent/react-native-vision-camera/tree/main/example',
64+
href: 'https://github.com/mrousavy/react-native-vision-camera/tree/main/example',
6565
},
6666
],
6767
},
@@ -70,33 +70,29 @@ module.exports = {
7070
items: [
7171
{
7272
label: 'GitHub discussions',
73-
href: 'https://github.com/cuvent/react-native-vision-camera/discussions',
73+
href: 'https://github.com/mrousavy/react-native-vision-camera/discussions',
7474
},
7575
{
7676
label: 'Twitter (@mrousavy)',
7777
href: 'https://twitter.com/mrousavy',
7878
},
79-
{
80-
label: 'Twitter (@CuventTech)',
81-
href: 'https://twitter.com/CuventTech',
82-
},
8379
],
8480
},
8581
{
8682
title: 'More',
8783
items: [
8884
{
8985
label: 'GitHub',
90-
href: 'https://github.com/cuvent/react-native-vision-camera',
86+
href: 'https://github.com/mrousavy/react-native-vision-camera',
9187
},
9288
{
93-
label: 'Cuvent',
94-
href: 'https://cuvent.com',
89+
label: 'Marc\'s Portfolio',
90+
href: 'https://mrousavy.github.io',
9591
},
9692
],
9793
},
9894
],
99-
copyright: `Copyright © ${new Date().getFullYear()} Cuvent`,
95+
copyright: `Copyright © ${new Date().getFullYear()} Marc Rousavy`,
10096
},
10197
},
10298
presets: [
@@ -107,7 +103,7 @@ module.exports = {
107103
sidebarPath: require.resolve('./sidebars.js'),
108104
// Please change this to your repo.
109105
editUrl:
110-
'https://github.com/cuvent/react-native-vision-camera/edit/main/docs/',
106+
'https://github.com/mrousavy/react-native-vision-camera/edit/main/docs/',
111107
},
112108
theme: {
113109
customCss: require.resolve('./src/css/custom.css'),

example/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
To try the playground out for yourself, run the following commands:
2929

3030
```sh
31-
git clone https://github.com/cuvent/react-native-vision-camera
31+
git clone https://github.com/mrousavy/react-native-vision-camera
3232
cd react-native-vision-camera
3333
yarn bootstrap
3434
```

ios/CameraBridge.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CameraBridge.h
3-
// Cuvent
3+
// mrousavy
44
//
55
// Created by Marc Rousavy on 09.11.20.
66
// Copyright © 2020 mrousavy. All rights reserved.

0 commit comments

Comments
 (0)