Repository navigation
chore!: posthog-android 4.0 (integration PR), remove deprecated APIs - #871
Open
turnipdabeets wants to merge 1 commit into
Open
turnipdabeets wants to merge 1 commit into
turnipdabeets wants to merge 1 commit into
Conversation
Contributor
posthog-android Compliance ReportDate: 2026-10-23 15:53:26 UTC ✅ All Tests Passed!46/46 tests passed Capture Tests✅ 29/29 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
|
4 of 5 tasks
marandaneto
marked this pull request as draft
October 23, 2026 08:55
Member
|
moved to draft since its not mergeable yet |
Remove the public APIs already marked deprecated: apiKey and the apiKey factories, propertiesSanitizer and PostHogPropertiesSanitizer, evaluationEnvironments, getFeatureFlagPayload, and the replay debouncerDelayMs. remoteConfig moves to its own change because setting it to false still changes setup behavior. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
turnipdabeets
force-pushed
the
chore/v4-remove-deprecated
branch
from
October 23, 2026 15:47
48776ff to
2f486a0
Compare
This was referenced Oct 23, 2026
Open
turnipdabeets
marked this pull request as ready for review
October 24, 2026 15:58
Contributor
Author
Was hoping to get a review on these changes in particular first so I can merge all the other PRs into this one. Then we can mark this as draft if we want. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
This is the posthog-android 4.0 integration PR. Don't merge it until 4.0 is ready. Every other 4.0 change is a PR stacked on this branch (
chore/v4-remove-deprecated) and merges into it. This PR then merges everything intomainat once. The branch carries one changeset,.changeset/android-v4-major.md, and each stacked PR adds one line to it.Stacked PRs (merge into this branch):
remoteConfigoptionPostHogFeatureFlagsCallback)onFeatureFlagslistener you can unsubscribe (stacked on chore!: pass the load result to the feature flags callback #877)💡 Motivation and Context
Starts the next major: posthog-android 4.0 and core
posthog7.0, following the iOS 4.0 plan (PostHog/posthog-ios#557, PostHog/posthog-ios#873).This first change removes APIs that are already deprecated on
main:PostHogConfig.apiKey,PostHogConfig(apiKey = …),PostHogAndroidConfig(apiKey = …)projectTokenPostHogConfig.propertiesSanitizer,PostHogPropertiesSanitizeraddBeforeSendPostHogConfig.evaluationEnvironmentsevaluationContextsgetFeatureFlagPayload()(instance and static)getFeatureFlagResult(key)?.payloadPostHogSessionReplayConfig.debouncerDelayMsthrottleDelayMsposthog-serverkeeps its own deprecatedapiKeyandgetFeatureFlagPayload; the server SDK gets its own major separately. The React Native and Flutter Android code calls none of the removed APIs.remoteConfigis also deprecated, but removing it changes behavior (setup always fetches/config), so it gets its own stacked PR (#874).No sdk-specs contract is affected; this only removes deprecated aliases.
💚 How did you test it?
./gradlew :posthog:test :posthog-android:testReleaseUnitTestpass (1064 core and 762 Android tests).apiDumpregenerated;apiCheckpasses.getFeatureFlagResult.📝 Checklist
If releasing new changes
pnpm changesetto generate a changeset file🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Claude Code (Claude Opus 5.5) found the deprecated APIs, removed them, updated the tests and API dumps, and checked the Flutter and React Native Android code for callers.
remoteConfigwas split out after it turned out to be a real behavior switch, not a no-op.🤖 Generated with Claude Code