Commit 7b1f6a9
feat(examples): add devbox integration for e2e-compat (#1265)
* feat(examples): add devbox integration for e2e-compat and example app
Add mobile-devtools plugin with Nix-managed Android/iOS SDKs for
reproducible builds. Includes device definitions and env-var-driven
SDK version resolution in gradle files.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(devbox): add nodejs 22 to avoid nix insecure node 20 error
The react-native plugin pulls nodejs 20 which is now marked insecure
by nixpkgs (EOL). Explicitly add nodejs 22 to override.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(e2e-compat): resolve devbox build issues and add version info
- Pin watchman to 2024.11.18.00 (latest has folly build failure on nixpkgs)
- Add uuid to metro blocklist (v14 at root is ESM-only, incompatible with RN 0.72 Metro)
- Write .xcode.env.local in build:ios to inject devbox node path for Xcode
- Add max device definitions and update lock files
- Show RN version and platform in Stats panel
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(e2e-compat): use pre-bundled JS for iOS release builds
The xcodebuild bundle phase fails in monorepo environments because metro
falls back to internal defaults and resolves entry-file against the repo
root. Fix by building native code with SKIP_BUNDLING=1 then bundling JS
separately via the RN CLI which correctly uses metro.config.js.
Also updates Home.tsx with improved error diagnostics (network vs server
errors with trace display) and adds reports/ to gitignore.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6746d63 commit 7b1f6a9
22 files changed
Lines changed: 306 additions & 54 deletions
File tree
- examples
- AnalyticsReactNativeExample
- android
- devbox.d
- segment-integrations.mobile-devtools.android/devices
- segment-integrations.mobile-devtools.ios/devices
- e2e-compat
- android
- app
- devbox.d
- segment-integrations.mobile-devtools.android
- devices
- segment-integrations.mobile-devtools.ios/devices
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
0 commit comments