Skip to content

Commit

Permalink
iOS update (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Oct 25, 2024
1 parent 56f379b commit a560f55
Show file tree
Hide file tree
Showing 12 changed files with 384 additions and 1,121 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ data to the user via listeners.

- React Native 0.68.7+
- Android 5.0+ (API 21+)
- iOS 11.0+
- iOS 13.0+

## Installation

Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, min_ios_version_supported
platform :ios, '13.0'
prepare_react_native_project!

# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
Expand Down
16 changes: 8 additions & 8 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ PODS:
- hermes-engine (0.71.12):
- hermes-engine/Pre-built (= 0.71.12)
- hermes-engine/Pre-built (0.71.12)
- ios-voice-processor (1.1.0)
- ios-voice-processor (1.2.0)
- libevent (2.1.12)
- OpenSSL-Universal (1.1.1100)
- RCT-Folly (2021.07.22.00):
Expand Down Expand Up @@ -330,8 +330,8 @@ PODS:
- React-jsinspector (0.71.12)
- React-logger (0.71.12):
- glog
- react-native-voice-processor (1.2.1):
- ios-voice-processor (~> 1.1.0)
- react-native-voice-processor (1.2.3):
- ios-voice-processor (~> 1.2.0)
- React-Core
- React-perflogger (0.71.12)
- React-RCTActionSheet (0.71.12):
Expand Down Expand Up @@ -417,7 +417,7 @@ PODS:
- React-jsi (= 0.71.12)
- React-logger (= 0.71.12)
- React-perflogger (= 0.71.12)
- RNSVG (13.11.0):
- RNSVG (14.1.0):
- React-Core
- SocketRocket (0.6.1)
- Yoga (1.14.0)
Expand Down Expand Up @@ -598,7 +598,7 @@ SPEC CHECKSUMS:
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
hermes-engine: b60ebc812e0179a612d8146ac54730d533c804a2
ios-voice-processor: 8e32d7f980a06d392d128ef1cd19cf6ddcaca3c1
ios-voice-processor: 6b5ca08962f39e434fe39dca0f483d923a3b1b97
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
Expand All @@ -615,7 +615,7 @@ SPEC CHECKSUMS:
React-jsiexecutor: 509cd947c28834614808ce056ee8eb700a0662aa
React-jsinspector: ec4dcbfb1f4e72f04f826a0301eceee5fa7ca540
React-logger: 35538accacf2583693fbc3ee8b53e69a1776fcee
react-native-voice-processor: 93a1ac2add2baff144b0895ff48d72dbe6439eba
react-native-voice-processor: 47d7906332e258dcd1f2ee089bdb9bf0f6809ccf
React-perflogger: 75b0e25075c67565a830985f3c373e2eae5389e0
React-RCTActionSheet: a0c3e916b327e297d124d9ebe8b0c721840ee04d
React-RCTAnimation: 3da7025801d7bf0f8cfd94574d6278d5b82a8b88
Expand All @@ -629,11 +629,11 @@ SPEC CHECKSUMS:
React-RCTVibration: a283fefb8cc29d9740a7ff2e87f72ad10f25a433
React-runtimeexecutor: 7902246857a4ead4166869e6c42d4df329ff721d
ReactCommon: a6d1c76b9e10b439e41db225263341240e1cda9f
RNSVG: 03e4d258ca355d7836a0a5dd4d4dc63c1eb49cbb
RNSVG: ba3e7232f45e34b7b47e74472386cf4e1a676d0a
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
Yoga: 39310a10944fc864a7550700de349183450f8aaa
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: f0fe737bda985827849004326fc765e128262743
PODFILE CHECKSUM: 4e4d9b920eb018eb966867fd3c3ebf05b8933443

COCOAPODS: 1.11.3
4 changes: 2 additions & 2 deletions example/ios/VoiceProcessorExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
/usr/lib/swift,
"$(inherited)",
Expand Down Expand Up @@ -443,7 +443,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
/usr/lib/swift,
"$(inherited)",
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@picovoice/react-native-voice-processor",
"version": "1.2.2",
"version": "1.2.3",
"description": "A library for real-time voice processing in React Native.",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
4 changes: 2 additions & 2 deletions react-native-voice-processor.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Pod::Spec.new do |s|
s.license = package["license"]
s.authors = package["author"]

s.platforms = { :ios => "11.0" }
s.platforms = { :ios => "13.0" }
s.source = { :git => "https://github.com/Picovoice/react-native-voice-processor.git", :tag => "#{s.version}" }

s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "React-Core"
s.dependency 'ios-voice-processor', '~> 1.1.0'
s.dependency 'ios-voice-processor', '~> 1.2.0'

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
10 changes: 8 additions & 2 deletions test/VoiceProcessorTestApp/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, min_ios_version_supported
platform :ios, "13.0"
prepare_react_native_project!

flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
Expand Down Expand Up @@ -29,7 +29,7 @@ target 'VoiceProcessorTestApp' do
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => flipper_config,
:flipper_configuration => FlipperConfiguration.disabled,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
Expand All @@ -47,5 +47,11 @@ target 'VoiceProcessorTestApp' do
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
end
end
end
end

Loading

0 comments on commit a560f55

Please sign in to comment.