| Packages | Maven Central | Min Version |
|---|---|---|
| posthog-android | Android API 21 | |
| posthog-android-surveys-compose | Android API 23 · 0.x |
|
| posthog (core) | Java 8 | |
| posthog-server | Java 8 | |
| posthog-android-gradle-plugin | Java 8 |
This repository contains PostHog's Android and JVM SDKs. PostHog is an open source platform for product analytics, feature flags, session replay, and more.
Please see the main PostHog docs.
SDK usage examples and code snippets live in the official documentation so they stay up to date.
posthog-android needs Curtains (com.squareup.curtains:curtains) at runtime. The SDK reads window and touch events through it.
Do not exclude that artifact from your build. Without it, session replay, interaction autocapture and touch tracking stay off for the whole process. The SDK writes a warning to Logcat when this happens.
See CONTRIBUTING.md for local setup and test instructions.