Skip to content

Commit 62ce805

Browse files
Merge pull request #41 from Snapchat/sync/1.48.0/a8bdce91
[All] Sync changes for the 1.48.0 release
2 parents f981b32 + d82912a commit 62ce805

9 files changed

Lines changed: 26 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ and the Camera Kit SDK adheres to [Semantic Versioning](https://semver.org/spec/
88
<a name="unreleased"></a>
99
## [Unreleased]
1010

11+
<a name="1.48.0"></a>
12+
## [1.48.0] - 2026-04-08
13+
14+
### Features
15+
- Lens Studio 5.20 support
16+
17+
### Updates
18+
- SDK is now built with Kotlin 2.2 requiring a compatible Kotlin version for consumers, and Kotlin sample code using configureEachItem has been updated to the newer explicit callback parameter style.
19+
1120
<a name="1.47.0"></a>
1221
## [1.47.0] - 2026-03-11
1322

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Camera Kit for Android
66

7-
[Home Page](https://developers.snap.com/camera-kit/home) | [Documentation & Guides](https://developers.snap.com/camera-kit/getting-started/what-is-camera-kit) | [Showcase](https://ar.snap.com/camera-kit) | [API Reference](https://kit.snapchat.com/reference/CameraKit/android/1.47.0/index.html) | [Developer Portal](https://kit.snapchat.com/manage/) | [My Lenses](https://my-lenses.snapchat.com/) | [Discord](https://discord.gg/snapar)
7+
[Home Page](https://developers.snap.com/camera-kit/home) | [Documentation & Guides](https://developers.snap.com/camera-kit/getting-started/what-is-camera-kit) | [Showcase](https://ar.snap.com/camera-kit) | [API Reference](https://kit.snapchat.com/reference/CameraKit/android/1.48.0/index.html) | [Developer Portal](https://kit.snapchat.com/manage/) | [My Lenses](https://my-lenses.snapchat.com/) | [Discord](https://discord.gg/snapar)
88
</div>
99

1010
Camera Kit brings the power of Snap's AR platform to your websites and mobile apps on iOS and Android. It has never been easier to create and deliver scalable, multi-platform AR experiences to meet your customers, wherever they are.

Samples/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ buildscript {
44
}
55
dependencies {
66
classpath 'com.android.tools:r8:8.6.17'
7-
classpath 'com.android.tools.build:gradle:7.3.0'
7+
classpath 'com.android.tools.build:gradle:7.3.1'
88
}
99
}
1010

1111
plugins {
1212
alias libs.plugins.kotlin apply false
13+
alias libs.plugins.composeCompiler apply false
1314
alias libs.plugins.ktlint apply false
1415
}
1516

Samples/camerakit-sample-compose-basic/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'com.android.application'
33
id 'org.jetbrains.kotlin.android'
4+
id 'org.jetbrains.kotlin.plugin.compose'
45
}
56

67
android {
@@ -32,9 +33,6 @@ android {
3233
buildFeatures {
3334
compose true
3435
}
35-
composeOptions {
36-
kotlinCompilerExtensionVersion '1.5.1'
37-
}
3836
packagingOptions {
3937
resources {
4038
excludes += '/META-INF/{AL2.0,LGPL2.1}'

Samples/camerakit-sample-full/src/main/java/com/snap/camerakit/sample/MainActivity.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,14 @@ class MainActivity : AppCompatActivity(), LifecycleOwner {
164164
observedGroupIds = linkedSetOf(*lensGroups)
165165
// A lambda passed to configureEachItem can be used to customize position or appearance of each
166166
// item in the lenses carousel.
167-
configureEachItem {
168-
if (lens.groupId == LENS_GROUP_ID_BUNDLED || index == 1) {
169-
moveToLeft()
167+
configureEachItem { itemOptions ->
168+
if (
169+
itemOptions.lens.groupId == LENS_GROUP_ID_BUNDLED ||
170+
itemOptions.lenses.indexOf(itemOptions.lens) == 1
171+
) {
172+
itemOptions.moveToLeft()
170173
} else {
171-
moveToRight()
174+
itemOptions.moveToRight()
172175
}
173176
}
174177
}

Samples/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ kotlin.code.style=official
2727
android.enableR8.fullMode=true
2828

2929
# Camera Kit build properties used for diagnostics and debugging, not required to be kept.
30-
com.snap.camerakit.build.revision=7ba457786849c2b22ab859e4123807883c2c6879
31-
com.snap.camerakit.build.number=7077a135-bda4-4a7c-bf33-94f0e08e4867
30+
com.snap.camerakit.build.revision=6d95de959a5737aa4231fa28f1423121ae99e26d
31+
com.snap.camerakit.build.number=bebff2f9-78ed-4d9d-aeca-cae143c5ac51
3232

3333
# Camera Kit sample app constants, to be replaced by user.
3434
com.snap.camerakit.api.token=REPLACE-THIS-WITH-YOUR-OWN-APP-SPECIFIC-VALUE
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

Samples/settings.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ dependencyResolutionManagement {
66
}
77
versionCatalogs {
88
libs {
9-
def kotlin = version('kotlin', '1.9.0')
9+
def kotlin = version('kotlin', '2.2.10')
1010
plugin('kotlin', 'org.jetbrains.kotlin.jvm').versionRef(kotlin)
11+
plugin('composeCompiler', 'org.jetbrains.kotlin.plugin.compose').versionRef(kotlin)
1112
plugin('ktlint', 'org.jlleitschuh.gradle.ktlint').version('11.0.0')
1213
}
1314
}

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.47.0
1+
1.48.0

0 commit comments

Comments
 (0)