@imcooder/opuslib 2.4.2 → 2.4.4

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/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @imcooder/opuslib
2
2
 
3
+ [![NPM version](https://img.shields.io/npm/v/@imcooder/opuslib.svg)](https://npmjs.com/package/@imcooder/opuslib)
4
+ [![NPM downloads](https://img.shields.io/npm/dm/@imcooder/opuslib.svg)](https://npmjs.com/package/@imcooder/opuslib)
5
+ [![License](https://img.shields.io/npm/l/@imcooder/opuslib.svg)](https://npmjs.com/package/@imcooder/opuslib)
6
+
3
7
  **Opus 1.6 audio encoding for React Native and Expo**
4
8
 
5
9
  > **Fork Notice:** This project is forked from [Scdales/opuslib](https://github.com/Scdales/opuslib). We've made the following enhancements:
@@ -20,48 +20,11 @@ Pod::Spec.new do |s|
20
20
 
21
21
  s.dependency 'ExpoModulesCore'
22
22
 
23
- # Compile Opus 1.6 with DRED enabled using CMake
24
- s.prepare_command = <<-CMD
25
- set -e
26
- echo "Building Opus 1.6 with DRED support for iOS..."
27
- echo "Working directory: $(pwd)"
23
+ # Prebuilt XCFramework (device + simulator) via scripts/build_xcframework.sh
24
+ s.vendored_frameworks = 'opus-build/libopus.xcframework'
28
25
 
29
- # Create build directory (we're already in ios/)
30
- mkdir -p opus-build
31
- cd opus-build
32
-
33
- # Configure with CMake targeting iOS (disable DRED, disable shared library and tests)
34
- # opus-1.6 is one directory up and then one more up from ios/opus-build/
35
- # Note: DRED disabled - can be enabled later if needed
36
- cmake ../../thirdparty/opus-1.6 \
37
- -DCMAKE_BUILD_TYPE=Release \
38
- -DCMAKE_SYSTEM_NAME=iOS \
39
- -DCMAKE_OSX_DEPLOYMENT_TARGET=15.1 \
40
- -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
41
- -DCMAKE_OSX_SYSROOT=iphonesimulator \
42
- -DCMAKE_IOS_INSTALL_COMBINED=YES \
43
- -DOPUS_DRED=OFF \
44
- -DOPUS_BUILD_SHARED_LIBRARY=OFF \
45
- -DOPUS_BUILD_TESTING=OFF \
46
- -DOPUS_BUILD_PROGRAMS=OFF \
47
- -DCMAKE_INSTALL_PREFIX=.
48
-
49
- # Build using all available CPU cores
50
- make -j$(sysctl -n hw.ncpu)
51
-
52
- # Install to local directory
53
- make install
54
-
55
- echo "Opus 1.6 built successfully with DRED support for iOS"
56
- CMD
57
-
58
- # Link the compiled Opus library (path relative to podspec location)
59
- s.vendored_libraries = 'opus-build/lib/libopus.a'
60
-
61
- # Swift/Objective-C compatibility
62
26
  s.pod_target_xcconfig = {
63
- 'DEFINES_MODULE' => 'YES',
64
- 'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)/../thirdparty/opus-1.6/include"'
27
+ 'DEFINES_MODULE' => 'YES'
65
28
  }
66
29
 
67
30
  s.source_files = "**/*.{h,m,mm,swift,hpp,cpp}"
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>libopus.a</string>
10
+ <key>HeadersPath</key>
11
+ <string>Headers</string>
12
+ <key>LibraryIdentifier</key>
13
+ <string>ios-arm64_x86_64-simulator</string>
14
+ <key>LibraryPath</key>
15
+ <string>libopus.a</string>
16
+ <key>SupportedArchitectures</key>
17
+ <array>
18
+ <string>arm64</string>
19
+ <string>x86_64</string>
20
+ </array>
21
+ <key>SupportedPlatform</key>
22
+ <string>ios</string>
23
+ <key>SupportedPlatformVariant</key>
24
+ <string>simulator</string>
25
+ </dict>
26
+ <dict>
27
+ <key>BinaryPath</key>
28
+ <string>libopus.a</string>
29
+ <key>HeadersPath</key>
30
+ <string>Headers</string>
31
+ <key>LibraryIdentifier</key>
32
+ <string>ios-arm64</string>
33
+ <key>LibraryPath</key>
34
+ <string>libopus.a</string>
35
+ <key>SupportedArchitectures</key>
36
+ <array>
37
+ <string>arm64</string>
38
+ </array>
39
+ <key>SupportedPlatform</key>
40
+ <string>ios</string>
41
+ </dict>
42
+ </array>
43
+ <key>CFBundlePackageType</key>
44
+ <string>XFWK</string>
45
+ <key>XCFrameworkFormatVersion</key>
46
+ <string>1.0</string>
47
+ </dict>
48
+ </plist>