Native module도 제품 API다
Modules API v2, config plugin, build profile과 artifact provenance
Expo Modules API는 Kotlin·Swift 기능을 JS에 노출하지만 경계가 느슨하면 타입·lifecycle·permission 결함이 앱 전체로 번집니다. native API는 최소 표면으로 설계하고 config plugin으로 설정을 코드화하며, development·preview·production profile을 서로 다른 신뢰 경계로 운영합니다.
| 계층 | 설계 기준 | 파이프라인 증거 |
|---|---|---|
| Module API | typed input·explicit error·cleanup | unit·device contract test |
| Config plugin | idempotent native 설정 | prebuild diff |
| Build profile | dev·preview·prod 격리 | profile별 credential·env |
| Artifact | immutable·signed·traceable | commit·SBOM·provenance |
- API 축소native capability를 작은 typed contract로 노출합니다.
- 설정 코드화수동 Xcode·Gradle 수정을 config plugin으로 옮깁니다.
- Profile 격리bundle ID·credential·env·distribution을 환경별로 분리합니다.
- 재현 검증clean build와 artifact metadata로 동일 입력을 증명합니다.