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
- Host: GitHub
- URL: https://github.com/horizon733/creative-kit-sample
- Owner: Horizon733
- Created: 2021-10-15T17:33:45.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-22T15:20:59.000Z (almost 4 years ago)
- Last Synced: 2025-01-13T23:22:56.633Z (9 months ago)
- Topics: android, jetpack-compose, snapchat, snapchat-api
- Language: Kotlin
- Homepage:
- Size: 54.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
||
| | |# 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!