@capgo/capacitor-patch 8.1.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -6
- package/package.json +1 -1
- package/patches/catalog.json +657 -9
- package/patches/upstream-pr-6991-android-native-bridge.patch +15 -0
- package/patches/upstream-pr-6991-ios-native-bridge.patch +15 -0
- package/patches/upstream-pr-7301-core.patch +38 -0
- package/patches/upstream-pr-7419-ios.patch +13 -0
- package/patches/upstream-pr-7420-ios.patch +13 -0
- package/patches/upstream-pr-7446-android.patch +14 -0
- package/patches/upstream-pr-7490-android.patch +13 -0
- package/patches/upstream-pr-7490-ios.patch +13 -0
- package/patches/upstream-pr-7535-android.patch +13 -0
- package/patches/upstream-pr-7599-ios.patch +86 -0
- package/patches/upstream-pr-7732-android-native-bridge.patch +12 -0
- package/patches/upstream-pr-7732-ios-native-bridge.patch +12 -0
- package/patches/upstream-pr-7781-android.patch +24 -0
- package/patches/upstream-pr-7803-android.patch +13 -0
- package/patches/upstream-pr-7831-ios.patch +13 -0
- package/patches/upstream-pr-7987-android.patch +42 -0
- package/patches/upstream-pr-8087-android.patch +64 -0
- package/patches/upstream-pr-8188-cli.patch +18 -0
- package/patches/upstream-pr-8190-android.patch +13 -0
- package/patches/upstream-pr-8249-ios.patch +32 -0
- package/patches/upstream-pr-8252-cli.patch +31 -0
- package/patches/upstream-pr-8271-core.patch +30 -0
- package/patches/upstream-pr-8275-android.patch +158 -0
- package/patches/upstream-pr-8304-ios.patch +36 -0
- package/patches/upstream-pr-8418-android.patch +82 -0
- package/patches/upstream-pr-8424-android.patch +55 -0
- package/patches/upstream-pr-8429-android.patch +19 -0
- package/patches/upstream-pr-8454-android.patch +207 -0
- package/patches/upstream-pr-8458-cli.patch +14 -0
- package/scripts/capacitor-patch/runner.mjs +38 -4
- package/patches/capacitor-cli-spm-ios-minor-platform.patch +0 -40
package/README.md
CHANGED
|
@@ -33,9 +33,13 @@ npm install @capgo/capacitor-patch
|
|
|
33
33
|
npx cap sync
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
## Enable
|
|
36
|
+
## Enable Patches
|
|
37
37
|
|
|
38
|
-
`@capgo/capacitor-patch` is a no-op by default.
|
|
38
|
+
`@capgo/capacitor-patch` is a no-op by default. List the bundled fixes, then opt in to the patch IDs your app needs:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npx capgo-capacitor-patch list --all
|
|
42
|
+
```
|
|
39
43
|
|
|
40
44
|
```ts
|
|
41
45
|
import type { CapacitorConfig } from '@capacitor/cli';
|
|
@@ -46,7 +50,8 @@ const config: CapacitorConfig = {
|
|
|
46
50
|
webDir: 'dist',
|
|
47
51
|
plugins: {
|
|
48
52
|
CapacitorPatch: {
|
|
49
|
-
|
|
53
|
+
patches: ['upstream-pr-8418-android'],
|
|
54
|
+
strict: true,
|
|
50
55
|
},
|
|
51
56
|
},
|
|
52
57
|
};
|
|
@@ -62,6 +67,8 @@ npx cap sync
|
|
|
62
67
|
|
|
63
68
|
Package patches run before `sync` and `update`. Native project patches run after `sync` and `update`.
|
|
64
69
|
|
|
70
|
+
`recommended: true` is also supported for fixes Capgo marks as recommended in the catalog.
|
|
71
|
+
|
|
65
72
|
## Configuration
|
|
66
73
|
|
|
67
74
|
```ts
|
|
@@ -132,9 +139,9 @@ For generated native project files, use `"phase": "native"` and `"target": { "ty
|
|
|
132
139
|
|
|
133
140
|
### Built-in patches
|
|
134
141
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
142
|
+
The bundled catalog tracks external fix PRs mirrored by Capacitor+ auto-sync branches named `sync/upstream-pr-*`. These entries are explicit opt-in patches by default, so apps can choose the fixes they need without receiving every pending upstream change automatically.
|
|
143
|
+
|
|
144
|
+
Run `capgo-capacitor-patch list --all` to see the shipped catalog. Each entry includes the original upstream Capacitor PR URL, the Capacitor+ sync branch, target package, supported version range, and patch file.
|
|
138
145
|
|
|
139
146
|
## Compatibility
|
|
140
147
|
|
package/package.json
CHANGED