react-native-iap 14.3.2-rc.2 → 14.3.2-rc.3
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/package.json +1 -1
- package/plugin/build/withIAP.js +1 -1
- package/plugin/src/withIAP.ts +1 -1
package/package.json
CHANGED
package/plugin/build/withIAP.js
CHANGED
|
@@ -117,7 +117,7 @@ const withIapIOS = (config) => {
|
|
|
117
117
|
}
|
|
118
118
|
// 3) Ensure RCT-Folly has FOLLY_NO_CONFIG=1 to avoid missing folly-config.h
|
|
119
119
|
if (!content.includes('FOLLY_NO_CONFIG=1')) {
|
|
120
|
-
const inject = `\n # react-native-iap: Ensure
|
|
120
|
+
const inject = `\n # react-native-iap: Ensure FOLLY_NO_CONFIG for all Pods targets (avoids missing folly-config.h)\n installer.pods_project.targets.each do |target|\n target.build_configurations.each do |config|\n settings = config.build_settings\n defs = settings['GCC_PREPROCESSOR_DEFINITIONS'] || ['$(inherited)']\n unless defs.any? { |d| d.to_s.include?('FOLLY_NO_CONFIG') }\n defs << 'FOLLY_NO_CONFIG=1'\n end\n settings['GCC_PREPROCESSOR_DEFINITIONS'] = defs\n end\n end\n`;
|
|
121
121
|
const rnPostInstallCall = /(react_native_post_install\([\s\S]*?\)\n)/m;
|
|
122
122
|
if (rnPostInstallCall.test(content)) {
|
|
123
123
|
content = content.replace(rnPostInstallCall, `$1${inject}`);
|
package/plugin/src/withIAP.ts
CHANGED
|
@@ -160,7 +160,7 @@ const withIapIOS: ConfigPlugin = (config) => {
|
|
|
160
160
|
|
|
161
161
|
// 3) Ensure RCT-Folly has FOLLY_NO_CONFIG=1 to avoid missing folly-config.h
|
|
162
162
|
if (!content.includes('FOLLY_NO_CONFIG=1')) {
|
|
163
|
-
const inject = `\n # react-native-iap: Ensure
|
|
163
|
+
const inject = `\n # react-native-iap: Ensure FOLLY_NO_CONFIG for all Pods targets (avoids missing folly-config.h)\n installer.pods_project.targets.each do |target|\n target.build_configurations.each do |config|\n settings = config.build_settings\n defs = settings['GCC_PREPROCESSOR_DEFINITIONS'] || ['$(inherited)']\n unless defs.any? { |d| d.to_s.include?('FOLLY_NO_CONFIG') }\n defs << 'FOLLY_NO_CONFIG=1'\n end\n settings['GCC_PREPROCESSOR_DEFINITIONS'] = defs\n end\n end\n`;
|
|
164
164
|
|
|
165
165
|
const rnPostInstallCall = /(react_native_post_install\([\s\S]*?\)\n)/m;
|
|
166
166
|
if (rnPostInstallCall.test(content)) {
|