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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-iap",
3
- "version": "14.3.2-rc.2",
3
+ "version": "14.3.2-rc.3",
4
4
  "description": "React Native In-App Purchases module for iOS and Android using Nitro",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -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 RCT-Folly has FOLLY_NO_CONFIG to avoid missing folly-config.h\n installer.pods_project.targets.each do |target|\n next unless target.name == 'RCT-Folly'\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`;
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}`);
@@ -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 RCT-Folly has FOLLY_NO_CONFIG to avoid missing folly-config.h\n installer.pods_project.targets.each do |target|\n next unless target.name == 'RCT-Folly'\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`;
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)) {