-
Notifications
You must be signed in to change notification settings - Fork 35
feat: support iOS source-map uploads #871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a7539b9
feat: support iOS source-map uploads
ablaszkiewicz 6354eaf
feat: write iOS source-map creds to a gitignored xcconfig, not .env
ablaszkiewicz 7fcbd6a
fix: source-maps prompt writes the API host, not the ingestion host
ablaszkiewicz 50fa2a5
feat: iOS test instructions are Xcode-only, no crash-flow ritual
ablaszkiewicz d4fe459
fix: iOS prompt enforces the POSTHOG_INCLUDE_SOURCE=1 prefix
ablaszkiewicz 7a966e5
refactor: trim include-source rule to the bare MUST
ablaszkiewicz 4b7726d
refactor: drop include-source rule from the prompt — the skill owns it
ablaszkiewicz edb6327
refactor: iOS credentials collapse to one xcconfig write
ablaszkiewicz a877851
fix: POSTHOG_INCLUDE_SOURCE moves into the xcconfig write
ablaszkiewicz 90b82bb
revert: include-source stays an inline prefix, not an xcconfig value
ablaszkiewicz b1d9e81
feat: iOS source-map credentials move from xcconfig to .env
ablaszkiewicz 5d3be18
fix: env-file paths resolve against the wizard's working directory, l…
ablaszkiewicz 605f602
e2e: platform-blind test-done prompt, drop iOS override
ablaszkiewicz 4fb43c3
e2e: extract test-done prompt override into per-variant lookup
ablaszkiewicz 32defa8
fix: env files
ablaszkiewicz 98f2d82
fix: install cli
ablaszkiewicz 53aed6a
Merge remote-tracking branch 'origin/main' into ab/feat/ios-source-maps
ablaszkiewicz a94f18b
fix: improve analytics
ablaszkiewicz 8d70528
Merge branch 'main' into ab/feat/ios-source-maps
ablaszkiewicz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| import { buildSourceMapsUploadPrompt } from '@lib/programs/error-tracking-upload-source-maps/prompt'; | ||
|
|
||
| const baseParams = { | ||
| displayName: 'Node.js', | ||
| variant: 'node' as const, | ||
| skillId: 'error-tracking-upload-source-maps-node', | ||
| projectId: 123, | ||
| host: 'https://us.i.posthog.com', | ||
| settingsUrl: 'https://us.posthog.com/settings/user-api-keys', | ||
| uiHost: 'https://us.posthog.com', | ||
| }; | ||
|
|
||
| describe('buildSourceMapsUploadPrompt env file paths', () => { | ||
| it('scopes env tools to the selected monorepo project', () => { | ||
| const prompt = buildSourceMapsUploadPrompt({ | ||
| ...baseParams, | ||
| projectPath: 'backend', | ||
| }); | ||
|
|
||
| expect(prompt).toContain( | ||
| "Project directory (relative to the wizard's working directory): backend", | ||
| ); | ||
| expect(prompt).toContain('pass `backend/.env`, not `.env`'); | ||
| }); | ||
|
|
||
| it.each([undefined, '.'])( | ||
| 'keeps root-project env files at the wizard working directory (%s)', | ||
| (projectPath) => { | ||
| const prompt = buildSourceMapsUploadPrompt({ | ||
| ...baseParams, | ||
| projectPath, | ||
| }); | ||
|
|
||
| expect(prompt).toContain('pass `.env`'); | ||
| expect(prompt).not.toContain('pass `./.env`'); | ||
| }, | ||
| ); | ||
| }); |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.