An open API service indexing awesome lists of open source software.

https://github.com/horizon733/creative-kit-sample

An android app that demonstrates Snapchat's Creative kit integration with Jetpack compose
https://github.com/horizon733/creative-kit-sample

android jetpack-compose snapchat snapchat-api

Last synced: 8 months ago
JSON representation

An android app that demonstrates Snapchat's Creative kit integration with Jetpack compose

Awesome Lists containing this project

README

          

Snap Creative kit Sample


An android app that demonstrates Snapchat's creative kit integration with Jetpack compose

# 💻 Requirements
------------
- To try out this sample app, you need to use [Android Studio Arctic Fox](https://developer.android.com/studio).
- You can clone this repository.

🧬 Sample
------------

| Project | Sample |
| :--- | --- |
| Android app that demonstrates use of Snapkit's Creative kit with new Jetpack Compose and latest Android Studio version.

What it does?

• Share Image on SnapChat
• Share Image with Sticker on SnapChat
• Open Lens on SnapChat
• Jetpack compose UI
• Light theme
• Lifecycle and Stateful
• No XML

| Creative kit sample demo|
| | |

# Instructions
- Add your `client id` from Snapkit [Developer Portal](https://kit.snapchat.com/manage/) inside [strings.xml](https://github.com/Horizon733/snap-loginkit-sample/blob/master/app/src/main/res/values/strings.xml)
``` xml
Your client id
```
- Make sure to change project name in `AndroidManifest.xml`
```xml

...




...

```
- Create `xml` directory in `res`
- Create `file_paths.xml` file in `xml` directory.
- Add following code snippet for using it as `cache directory` for storing images
```xml

```
- Add your own lens uuid from [my lenses](https://my-lenses.snapchat.com/lenses)
- procedure for capturing lens uuid
- [Click here](https://my-lenses.snapchat.com/lenses) to login to check out your lenses
- Now, as shown in below image, click on `chain` icon to copy link for your lens
-
- Paste the same link in `new tab` you will be able to find uuid as below image shows

- As you found your uuid, go inside `MainActivity.kt` find function `getLens()` and add your uuid
```kotlin
fun getLens(){
...
val snapLensContent = SnapLensContent.createSnapLensContent(
"your lens uuid",
launchData
)
...
```
- These are the only steps to do.

## Please give this repo a Star, if this helps you!