# Versioning and support policy

> How SDK versions are numbered, where releases are published, what 0.6.0 does not cover yet, the minimum OS versions, how to get help, and how we intend to handle deprecations.

The Herald SDK uses semantic versioning. The current release is 0.6.0.

## Version numbers

Versions take the form `MAJOR.MINOR.PATCH`:

| Part | Changes when |
|---|---|
| Major | A release removes or changes public API in a way that breaks existing code |
| Minor | A release adds features in a way that keeps existing code working |
| Patch | A release fixes bugs without changing the API |

iOS and Android share version numbers, and a release ships on both platforms. `Herald.sdkVersion` (iOS) and `Herald.SDK_VERSION` (Android) return the version at runtime, and every batch reports it to Herald.

### Before 1.0

While the major version is 0, the API can still change between minor versions. We intend to list every change that needs work on your side in the [Changelog](/docs/reference/changelog), with the steps to update. Patch releases in the 0.x series are meant for fixes only.

## Where releases are published

Each release is a git tag with the version number, such as `0.2.0`, on both source repositories:

| Platform | Repository | Install from |
|---|---|---|
| iOS | `https://github.com/ender1311/herald-ios` | Swift Package Manager |
| Android | `https://github.com/ender1311/herald-android` | JitPack (`https://jitpack.io`) |

Each repository's releases page carries the notes for that version. [Platform support](/docs/overview/platform-support#install) has the install lines.

## What 0.6.0 does not cover yet

Pages that describe a feature that is not built mark it as planned. Today that covers web SDKs, Liquid templating in Herald's own sending, and server-side rate limiting of SDK calls. See [Changelog](/docs/reference/changelog).

## Minimum requirements

| | iOS | Android |
|---|---|---|
| Operating system | iOS 16 | Android 8.0 (API level 26) |
| Build tools | Xcode 16, Swift tools 6.0 | Android Gradle Plugin 8, compileSdk 35 |
| Push service | APNs | Firebase Cloud Messaging |

See [Platform support](/docs/overview/platform-support) for module dependencies.

## Getting help

Contact your Herald account team. To speed up a fix, include:

- The SDK version, platform and OS version.
- The debug log from app launch through the problem (see [Logging and debugging](/docs/operations/logging-and-debugging)).
- The User ID (shown to your users as Support ID) or the External ID, and the time of a failing call, and the HTTP status if the log shows one.

Do not send user tokens, ingest tokens or push tokens in a support request.

## Deprecation approach

This section states how we intend to work. It is not a contractual commitment.

- We intend to mark an API as deprecated in a release before we remove it, with a compiler warning and a note in the changelog that names the replacement.
- We intend to remove deprecated APIs only in a later minor version while the SDK is below 1.0, and only in a major version from 1.0 on.
- We intend to keep the SDK endpoints compatible with every released SDK version that is still in use, so older app versions in your users' hands keep sending data.
- When we raise a minimum OS version, we intend to say so in the changelog at least one release ahead.

## Related

- [Changelog](/docs/reference/changelog)
- [Platform support](/docs/overview/platform-support)
- [Troubleshooting](/docs/operations/troubleshooting)
