Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .gradle/.gradle/8.0.2/checksums/checksums.lock
Binary file not shown.
Binary file added .gradle/.gradle/8.0.2/checksums/md5-checksums.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions .gradle/.gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Fri Jan 23 15:11:05 IST 2026
gradle.version=8.0.2
Binary file not shown.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.2.13

### Added
- Added the isAsyncConfigFetchEnabled API to enable/disable async config fetch optimization.

### Fixed
- Fixed memory leaks in session recording service that could retain destroyed activities and services.

## 2.2.12

### Fixed
- Improved session capturing stability and reliability.

### Changed
- Removed redundant dependencies for reduced SDK size and enhanced security.

## 2.2.11

### Fixed
- Fixed an issue with bitmap capture for Flutter's `SurfaceView`.

## 2.2.10

### Added
Expand Down
35 changes: 33 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ DevRev SDK, used for integrating DevRev services into your Android app.
- [Dynamic theme configuration](#dynamic-theme-configuration)
- [Analytics](#analytics)
- [Session analytics](#session-analytics)
- [Opt in or out](#opt-in-or-out)
- [Opt in or out](#opt-in-or-out)
- [Session recording](#session-recording)
- [Async config fetch](#async-config-fetch)
- [Session properties](#session-properties)
- [Mask sensitive data](#mask-sensitive-data)
- [Mask using predefined tags](#mask-using-predefined-tags)
Expand Down Expand Up @@ -589,7 +590,7 @@ For example:

The DevRev SDK provides observability features to help you understand how your users are interacting with your app.

### Opt in or out
#### Opt in or out

Session analytics features are opted-in by default, enabling them from the start. However, you can opt-out using the following method:

Expand Down Expand Up @@ -675,6 +676,36 @@ To check if on-demand sessions are enabled, use:
```java
DevRevObservabilityExtKt.areOnDemandSessionsEnabled(DevRev.INSTANCE);
```

#### Async config fetch

> [!NOTE]
> The sessions will only be uploaded when the app is in the background.

The SDK can be configured to fetch configuration asynchronously to improve app startup time. When enabled, the SDK uses cached configuration for immediate startup and fetches fresh configuration from the server in the background.

> [!NOTE]
> This setting should be called before `startRecording()` for it to take effect. Default is disabled for backward compatibility.

- Kotlin
```kotlin
DevRev.setAsyncConfigFetchEnabled(context, true)
```
- Java
```java
DevRevObservabilityExtKt.setAsyncConfigFetchEnabled(DevRev.INSTANCE, context, true);
```

**Behavior when enabled:**
- Uses cached config immediately to decide whether to start recording
- If cached config says recording is disabled, recording won't start (respects dashboard setting)
- Fetches fresh config in background without blocking startup
- If fresh config disables recording after it started, recording stops immediately
- Session uploads are deferred to when the app is in the background
- Crash and ANR reports are prioritized and uploaded immediately
- Regular session uploads occur sequentially (one at a time) to reduce network contention

This optimization is particularly beneficial for apps experiencing slow startup times on poor network connections.

#### Session properties

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>Default</span><wbr></wbr><span>Recording</span><wbr></wb
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h2 class="tableheader">Functions</h2>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>start</span><wbr></wbr><span><span>Recording</span></spa
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/core/ai.devrev.sdk.executors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h2 class="tableheader">Types</h2>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>convert</span><wbr></wbr><span>To</span><wbr></wbr><span
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/core/ai.devrev.sdk.extensions/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ <h2 class="tableheader">Functions</h2>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/core/ai.devrev.sdk.extensions/to-json-array.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>to</span><wbr></wbr><span>Json</span><wbr></wbr><span><s
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>to</span><wbr></wbr><span>Json</span><wbr></wbr><span><s
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>to</span><wbr></wbr><span>Stringified</span><wbr></wbr><
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/core/ai.devrev.sdk.interfaces/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h2 class="tableheader">Functions</h2>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/core/ai.devrev.sdk.interfaces/refresh-token.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>refresh</span><wbr></wbr><span><span>Token</span></span>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>Artifact</span><wbr></wbr><span>Summary</span><wbr></wbr
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>display</span><wbr></wbr><span><span>Id</span></span></h
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span><span>file</span></span></h1>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span><span>id</span></span></h1>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h2 class="tableheader">Properties</h2>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>preview</span><wbr></wbr><span><span>Url</span></span></
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>File</span><wbr></wbr><span>Type</span><wbr></wbr><span>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h2 class="tableheader">Properties</h2>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span><span>type</span></span></h1>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/core/ai.devrev.sdk.model.artifact/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ <h2 class="tableheader">Types</h2>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>Org</span><wbr></wbr><span>Base</span><wbr></wbr><span>S
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>display</span><wbr></wbr><span><span>Id</span></span></h
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>display</span><wbr></wbr><span><span>Name</span></span><
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span><span>id</span></span></h1>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ <h2 class="tableheader">Properties</h2>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>logo</span><wbr></wbr><span><span>Id</span></span></h1>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span><span>thumbnail</span></span></h1>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span><span>type</span></span></h1>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>display</span><wbr></wbr><span><span>Name</span></span><
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ <h2 class="tableheader">Properties</h2>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span>logo</span><wbr></wbr><span><span>Id</span></span></h1>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h1 class="cover"><span><span>thumbnail</span></span></h1>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/core/ai.devrev.sdk.model.org/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ <h2 class="tableheader">Types</h2>
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
Dokka
</a>
<div>© 2025 Copyright</div>
<div>© 2026 Copyright</div>
</div>
</div>
</div>
Expand Down
Loading