mindbox-expo-plugin 1.0.9-rc → 1.0.10-rc
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/build/ios/withPodfile.js
CHANGED
|
@@ -140,10 +140,14 @@ function insertResourceBundleSigningFix(podfile) {
|
|
|
140
140
|
if (podfile.includes("CODE_SIGNING_ALLOWED'] = 'NO'")) {
|
|
141
141
|
return podfile;
|
|
142
142
|
}
|
|
143
|
-
const postInstallRegex = /post_install\s+do\s+\|
|
|
144
|
-
|
|
143
|
+
const postInstallRegex = /post_install\s+do\s+\|([^|]+)\|/;
|
|
144
|
+
const match = podfile.match(postInstallRegex);
|
|
145
|
+
if (match) {
|
|
145
146
|
(0, errorUtils_1.logSuccess)("add resource bundle signing fix to existing post_install");
|
|
146
|
-
|
|
147
|
+
const installerVarName = match[1];
|
|
148
|
+
// Replace 'installer' in our fix with the actual variable name used in the Podfile
|
|
149
|
+
const fixWithCorrectVar = RESOURCE_BUNDLE_SIGNING_FIX.replace(/installer/g, installerVarName);
|
|
150
|
+
return podfile.replace(match[0], `${match[0]}\n${fixWithCorrectVar}`);
|
|
147
151
|
}
|
|
148
152
|
(0, errorUtils_1.logSuccess)("add resource bundle signing fix to new post_install");
|
|
149
153
|
return `${podfile}\n\npost_install do |installer|\n${RESOURCE_BUNDLE_SIGNING_FIX}\nend`;
|
|
@@ -19,6 +19,7 @@ const MINDBOX_PLUGIN_PROPS = [
|
|
|
19
19
|
"iosDeploymentTarget",
|
|
20
20
|
"iosDevTeam",
|
|
21
21
|
"usedExpoNotification",
|
|
22
|
+
"iosSkipResourceSigning",
|
|
22
23
|
];
|
|
23
24
|
const VALID_ANDROID_PROVIDERS = ["firebase", "huawei", "rustore"];
|
|
24
25
|
const VALID_IOS_MODES = ["development", "production"];
|
|
@@ -79,6 +80,7 @@ function validatePluginProps(props) {
|
|
|
79
80
|
validateStringProp(props.smallIconAccentColor, "smallIconAccentColor");
|
|
80
81
|
validateBooleanProp(props.nativeRequestPermission, "nativeRequestPermission");
|
|
81
82
|
validateBooleanProp(props.usedExpoNotification, "usedExpoNotification");
|
|
83
|
+
validateBooleanProp(props.iosSkipResourceSigning, "iosSkipResourceSigning");
|
|
82
84
|
validateStringProp(props.iosNseFilePath, "iosNseFilePath");
|
|
83
85
|
validateStringProp(props.iosNceFilePath, "iosNceFilePath");
|
|
84
86
|
validateStringProp(props.iosAppGroupId, "iosAppGroupId");
|
package/package.json
CHANGED