@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.
Files changed (34) hide show
  1. package/README.md +13 -6
  2. package/package.json +1 -1
  3. package/patches/catalog.json +657 -9
  4. package/patches/upstream-pr-6991-android-native-bridge.patch +15 -0
  5. package/patches/upstream-pr-6991-ios-native-bridge.patch +15 -0
  6. package/patches/upstream-pr-7301-core.patch +38 -0
  7. package/patches/upstream-pr-7419-ios.patch +13 -0
  8. package/patches/upstream-pr-7420-ios.patch +13 -0
  9. package/patches/upstream-pr-7446-android.patch +14 -0
  10. package/patches/upstream-pr-7490-android.patch +13 -0
  11. package/patches/upstream-pr-7490-ios.patch +13 -0
  12. package/patches/upstream-pr-7535-android.patch +13 -0
  13. package/patches/upstream-pr-7599-ios.patch +86 -0
  14. package/patches/upstream-pr-7732-android-native-bridge.patch +12 -0
  15. package/patches/upstream-pr-7732-ios-native-bridge.patch +12 -0
  16. package/patches/upstream-pr-7781-android.patch +24 -0
  17. package/patches/upstream-pr-7803-android.patch +13 -0
  18. package/patches/upstream-pr-7831-ios.patch +13 -0
  19. package/patches/upstream-pr-7987-android.patch +42 -0
  20. package/patches/upstream-pr-8087-android.patch +64 -0
  21. package/patches/upstream-pr-8188-cli.patch +18 -0
  22. package/patches/upstream-pr-8190-android.patch +13 -0
  23. package/patches/upstream-pr-8249-ios.patch +32 -0
  24. package/patches/upstream-pr-8252-cli.patch +31 -0
  25. package/patches/upstream-pr-8271-core.patch +30 -0
  26. package/patches/upstream-pr-8275-android.patch +158 -0
  27. package/patches/upstream-pr-8304-ios.patch +36 -0
  28. package/patches/upstream-pr-8418-android.patch +82 -0
  29. package/patches/upstream-pr-8424-android.patch +55 -0
  30. package/patches/upstream-pr-8429-android.patch +19 -0
  31. package/patches/upstream-pr-8454-android.patch +207 -0
  32. package/patches/upstream-pr-8458-cli.patch +14 -0
  33. package/scripts/capacitor-patch/runner.mjs +38 -4
  34. package/patches/capacitor-cli-spm-ios-minor-platform.patch +0 -40
@@ -1,40 +0,0 @@
1
- diff --git a/dist/ios/common.js b/dist/ios/common.js
2
- --- a/dist/ios/common.js
3
- +++ b/dist/ios/common.js
4
- @@ -124,3 +124,28 @@ function getMajoriOSVersion(config) {
5
- return iosVersion;
6
- }
7
- exports.getMajoriOSVersion = getMajoriOSVersion;
8
- +function getMajorMinoriOSVersion(config) {
9
- + const pbx = (0, fs_extra_1.readFileSync)((0, path_1.join)(config.ios.nativeXcodeProjDirAbs, 'project.pbxproj'), 'utf-8');
10
- + const searchString = 'IPHONEOS_DEPLOYMENT_TARGET = ';
11
- + const startIndex = pbx.indexOf(searchString);
12
- + if (startIndex === -1) {
13
- + return '';
14
- + }
15
- + const valueStart = startIndex + searchString.length;
16
- + const endIndex = pbx.indexOf(';', valueStart);
17
- + const newlineIndex = pbx.indexOf('\n', valueStart);
18
- + const actualEnd = endIndex !== -1 && newlineIndex !== -1
19
- + ? Math.min(endIndex, newlineIndex)
20
- + : endIndex !== -1
21
- + ? endIndex
22
- + : newlineIndex !== -1
23
- + ? newlineIndex
24
- + : pbx.length;
25
- + let iosVersion = pbx.substring(valueStart, actualEnd).trim();
26
- + if (iosVersion.endsWith('.0')) {
27
- + iosVersion = iosVersion.slice(0, -2);
28
- + }
29
- + return iosVersion;
30
- +}
31
- +exports.getMajorMinoriOSVersion = getMajorMinoriOSVersion;
32
- diff --git a/dist/util/spm.js b/dist/util/spm.js
33
- --- a/dist/util/spm.js
34
- +++ b/dist/util/spm.js
35
- @@ -89,1 +89,1 @@
36
- - const iosVersion = (0, common_2.getMajoriOSVersion)(config);
37
- + const iosVersion = (0, common_2.getMajorMinoriOSVersion)(config);
38
- @@ -98,1 +98,1 @@
39
- - platforms: [.iOS(.v${iosVersion})],
40
- + platforms: [.iOS(${iosVersion.includes('.') ? `"${iosVersion}"` : `.v${iosVersion}`})],