Skip to content

Commit

Permalink
docs: add an item to android required steps section [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ridvanaltun committed Sep 19, 2023
1 parent 446ae61 commit de8b7c2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 28 deletions.
67 changes: 40 additions & 27 deletions documentation/docs/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,45 @@ npx pod-install
</TabItem>
</Tabs>

## Other Required Steps

### Android

1. Open your project's `AndroidManifest.xml` and add the following lines:

```xml
<uses-permission android:name="android.permission.CAMERA" />

<!-- optionally, if you want to record audio: -->
<uses-permission android:name="android.permission.RECORD_AUDIO" />
```

2. Edit `android/app/build.gradle` file like below:

```groovy
android {
//...
packagingOptions {
pickFirst '**/libcrypto.so'
pickFirst '**/libssl.so'
}
}
```

### iOS

1. Open your project's `Info.plist` and add the following lines:

```xml
<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) needs access to your Camera.</string>

<!-- optionally, if you want to record audio: -->
<key>NSMicrophoneUsageDescription</key>
<string>$(PRODUCT_NAME) needs access to your Microphone.</string>
```

## Defining Credentials

There are two ways to set credentials: during build time or at runtime.
Expand Down Expand Up @@ -99,32 +138,6 @@ init({
});
```

## Other Required Steps

### Android

1. Open your project's `AndroidManifest.xml` and add the following lines:

```xml
<uses-permission android:name="android.permission.CAMERA" />

<!-- optionally, if you want to record audio: -->
<uses-permission android:name="android.permission.RECORD_AUDIO" />
```

### iOS

1. Open your project's `Info.plist` and add the following lines:

```xml
<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) needs access to your Camera.</string>

<!-- optionally, if you want to record audio: -->
<key>NSMicrophoneUsageDescription</key>
<string>$(PRODUCT_NAME) needs access to your Microphone.</string>
```

## Prepare Lenses

You have to define you lens group id/s before use lenses. Checkout [Defining Lens Group Id](https://popile-media.github.io/react-native-snapchat-camera-kit/docs/guides/manage-lenses#defining-lens-group-id) section.
You have to define you lens group id/s before use lenses. Checkout [Defining Lens Group Id](/react-native-snapchat-camera-kit/docs/guides/manage-lenses#defining-lens-group-id) section.
3 changes: 2 additions & 1 deletion documentation/docs/guides/recording-videos.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ interface RecordVideoOptionsAndroid {
resolution?: '480p' | '720p' | '1080p' | '2160p';
}
```
#### iOS
We are not there yet. Video resolution fixed to `720p` and the FPS fixed to `30`.
### Video
You can find the [video metadata](https://popile-media.github.io/react-native-snapchat-camera-kit/docs/guides/utils#metadata) on the utils page.
You can find the [video metadata](/react-native-snapchat-camera-kit/docs/guides/utils#metadata) on the utils page.

0 comments on commit de8b7c2

Please sign in to comment.