Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changeset/v6-major-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- **Breaking:** remove CocoaPods support on iOS and macOS — install through Swift Package Manager, which needs the Flutter SDK 3.41 or later and doesn't support add-to-app modules yet
- **Breaking:** adopt `posthog-ios` 4.x, which requires Xcode 26
- **Breaking:** adopt `posthog-android` 4.x
- Fail the Android build instead of crashing at runtime when another dependency would raise `posthog-android` past 4.x
- **Breaking:** remove `PostHogConfig.apiKey` and the `com.posthog.posthog.API_KEY` manifest and Info.plist key — use `projectToken` and `com.posthog.posthog.PROJECT_TOKEN`
- **Breaking:** remove `Posthog().enable()` and `Posthog().disable()`, and rename `enable()` and `disable()` to `optIn()` and `optOut()` on `PosthogFlutterPlatformInterface`, `PosthogFlutterIO` and `PosthogFlutterWeb` — use `optIn()` and `optOut()`
- **Breaking:** add `options` to `capture`, `screen`, `identify`, `setPersonProperties`, `alias`, `group` and `captureException`, and `defaultValue` to `isFeatureEnabled()`, add `captureAi()`, `setAppLanguage()`, `registerOptions()` and `unregisterOptions()`, and remove `getFeatureFlagPayload()` on `PosthogFlutterPlatformInterface` — update subclasses and test fakes
Expand Down
6 changes: 5 additions & 1 deletion posthog_flutter/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ android {
testImplementation 'org.robolectric:robolectric:4.14.1'
testImplementation 'junit:junit:4.13.2'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.10.1'
implementation 'com.posthog:posthog-android:[4.0.0,5.0.0)'
// strictly: Gradle otherwise raises a plain range when the app or another library asks for a
// newer posthog-android, and this plugin, compiled against 4.x, then crashes at runtime.
implementation('com.posthog:posthog-android') {
version { strictly '[4.0.0,5.0.0)' }
}
}

testOptions {
Expand Down
Loading