-
-
Notifications
You must be signed in to change notification settings - Fork 375
refactor(dx): Add structured Makefile with usage description #7129
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
base: main
Are you sure you want to change the base?
Conversation
- Add CONFIGURATION section with platform-specific variables - Organize targets into clear sections (SETUP, BUILDING, TESTING, etc.) - Add comprehensive documentation comments (## summaries, # details) - Add help system with 'make help' command - Add build targets for all platforms (iOS, macOS, Catalyst, tvOS, visionOS, watchOS) - Add test targets for all platforms (except watchOS - XCTest not supported) - Add make build and make test convenience targets - Improve consistency with platform-specific variable naming - Update watchOS build to use Simulator destination - Add comment explaining why test-watchos is not available
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7129 +/- ##
=============================================
+ Coverage 84.716% 84.776% +0.060%
=============================================
Files 459 461 +2
Lines 27494 27780 +286
Branches 12120 12315 +195
=============================================
+ Hits 23292 23551 +259
- Misses 3942 4187 +245
+ Partials 260 42 -218 see 40 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
|
@sentry review |
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 43f1295 | 1230.57 ms | 1261.67 ms | 31.10 ms |
| efa740d | 1220.71 ms | 1246.20 ms | 25.50 ms |
| effeafa | 1225.88 ms | 1249.78 ms | 23.90 ms |
| 18be519 | 1241.22 ms | 1260.57 ms | 19.35 ms |
| 5cfc768 | 1220.74 ms | 1245.06 ms | 24.32 ms |
| d7461dc | 1233.69 ms | 1255.29 ms | 21.60 ms |
| 28f150e | 1218.25 ms | 1253.73 ms | 35.48 ms |
| aa643c5 | 1228.25 ms | 1261.08 ms | 32.83 ms |
| 5d81ddc | 1221.06 ms | 1262.49 ms | 41.43 ms |
| ac363a0 | 1210.67 ms | 1237.80 ms | 27.13 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 43f1295 | 24.14 KiB | 1.01 MiB | 1013.99 KiB |
| efa740d | 23.75 KiB | 919.69 KiB | 895.95 KiB |
| effeafa | 23.74 KiB | 926.64 KiB | 902.89 KiB |
| 18be519 | 23.75 KiB | 926.64 KiB | 902.90 KiB |
| 5cfc768 | 23.75 KiB | 850.73 KiB | 826.98 KiB |
| d7461dc | 23.75 KiB | 874.45 KiB | 850.70 KiB |
| 28f150e | 24.14 KiB | 1.03 MiB | 1.00 MiB |
| aa643c5 | 23.75 KiB | 1015.07 KiB | 991.32 KiB |
| 5d81ddc | 24.15 KiB | 1.01 MiB | 1014.59 KiB |
| ac363a0 | 24.14 KiB | 1.01 MiB | 1012.81 KiB |
…pendency The HELP_DETAIL_AWK script was incorrectly showing the first dependency in the usage output instead of the requested target. For example, when requesting help for 'test', it would show 'Usage: make test-ios' instead of 'Usage: make test'. This fix ensures the usage always shows the target the user requested.
Summary
This PR refactors the Makefile to provide better structure, documentation, and developer experience.
Changes
make helpcommand with detailed help for each targetmake buildconvenience target and individual platform builds (build-ios, build-macos, build-catalyst, build-tvos, build-visionos, build-watchos)make testconvenience target and individual platform tests (test-ios, test-macos, test-catalyst, test-tvos, test-visionos)Example:
make helpOutputBenefits
make helpTesting
make helpworks correctlyCloses #7135