expo-juce 0.2.2 → 0.2.5

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.
@@ -17,12 +17,14 @@ Pod::Spec.new do |s|
17
17
 
18
18
  s.dependency 'ExpoModulesCore'
19
19
 
20
- # Our own source files (Swift, ObjC, ObjC++, headers)
21
- # JuceModules.mm #includes the JUCE .cpp files via amalgamation,
22
- # so we do NOT list juce_modules/**/*.cpp as source_files (would cause duplicate symbols).
23
- s.source_files = "**/*.{h,m,mm,swift}"
20
+ # Only OUR source files not JUCE subdirectories.
21
+ # JUCE headers must NOT be in source_files or CocoaPods adds them to the
22
+ # module map, where they fail to compile standalone (missing FLT_MAX etc).
23
+ # JuceModules.mm #includes the JUCE .cpp files via amalgamation;
24
+ # JUCE headers are found via HEADER_SEARCH_PATHS.
25
+ s.source_files = "*.{h,m,mm,swift}"
24
26
 
25
- # JUCE headers need to be discoverable for #include
27
+ # Keep JUCE sources on disk so the compiler can find them via #include
26
28
  s.preserve_paths = "juce_modules/**"
27
29
 
28
30
  # iOS frameworks required by JUCE modules + our AVAudioEngine code
package/ios/JuceConfig.h CHANGED
@@ -1,5 +1,12 @@
1
1
  #pragma once
2
2
 
3
+ // Xcode 16+ clang no longer implicitly includes these —
4
+ // JUCE uses FLT_MAX, FLT_MIN, INT_MAX, etc. throughout.
5
+ #include <cfloat>
6
+ #include <climits>
7
+ #include <cstdint>
8
+ #include <cmath>
9
+
3
10
  // Tell JUCE that global module settings are configured
4
11
  #define JUCE_GLOBAL_MODULE_SETTINGS_INCLUDED 1
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-juce",
3
- "version": "0.2.2",
3
+ "version": "0.2.5",
4
4
  "description": "Realtime DSP w/C++ & JUCE",
5
5
  "type": "module",
6
6
  "main": "build/index.js",