[eas-cli] Add integrations:posthog:connect#3836
Draft
gwdp wants to merge 2 commits into
Draft
Conversation
0a4e058 to
9ac957d
Compare
bf35e3a to
49a8f7b
Compare
7ddf04d to
2467434
Compare
49a8f7b to
cabef9c
Compare
2467434 to
891d769
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## gwdp/posthog-m3a-graphql #3836 +/- ##
============================================================
+ Coverage 58.43% 58.65% +0.23%
============================================================
Files 917 922 +5
Lines 39999 40255 +256
Branches 8419 8470 +51
============================================================
+ Hits 23368 23607 +239
- Misses 16536 16553 +17
Partials 95 95 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
9e9abf4 to
59db163
Compare
fb71761 to
d577dc9
Compare
cabef9c to
70411c8
Compare
d577dc9 to
553dccc
Compare
|
✅ Thank you for adding the changelog entry! |
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.
Why
Connect an Expo app to PostHog in one command. It provisions the PostHog project, asks which features you want, installs the SDK, and writes the env vars — so analytics / session replay / error tracking work after a build.
How
Fast-forward order — provision first, then ask what to wire up:
It then:
posthog-react-native(+expo-file-system,expo-application,expo-device,expo-localization; plusposthog-react-native-session-replaywhen replay is on) vianpx expo installposthog-react-native/expoconfig plugin (prints manual steps if your app config is dynamic).env.local(local dev) and EAS (Production / Preview / Development):EXPO_PUBLIC_POSTHOG_API_KEY,EXPO_PUBLIC_POSTHOG_HOST(public)POSTHOG_CLI_API_KEY(sensitive),POSTHOG_CLI_PROJECT_ID,POSTHOG_CLI_HOST(public)POSTHOG_CLI_*vars.Flags:
--region,--session-replay/--no-session-replay,--error-tracking/--no-error-tracking,--posthog-cli-api-key,--overwrite, plus--json/--non-interactive. Agent-ready: error tracking auto-skips without a key (or pass--posthog-cli-api-key);--error-trackingwithout a key fails before provisioning;--regionis required non-interactively.Test Plan
connect.ts