@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
|
@@ -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}`})],
|