Skip to content

Latest commit

 

History

History
721 lines (630 loc) · 25.6 KB

CHANGELOG.md

File metadata and controls

721 lines (630 loc) · 25.6 KB

CHANGELOG

All notable changes to the Camera Kit SDK will be documented in this file.

The format is based on Keep a Changelog, and the Camera Kit SDK adheres to Semantic Versioning.

[Unreleased]

[1.37.0] - 2024-12-18

Features

  • Lens Studio 5.4 support
  • Support for Lens HTTP requests

[1.36.1] - 2024-11-22

[1.36.0] - 2024-11-14

Features

  • Lens Studio 5.3 support

Updates

[1.35.0] - 2024-10-16

Features

  • Lens Studio 5.2 support

[1.34.0] - 2024-09-17

Features

  • Lens Studio 5.1 support

[1.33.0] - 2024-08-21

Features

  • Lens Studio 5.0.19 support

[1.32.0] - 2024-07-24

Features

  • Lens Studio 5.0.17 support

[1.31.0] - 2024-06-12

Features

  • Lens Studio 5.0.14 support

Updates

  • New camerakit-sample-basic sample app demonstrates a simplistic way to integrate Camera Kit into your application.

[1.30.0] - 2024-04-24

Features

  • Lens Studio 5.0.10 support

Updates

  • Added new LensPushToDeviceService#initiatePairing and LensPushToDeviceService#unpair methods to pair and unpair Push-to-Device without using default UI.

[1.29.0] - 2024-03-20

  • Fix for incorrect processing size that sometimes resulted in pixelated image on some of the Android devices

[1.28.0] - 2024-02-08

Bug Fixes

  • Fix an issue when LensesComponent.Processor#clear() doesn't remove a lens while using custom UI.
  • Fix a crash when using Push-To-Device.

[1.27.0] - 2023-12-13

Features

  • Lens Studio 5.0.2 support

Updates

[1.26.2] - 2023-11-13

[1.26.1] - 2023-10-12

Bug Fixes

  • Lens elements that use overlay render target may be get incorrectly positioned when camera input does not match preview output aspect ratio
  • Lens audio playback is not muted when app is paused
  • HIGH_SAMPLING_RATE_SENSORS permission declaration is missing in the core SDK manifest
  • Early display rotation notification causing incorrect input processing size calculation on Android 14

[1.26.0] - 2023-09-13 - LTS

Features

  • Lens Studio 4.55 support

Updates

  • Helper method to record ImageProcessor output into a video file, connectOutput(file: File, width: Int, height: Int, captureAudio: Boolean), has been moved into a separate Maven artifact, com.snap.camerakit:support-media-recording. This artifact can now be excluded from an app's dependencies if the provided video recording functionality is not needed. Note that the com.snap.camerakit:support-camerax and com.snap.camerakit:support-arcore now depend on this new artifact transitively in order to implement the com.snap.camerakit.support.camera.AllowsVideoCapture interface.
  • Helper method to create an instance of Source<MediaProcessor> based on android.provider.MediaStore, mediaStoreSourceFor(context: Context, executorService: ExecutorService): Source<MediaProcessor>, has been moved into a separate Maven artifact, com.snap.camerakit:support-media-picker-source. This artifact can now be excluded from an app's dependencies if the provided media source functionality is not needed. Note that the com.snap.camerakit:support-camera-layout now depends on this new artifact transitively in order to obtain media for media picker lenses.
  • Default lenses carousel UI has been removed from the core com.snap.camerakit:camerakit artifact. Instead, com.snap.camerakit:support-lenses-carousel artifact should be added to app dependencies to use default lenses carousel UI. Note that the com.snap.camerakit:support-camera-layout now depends on this artifact transitively in order to show lenses carousel UI.
  • Default media picker UI has been moved from the core com.snap.camerakit:camerakit artifact, and moved into a separate Maven artifact, com.snap.camerakit:support-media-picker-ui. This new artifact should be added to app dependencies to use default media picker UI. Note that the com.snap.camerakit:support-camera-layout now depends on this new artifact transitively in order to show media picker UI.

Known Issues

  • Lens UI elements assinged to the overlay render target can get incorrectly positioned when device camera input frame does not match preview preview frame aspect ratio

[1.25.0] - 2023-08-15

Features

  • Lens Studio 4.53 support

Bug Fixes

  • Fix a bug in the ARCore field of view, which was causing poor performance and incorrect object positioning for world tracking lenses
  • Fix a bug when the first lens in the carousel has not been applied if LensesComponent.Carousel.Configuration#disableIdle set to true

[1.24.0] - 2023-06-27

Features

  • Lens Studio 4.49 support
  • Add a Profiling Extension to monitor the Camera Kit performance. See Profiling.
  • Add a new API to get lens snapcode image and deep link URIs, usage example:
session.lenses.repository.get(LensesComponent.Repository.QueryCriteria.Available("lens-group-id")) { result ->
result.whenHasFirst { lens ->
val snapcodePngUri = lens.snapcodes.find { it is LensesComponent.Lens.Media.Image.Png }?.uri
val snapcodeDeepLinkUri = lens.snapcodes.any { it is LensesComponent.Lens.Media.DeepLink }?.uri
}
}

Updates

  • Added android.Manifest.permission.READ_MEDIA_VIDEO and android.Manifest.permission.READ_MEDIA_IMAGES permissions for the camerakit-sample-full and camerakit-sample-simple apps. Those are the permissions required to access media files on devices when using the Media Picker lenses feature.

[1.23.0] - 2023-05-17

Features

  • Lens Studio 4.47 support
  • Add a new API to get lens preview sequences - LensesComponent.Lens.Media.Sequence, usage example:
session.lenses.repository.get(LensesComponent.Repository.QueryCriteria.Available("lens-group-id")) { result ->
result.whenHasFirst { lens ->
(lens.previews.find { preview ->
preview is LensesComponent.Lens.Media.Sequence.Webp
} as? LensesComponent.Lens.Media.Sequence.Webp)?.let { webpSequence ->
webpSequence.values.forEach { imageUri ->
// do something with each image
}
}
}
}
  • Prompt users to install a new ArCore version when available when using lenses that require it

[1.22.0] - 2023-05-08

Updates

  • Deprecate application ID, remove its use across sample apps
  • Add a debug dialog to swap API token for testing

Features

  • Lens Studio 4.46 support

Bug Fixes

  • Fix a bug introduced in the 1.18.0 version where lenses exported from the Lens Studio version 4.31 and prior can lead to a crash on Adreno GPU based devices

[1.21.1] - 2023-03-29

[1.21.0] - 2023-03-24

Features

  • Lens Studio 4.43 support

[1.20.0] - 2023-02-21

Updates

  • Remove "Share with Snapchat" placeholder button
  • Add examples on how to remove the control strip from the CameraActivity

Features

  • Lens Studio 4.40 support
  • Add a way to collect Camera Kit diagnostics information on-demand. This feature can be enabled when an issue in Camera Kit is encountered, please reach out to the Camera Kit support for further instructions.

[1.19.2] - 2023-01-12

[1.19.1] - 2023-01-09

Bug Fixes

  • Fix a crash caused by RejectedExecutionException after Session is closed

[1.19.0] - 2022-12-28

Features

  • Lens Studio 4.36 support
  • Add a new sample app that demonstrates a custom implementation of lenses carousel and camera preview layout

Updates

  • Remove deprecated lens icon/preview accessors:
  • LensesComponent.Lens.iconUri replaced by icons.find { it is LensesComponent.Lens.Media.Image.Png }?.uri
  • LensesComponent.Lens.preview replaced by previews.find { it is LensesComponent.Lens.Media.Image.Webp }?.uri

Bug Fixes

  • Fix occasional camera preview freeze in CameraXImageProcessorSource when switching from an ARCore based camera preview source

[1.18.1] - 2022-11-30

Bug Fixes

  • Fix an issue where touch gestures are not be processed by lenses if no View is provided to LensesComponent.Builder#dispatchTouchEventsTo

[1.18.0] - 2022-11-21

Features

Updates

  • Snap attribition support as per Design Guidelines
  • Staging Watermark applies on staging builds of Camera Kit integrations
  • Update CameraX dependencies to 1.1.0
  • Update sample app project to the latest Gradle/AGP 7+ and Kotlin 1.6.21 versions

Bug Fixes

  • Fix crash due to exceeded number of listeners registered via TelephonyRegistryManager

[1.17.1] - 2022-11-30

Bug Fixes

  • Fix an issue where touch gestures are not be processed by lenses if no View is provided to LensesComponent.Builder#dispatchTouchEventsTo

[1.17.0] - 2022-10-12

Features

  • Lens Studio 4.31 support
  • Add support for City-Scale AR Lenses (Beta)
  • Add support for Push-to-Device (P2D) feature (Beta), which allows developers to send Lenses from Lens Studio to their Camera Kit application for testing. Note that on Android, P2D is only supported if your application uses the built-in lenses carousel.
  • Expose new API to obtain WebP lens icon resources, switch the built-in lenses carousel to use it by default. Note that PNG lens icon resources are deprecated, to be removed in 1.19.0.

Bug Fixes

  • Fix an issue causing ArCore camera freeze

[1.16.0] - 2022-09-09

Features

  • Lens Studio 4.28.x support
  • Add support for Connected Lenses (Closed Beta)

[1.15.1] - 2022-07-20

Bug Fixes

  • Fix crash when switching ArCore powered lenses

[1.15.0] - 2022-07-18

Notes

  • This version has critical issues on Android. Use version 1.15.1 instead

Features

  • Lens Studio 4.25 support
  • New method to apply a lens while resetting its state if the lens was applied already. Useful for cases where app resume from background or other screen should reset lens state matching Snapchat-like behavior. Usage example: session.lenses.processor.apply(lens, reset = true)

Bug Fixes

  • Improve ARCore performance
  • Fix possible crash when internal remote service is not available

[1.14.1] - 2022-06-30

Bug Fixes

  • Fix critical issues with lenses configuration introduced in 1.14.0

[1.14.0] - 2022-06-27

Notes

  • This version has critical issues on Android. Use version 1.14.1 instead

Features

  • Lens Studio 4.22 support
  • Add support for lenses with static assets
  • New API to obtain the current version of the Camera Kit SDK

[1.13.0] - 2022-05-27

Features

  • New API to support lenses which use the remote service feature
  • New tone-mapping and portrait camera adjustments
  • Add support for ring flash mode for front-facing camera flash

Bug Fixes

  • Add missing permission HIGH_SAMPLING_RATE_SENSORS for host-apk dynamic sample
  • Fix processed bitmap rotation when no lens is applied

[1.12.0] - 2022-04-22

Notes

  • Starting with this release, an API token must be provided as part of the Camera Kit configuration, failure to do so will result in a runtime exception. See Android and iOS documentation for examples on how to obtain and provide an API token.
  • The legal agreement prompt has been updated to use a more user friendly text copy. Updating to this release will result in users needing to accept the updated prompt which includes a new link to the Camera Kit's "learn more" page.

Features

  • Lens Studio 4.19 support
  • Add dynamic feature loading (DFM) reference sample app
  • New ImageProcessor.Input.Option.Crop which allows to specify the crop region that should be applied to each frame before processing
  • CameraXImageProcessorSource#startPreview takes aspect ratio and crop option parameters
  • Further binary size reduction of about 500KB

Bug Fixes

  • Missing android.permission.ACCESS_COARSE_LOCATION permission added to the camerakit-support-gms-location artifact to support apps targeting Android API 31
  • Image capture of certain lenses results in an unexpected alpha channel
  • Race condition of incorrectly evicting currently applied lens content from cache while prefetching other lenses

Known Issues

  • Lenses using the new Text to Speech feature throw a runtime exception on Android and simply do nothing on iOS. This is expected as the feature is currently unavailable in Camera Kit.

[1.11.1] - 2022-04-05

Bug Fixes

  • Fix bug where landmarkers would not work properly

[1.11.0] - 2022-03-14

Features

  • Add support for text input in lenses
  • Lens Studio 4.16 support

[1.10.0] - 2022-02-28

Bug Fixes

  • Use consistent directory names for files related to Camera Kit
  • Certain emulator images fail to render lenses

Features

  • Expose new API to switch camera facing based on lens facing preference

[1.9.2] - 2022-02-10

Bug Fixes

  • Remove R8 specific consumer rules to support legacy Proguard builds
  • Fix race conditions during face detection in the default Media Picker

[1.9.1] - 2022-01-26

Bug Fixes

  • Don't start LegalPromptActivity if the legal prompt is already accepted
  • Remote service calls fail after Session is used for more than 60 seconds

[1.9.0] - 2022-01-18

Features

  • Lens Studio 4.13 support
  • Persist custom lens groups in sample app

Bug Fixes

  • Custom Source<ImageProcessor>> is not respected in CameraLayout
  • Warn if no API token is provided

[1.8.4] - 2022-01-14

[1.8.3] - 2022-01-12

Bug Fixes

  • Fix sharing captured media in sample app for some Android OS versions
  • Eliminate native libraries binary size regression
  • Extension fail to register when Kotlin reflect library is included
  • Remove unused code which gets flagged as zip path traversal vulnerability

Features

  • Expose a method to observe LegalProcessor results
  • Flash functionality in CameraLayout and CameraXImageProcessorSource

[1.8.2] - 2021-12-15

Bug Fixes

  • Missing localized strings
  • Lenses using ML features crash when app targets Android 12 (API level 31)
  • Crop ARCore video to screen size by default

[1.8.1] - 2021-12-09

Bug Fixes

  • Too-large images fail to load in media picker
  • Lens content downloads use non-optimal CDN links

[1.8.0] - 2021-12-07

Bug Fixes

  • Add audio recording permission check for Custom Video Sample app
  • Rendering performance improvement
  • Add thread monitoring and safety to video sample

Features

  • Legal agreement prompt pop-up dialog support
  • Rotation detection for continuous focus
  • Tap-To-Focus support
  • Support API token based authorization
  • Lenses audio mute/unmute support
  • Add sample app for custom implementation of audio and video recording

[1.7.6] - 2021-11-08

Bug Fixes

  • Extension API mismatch

[1.7.5] - 2021-10-28

Bug Fixes

  • Kotlin Intrinsics leak into the public Plugin API
  • CameraLayout treats optional permissions as required

Features

  • Lens Studio 4.7 support

[1.7.4] - 2021-10-20

Bug Fixes

  • Fix an issue introduced in 1.7.1 that downgraded SDK performance

[1.7.3] - 2021-10-11

[1.7.2] - 2021-10-07

[1.7.1] - 2021-10-01

[1.7.0] - 2021-09-22

Bug Fixes

  • Fix touch re-dispatch when lenses carousel de-activated
  • Fix multiple startPreview leading to a crash in CameraX

Features

  • CameraActivity for simple use cases
  • CameraLayout support view for simplified integration
  • Lenses Carousel reference UI
  • Gallery media source support for the MediaProcessor
  • Enable/disable SnapButtonView based on lens download status
  • Added SRE metrics

[1.6.21] - 2021-10-11

[1.6.20] - 2021-10-07

[1.6.19] - 2021-10-01

[1.6.18] - 2021-09-29

Bug Fixes

  • Landmarkers localisation issues

[1.6.17] - 2021-09-22

Bug Fixes

  • Face tracking issues introduced in 1.6.15

[1.6.16] - 2021-09-20

[1.6.15] - 2021-09-14

Features

  • LensStudio 4.5 support

[1.6.14] - 2021-09-03

Bug Fixes

  • Stability issues

[1.6.13] - 2021-09-02

[1.6.12] - 2021-08-17

Bug Fixes

  • Lenses Carousel does not appear on some devices
  • Avoid reading cache size config on the Main thread

[1.6.11] - 2021-08-06

Bug Fixes

  • Lens processing failure after image/video capture
  • SurfaceTexture based Output Surface leak

[1.6.10] - 2021-07-23

Bug Fixes

  • Too broad Proguard rule for GMS FaceDetector

[1.6.9] - 2021-07-19

[1.6.8] - 2021-07-13

Bug Fixes

  • Fix Surface not released if Output connection is cancelled

[1.6.7] - 2021-07-08

Bug Fixes

  • Increase max lenses content size
  • Late input connection leads to no processed frames

[1.6.6] - 2021-06-22

[1.6.5] - 2021-06-17

Bug Fixes

  • Lens localized hint strings are cached incorrectly
  • Incorrect lens download status

[1.6.4] - 2021-06-16

[1.6.3] - 2021-06-16

Bug Fixes

  • Carousel accessibility improvements

[1.6.1] - 2021-05-10

Bug Fixes

  • Lens is not applied when carousel's disableIdle = true

[1.6.0] - 2021-04-26

Features

  • Add support for client defined safe render area
  • Add Media Picker support for sample app
  • Switch to ARCore for surface tracking in the sample app
  • SnapButtonView responds to volume up events to start capture
  • Dialog to update lens group IDs in the sample app
  • SnapButtonView re-dispatch touch events to lenses carousel
  • Landmarker lenses support

[1.5.11] - 2021-03-17

[1.5.10] - 2021-03-03

Bug Fixes

  • Negotiate MediaCodec supported resolution when video recording

[1.5.9] - 2021-02-26

[1.5.8] - 2021-02-24

Features

  • Expose outputRotationDegrees parameter for photo processing

[1.5.7] - 2021-02-18

Features

  • Better accessibility support

[1.5.6] - 2021-02-03

Bug Fixes

  • Lens Single Tap should work without touch blocking

[1.5.5] - 2021-01-26

Bug Fixes

  • OpenGL memory leak after Session is closed

[1.5.4] - 2021-01-15

Features

  • Expose lens loading overlay configuration

[1.5.3] - 2021-01-06

Bug Fixes

  • Crash when client includes grpc-census library

[1.5.2] - 2020-12-22

Bug Fixes

  • Fix carousel actions being ignored after re-activation

[1.5.1] - 2020-12-22

Features

  • Add ability to clear ImageProcessor.Output on disconnect

[1.5.0] - 2020-12-03

Bug Fixes

  • Dynamic Plugin class loading is not reliable

Features

  • Use externally published Plugin interface for dynamic loading

[1.4.5] - 2020-12-01

[1.4.4] - 2020-11-20

[1.4.3] - 2020-11-18

[1.4.2] - 2020-11-17

[1.4.1] - 2020-11-16

Bug Fixes

  • Dynamic Plugin class loading is not reliable
  • Missing lenses carousel center icon
  • Better portrait orientation support

Features

  • Use externally published Plugin interface for dynamic loading
  • Customize lenses carousel with custom item positions
  • Expose API to disable default camera preview rendering
  • Expose lens preview model
  • Use exposed lenses carousel API to implement lens button
  • Improve dynamic loading sample plugin example
  • Camera zoom support example

[1.3.6] - 2020-11-04

Bug Fixes

  • Missing lens placeholder icon
  • Better portrait orientation support
  • Missing lenses carousel center icon
  • Crash when user app targets API level 30 on Android Q (11) devices
  • Crash after required permissions accepted

Features

  • Added Configuration for Processor to support different input frame rotation behaviors
  • Customize lenses carousel with custom item positions and activation flow
  • Expose lens preview model
  • Improve dynamic loading sample plugin example
  • Expose API to disable default camera preview rendering
  • Dynamic feature-as-a-plugin example

[1.4.0] - 2020-10-28

Bug Fixes

  • Missing lenses carousel center icon
  • Better portrait orientation support

Features

  • Customize lenses carousel with custom item positions
  • Expose API to disable default camera preview rendering
  • Expose lens preview model
  • Use exposed lenses carousel API to implement lens button
  • Improve dynamic loading sample plugin example
  • Camera zoom support example

[1.3.5] - 2020-10-20

Bug Fixes

  • Missing lenses carousel center icon

Features

  • Customize lenses carousel with custom item positions and activation flow

[1.3.4] - 2020-10-15

Features

  • Expose lens preview model

[1.3.3] - 2020-10-15

Bug Fixes

  • Crash when user app targets API level 30 on Android Q (11) devices

[1.3.2] - 2020-10-15

[1.3.1] - 2020-10-09

Bug Fixes

  • Better portrait orientation support
  • Crash after required permissions accepted

Features

  • Improve dynamic loading sample plugin example
  • Expose API to disable default camera preview rendering
  • Dynamic feature-as-a-plugin example

[1.3.0] - 2020-09-25

Features

  • Support photo API captured image processing
  • Support dynamic feature loading

[1.2.0] - 2020-08-27

Bug Fixes

  • Processed texture interpolation artifacts when resized
  • OpenGL out of memory crash
  • Lenses Processor apply callback not invoked

Features

  • Add instrumentation test helpers
  • Invalidate metadata cache on cold-start when network is available
  • Add ability to check if device is supported
  • Reapply lens with launch data if available
  • Add x86/x86_64 support
  • Progress cycle repeat parameters for SnapButtonView

[1.1.0] - 2020-07-29

Features

  • Add support for dynamic lens launch data
  • Add ability to provide ImageProcessor.Output rotation
  • Add post capture preview screen
  • Add support to provide user data

[1.0.0] - 2020-07-08

Bug Fixes

  • Memory leaks caused by delayed operations
  • Handle/abort connection to invalid output surface

Features

  • Offline lens repository support
  • Add support for prefetching lenses content
  • Add support for lens hints
  • Expose Lens vendor data

[0.5.0] - 2020-06-03

Bug Fixes

  • Remove 3rd-party R classes jars from the SDK binary

[0.4.0] - 2020-04-22

Features

  • Audio processing (analysis and effects) support
  • Use lens lifecycle events to update camera UI
  • Add support for internal cache configuration
  • Integrate SnapButtonView for photo/video capture

[0.3.0] - 2020-03-30

Bug Fixes

  • Allow simultaneous touch handling while recording
  • Picture/video sharing does not work on Android 10
  • Notify lenses list change once network is available

Features

  • Integrate provided lenses carousel
  • Add video/picture capture support

[0.2.0] - 2020-02-27

Bug Fixes

  • Shutdown Camera Kit when app ID is unauthorized
  • Restart lens tracking on single tap gesture
  • Audio playback continues when app is in background

Features

  • Display loading overlay as lens downloads
  • Add support for remote lens metadata and content

0.1.0 - 2020-02-12

Bug Fixes

  • Add missing application ID

Features

  • Add version information to the side menu of sample app
  • Save applied lens ID and camera facing in instance state
  • Add camera flip button
  • Open side drawer on lens button click
  • Add next/previous lens buttons to the sample app
  • Use Lens name in side bar listing