기존 마이크로소프트의 코드푸쉬가 지원 종료될 예정이다. 3/31일부로...
그렇기에 나도 코드푸쉬를 배우려다가 해당 내용을 skip하고, hot-updater로 적용하려고 한다.
https://gronxb.github.io/hot-updater/index.html
Hot Updater
Support New / Old ArchitectureCompatible with both the new and old React Native architectures, offering maximum flexibility for your projects
gronxb.github.io
설치단계
1. https://gronxb.github.io/hot-updater/guide/getting-started/quick-start-with-supabase.html
Supabase Provider - Hot Updater
If you’re not using the react-native-dotenv solution, the tokens from your .env file will not be included in your app bundle and are therefore not exposed to risks. However, if you’re still concerned, please refer to the article below for more details:
gronxb.github.io
2. 적용단계(체크리스트의 내용은 모두 1번에서 제대로 적용했으면 적용되었을겁니다.)
- 체크리스트
- hot-updater.config.ts올바르게 구성되었는지 확인하세요.
- HotUpdater.wrap 을 사용하여 구성 요소를 래핑합니다.
- babel-plugin. 을 등록하세요
네이티브 코드를 포함시킵니다.https://gronxb.github.io/hot-updater/guide/deploy.html
Deploy - Hot Updater
This command is used to deploy the update to the specified platform. Options: -p, --platform specify the platform (choices: "ios", "android") -t, --target-app-version specify the target app version (semver format e.g. 1.0.0, 1.x.x) -f, --force-update force
gronxb.github.io
3. 시험단계
https://gronxb.github.io/hot-updater/guide/simulator-test.html
Simulate Release Mode - Hot Updater
Simulate Release Mode Since hot-updater does not work in dev environment, you need to test it in Release mode as shown below. Checklist Make sure hot-updater.config.ts is properly configured. Make sure HotUpdater.wrap is properly implemented. Step 1: Simul
gronxb.github.io
잘 적용된걸 볼수있다. 끝.
주의해야할 점이 나의 경우 supabase로 적용했는데, 셀프호스팅은 아직 미지원이고, 롤백 기능의 경우 보안문제때문에 로컬만 작동된다.
나중에 아예 의존성문제때문에 셀프호스팅이 만들어지지 않을까 싶음.
+++ 인도개발자 분이 찍어놓은 영상이 있더라.
기존에 코드푸쉬 있는 경우 코드푸쉬 마이그레이션 참조!
근데 뭐라는지 잘 모르겠어... +++
https://www.youtube.com/watch?v=jJouZCEkXyA
'코딩 > React Native' 카테고리의 다른 글
[RN] 코드 푸쉬.... 안됨.. (0) | 2025.02.22 |
---|---|
[RN] RN 아이콘 적용하기. (0) | 2025.02.22 |
[RN]애플 로그인(react-native-apple-authentication) (0) | 2025.02.22 |
[RN] Splash 화면 설정하기 (0) | 2025.02.21 |
[RN] react-error-boundary 이용한 에러 페이지 추가하기. (0) | 2025.02.21 |