메인 콘텐츠로 건너뛰기

@capgo/capacitor-patch

sync 및 update 훅에서 Capacitor 핵심 패키지, CLI, 플러그인 및 네이티브 프로젝트에 검증된 수정 사항을 적용합니다.

@capgo/capacitor-patch is a hook-only Capacitor package that applies selected patch files whenever Capacitor runs sync or update.

It is built for fixes that are useful before they land in an official Capacitor release. The bundled catalog tracks external upstream Capacitor PRs mirrored by Capacitor+ sync/upstream-pr-* Note

__CAPGO_KEEP_0__

Patch

Capacitor packages

__CAPGO_KEEP_1__ @capacitor/core, @capacitor/android, @capacitor/ios및 제 3 자 Capacitor 플러그인 하위 node_modules.

Capacitor CLI

CLI 자바 스크립트 파일을 패치했습니다. CLI 패치를 적용할 때, 다음 cap 명령어는 패치된 code를 사용합니다.

자연어 프로젝트

생성된 안드로이드 또는 iOS 프로젝트 패치를 적용합니다. cap sync 또는 cap update.

안전한 선택

버전 범위, 중복 적용 방지, 엄격 모드 등이 스태일 패치가默리적으로 적용되는 것을 방지합니다.

패치 카탈로그

패치 카탈로그

앱이 필요로 하는 패치 ID를 선택하여 목록에 추가합니다. plugins.CapacitorPatch.patches.

각 카탈로그 항목에는:

  • a stable patch ID
  • 목표 패키지 또는 네이티브 프로젝트 단계
  • 지원 버전 범위
  • 업스트림 Capacitor PR
  • Capacitor+ 동기화 branch와 일치하는
  • 패키지에 포함된 패치 파일

사용 @capgo/capacitor-patch 언제:

  • 업스트림 Capacitor 수정이 존재하지만 아직 배포되지 않은 경우
  • your app needs the fix without local patch script 관리를 유지하지 않고
  • you want patches to re-apply after every Capacitor sync/update
  • you need a team-readable catalog of the fixes your app depends on

For a full catalog and contribution guide, see the capacitor-patch repository.

If you are using @capgo/capacitor-patch to plan native plugin work, connect it with Using @capgo/capacitor-patch for the native capability in Using @capgo/capacitor-patch, Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로우를 위해 Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo의 구현 세부 정보를 위해 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트의 구현 세부 정보를 위해, 그리고 아이오닉 엔터프라이즈 플러그인 대체 아이오닉 엔터프라이즈 플러그인 대체의 제품 워크플로우를 위해