ilabs-flir 2.1.35 → 2.1.36

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 (2) hide show
  1. package/Flir.podspec +11 -4
  2. package/package.json +1 -1
package/Flir.podspec CHANGED
@@ -36,14 +36,21 @@ Pod::Spec.new do |s|
36
36
 
37
37
  # Ensure React headers are available to this Pod across various RN/CocoaPods layouts
38
38
  # (helps when headers are in different public/private/ReactCore locations or when using use_frameworks)
39
- s.pod_target_xcconfig ||= {}
40
- existing_hdrs = s.pod_target_xcconfig['HEADER_SEARCH_PATHS'] || '$(inherited)'
39
+ begin
40
+ existing = s.pod_target_xcconfig rescue {}
41
+ end
42
+ existing_hdrs = existing.is_a?(Hash) ? (existing['HEADER_SEARCH_PATHS'] || '$(inherited)') : '$(inherited)'
41
43
  hdrs = [existing_hdrs,
42
44
  '"${PODS_ROOT}/Headers/Public/React"',
43
45
  '"${PODS_ROOT}/Headers/Public/React-Core"',
44
46
  '"${PODS_ROOT}/Headers/Public/ReactCommon"',
45
- '"${PODS_ROOT}/Headers/Public/React-CoreModules"']
46
- s.pod_target_xcconfig['HEADER_SEARCH_PATHS'] = hdrs.join(' ')
47
+ '"${PODS_ROOT}/Headers/Public/React-CoreModules"'].join(' ')
48
+ begin
49
+ s.pod_target_xcconfig = (existing || {}).merge('HEADER_SEARCH_PATHS' => hdrs)
50
+ rescue NoMethodError
51
+ # Fallback for older CocoaPods that don't support pod_target_xcconfig
52
+ s.user_target_xcconfig = (s.user_target_xcconfig || {}).merge('HEADER_SEARCH_PATHS' => hdrs)
53
+ end
47
54
 
48
55
 
49
56
  # ==========================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ilabs-flir",
3
- "version": "2.1.35",
3
+ "version": "2.1.36",
4
4
  "description": "FLIR Thermal SDK for React Native - iOS & Android (bundled at compile time via postinstall)",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",