Migrating from 2026.08.31 to 2026.12.03
2026.12.03 is a Beta release. This page lists only the changes you have to act on when you upgrade from 2026.08.31. Everything else is in the Change Log.
Rebuild required. Swapping the new AAR into an app without recompiling it is not supported. Rebuild your app against this release.
1. Dependencies
Add the WebRTC repository
WebRTC now comes from com.mukeshsolanki:webrtc-kmp (158.8127.1.0-3) instead of ai.instavision:webrtc. Add its repository to settings.gradle.kts:
dependencyResolutionManagement {
repositories {
maven("https://mukeshsolanki.github.io/kmp-webrtc") {
content { includeGroup("com.mukeshsolanki") }
}
}
}
Never depend on both
ai.instavision:webrtcandcom.mukeshsolanki:webrtc-kmp. They clash onlibjingle_peerconnection_so.soandorg.jni_zero.*. If your app declaresai.instavision:webrtcitself, remove it.
Declare what the SDK no longer brings in
| Library | What changed | What to do |
|---|---|---|
| Gson | The SDK no longer depends on it. | If you import Gson, declare com.google.code.gson:gson yourself. |
FFmpegKit (ai.instavision:ffmpegkit) | No longer bundled. | If you call FFmpegKit, declare it yourself. |
| Pluto network plugin | No longer exposed. | Use the SDK logger’s network tag, Studio’s network inspector or your own proxy. |
Versions the SDK now pulls in
These come in transitively and can raise the versions your app resolves:
| Library | Version |
|---|---|
Ktor client (core, okhttp, websockets, content-negotiation, auth, logging) | 3.6.2 |
| OkHttp | 5.5.1 |
| Okio | 3.18.2 |
kotlinx.serialization (core, json) | 1.13.0 |
androidx.media3:media3-datasource | 1.11.1 |
Media3 is now part of the public API (Event.download takes a DataSource.Factory). If you pin Media3 below 1.11, move to 1.11 or later.
2. WebRTC types moved
Update your imports:
| Before | After |
|---|---|
instavision.webrtc.EglBase, VideoSink, RendererCommon.RendererEvents, AudioTrackSink, … | com.mukeshsolanki.webrtc.* (same class names) |
instavision.webrtc.VideoTrack, AudioTrack, MediaStreamTrack, DataChannel, SessionDescription, IceCandidate, PeerConnectionFactory | com.mukeshsolanki.webrtc.kmp.* |
TextureViewRenderer.rendererEvents and initialize(EglBase.Context, RendererEvents) take the com.mukeshsolanki.webrtc types. WebRtcRecorder.startRecording takes com.mukeshsolanki.webrtc.kmp.VideoTrack / AudioTrack.
// Before
import instavision.webrtc.EglBase
import instavision.webrtc.VideoTrack
// After
import com.mukeshsolanki.webrtc.EglBase
import com.mukeshsolanki.webrtc.kmp.VideoTrack
3. Removed APIs
| Removed | Use instead |
|---|---|
NetworkContract.gson() | Nothing. Delete your override. |
StreamingClient.setTelecomOwnsAudio(owns) | InstaVision.setTelecomOwnsAudio(owns), which applies app-wide |
network’s HttpClient, HttpRequest (with the Path and QueryParam typealiases), HttpResponse, Operand, OrderBy, Direction | Nothing. These were SDK internals. |
NetworkMemory (now internal) | Nothing. |
OkHttpClient.Builder.enforceTls13() | Set TLS on your own client with OkHttp’s ConnectionSpec. |
// Before
liveStreamClient.setTelecomOwnsAudio(true)
// After
InstaVision.setTelecomOwnsAudio(true)
4. Changed signatures
HttpException
You only need to change anything if you construct HttpException yourself. code() and body() are unchanged.
// After
throw HttpException(code = 404, body = errorText)
Nullable model fields
| Type | Field |
|---|---|
AttributeProperty | value |
SecurityLog | properties |
DeviceCluster | deviceId |
// Before
val id: String = cluster.deviceId
// After
val id: String = cluster.deviceId ?: return
Untyped (Any?) model values now hold only String, Double, Boolean, List, Map or null. Every JSON number is a Double. Fields the server may omit default to empty values instead of null.
Faces
Faces are now enrolled from the clusters the camera detects, not from uploaded angles.
| Before | After |
|---|---|
faceServices.createFace(spaceId, name, onSuccess, onError) | createFace(spaceId, name, clusterId, onSuccess, onError), with a clusterId from getFaceClusters |
CreateFaceResponse.authorizationToken, uploadUrl, folder | Removed. The response now carries faceId, name, status, thumbnailUrl, clusterIds, createdAt and updatedAt. |
Event.faces: List<EventFace>? | Event.faceClusters: List<EventFaceCluster>? (id, probability) |
// After
InstaVision.faceServices.createFace(
spaceId = spaceId,
name = "Alex",
clusterId = cluster.clusterId,
onSuccess = { face -> },
onError = { error -> },
)
See Face Recognition.
LiveStreamClient default arguments
The defaults for startRecording (fileName), stopRecording (onSaved) and saveSnapshot (saveListener) moved to LiveStreamApi. Your source does not change, but you must recompile.
5. Behaviour to retest
Gson-persisted SDK models read back mostly empty. SDK models are now kotlinx
@Serializableand no longer carry@SerializedName. If you save an SDK model with Gson (for example caching aDevicein preferences), Gson now writes and reads the Kotlin property names, so JSON saved by the old version loads with most fields empty. Map SDK models to your own types before persisting, and expect a one-time cache miss on upgrade.
- An empty body on a typed call is an error. If the server returns a 2xx with no body where the SDK expects a model, you now get an error
DataState. - A fractional number in an integer field fails to decode. For example,
1.5sent for anIntnow surfaces as an errorDataState. A whole-number float such as5.0still decodes. - The microphone only records after
enableMic(true). A live view’s audio sender carries no track until you callLiveStreamClient.enableMic(true).
6. Deprecations: removal on or after 2027-06-03
These still work, but they show a warning and will be removed on or after 2027-06-03. Move to the replacement now.
| Deprecated | Replacement |
|---|---|
M3U8ToMP4Converter.convert (both overloads) | Event.download (guide) |
EventService.deleteEvent(event, …) | deleteEvents |
EventService.getEventTokens, getNvrEventTokens | getDownloadTokens |
SubscriptionService.getProducts(country, productIds, …) | getProducts(country, productIds, skuCategories, …) |
PetService.createProfile (old overload) | createProfile with CreatePetRequest |
PetService.updateRecommendations (old overload) | updateRecommendations with RecommendedImagesFeedbackRequest |
DeviceService ID-based overloads (updateDeviceInfo, getDeviceSetting, ptzMove, updateFirmware, deleteDevice, …) | The same method with a Device parameter |
PetActivities.Sleeping | PetActivities.Resting |
PetActivityCount.sleeping | PetActivityCount.resting |
The full list of DeviceService overloads is in the Change Log.