Skip to content

Commit

Permalink
update react native (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Nov 17, 2023
1 parent 67a9b6d commit 97498b1
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 55 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/react-native-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ jobs:
with:
node-version: lts/*

- name: Pre-build dependencies
run: npm install yarn

- name: Run Binding Linter
run: yarn && yarn lint
working-directory: binding/react-native
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/react-native-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

# ************ REMOVE AFTER RELEASE *****************
- name: Build and package binding
working-directory: binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz
# ***************************************************

- name: Install dependencies
run: yarn android-install

Expand All @@ -69,15 +60,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

# ************ REMOVE AFTER RELEASE *****************
- name: Build and package binding
working-directory: binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz
# ***************************************************

- name: Install dependencies
run: yarn ios-install

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/react-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
run: yarn install

- name: Build
run: yarn
run: yarn prepare
2 changes: 1 addition & 1 deletion binding/react-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To learn more about Porcupine, see the [product](https://picovoice.ai/products/p
This binding is for running Porcupine on **React Native 0.62.2+** on the following platforms:

- Android 5.0+ (API 21+)
- iOS 11.0+
- iOS 13.0+

## Installation

Expand Down
2 changes: 1 addition & 1 deletion binding/react-native/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,5 @@ repositories {
dependencies {
// noinspection GradleDynamicVersion
api 'com.facebook.react:react-native:+'
implementation 'ai.picovoice:porcupine-android:3.0.0'
implementation 'ai.picovoice:porcupine-android:3.0.1'
}
4 changes: 2 additions & 2 deletions binding/react-native/ios/Porcupine.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -235,7 +235,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_INCLUDE_PATHS = "${SRCROOT}";
Expand Down
2 changes: 1 addition & 1 deletion binding/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@picovoice/porcupine-react-native",
"version": "3.0.0",
"version": "3.0.1",
"description": "Picovoice Porcupine React Native binding",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
4 changes: 2 additions & 2 deletions binding/react-native/porcupine-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ 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/porcupine.git", :tag => "#{s.version}" }

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

s.dependency "React"
s.dependency "Porcupine-iOS", '~> 3.0.0'
s.dependency "Porcupine-iOS", '~> 3.0.1'
end
2 changes: 1 addition & 1 deletion binding/react-native/test-app/PorcupineTestApp/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
12 changes: 6 additions & 6 deletions binding/react-native/test-app/PorcupineTestApp/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ PODS:
- ios-voice-processor (1.1.0)
- libevent (2.1.12)
- OpenSSL-Universal (1.1.1100)
- Porcupine-iOS (3.0.0):
- Porcupine-iOS (3.0.1):
- ios-voice-processor (~> 1.1.0)
- porcupine-react-native (3.0.0):
- Porcupine-iOS (~> 3.0.0)
- porcupine-react-native (3.0.1):
- Porcupine-iOS (~> 3.0.1)
- React
- RCT-Folly (2021.07.22.00):
- boost
Expand Down Expand Up @@ -575,8 +575,8 @@ SPEC CHECKSUMS:
ios-voice-processor: 8e32d7f980a06d392d128ef1cd19cf6ddcaca3c1
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
Porcupine-iOS: 517158e02ac294dda15b713a3c6f74a9e877090c
porcupine-react-native: e74ff3c50f8a1ec956b8aa7a8797821b0f9e8b85
Porcupine-iOS: 6d69509fa587f3ac0be1adfefb48e0c6ce029fff
porcupine-react-native: f6650a418ba767c210eeb416d4e0bdbb93a209ca
RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
RCTRequired: dea3e4163184ea57c50288c15c32c1529265c58f
RCTTypeSafety: a0834ab89159a346731e8aae55ad6e2cce61c327
Expand Down Expand Up @@ -610,6 +610,6 @@ SPEC CHECKSUMS:
Yoga: c618b544ff8bd8865cdca602f00cbcdb92fd6d31
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: c175f5594aacce158a6c9dfa12548975fd078ac6
PODFILE CHECKSUM: 9fac28778c14bed4eb7a3cc813cae619223e179f

COCOAPODS: 1.11.3
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
"$(inherited)",
);
INFOPLIST_FILE = PorcupineTestAppTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -466,7 +466,7 @@
BUNDLE_LOADER = "$(TEST_HOST)";
COPY_PHASE_STRIP = NO;
INFOPLIST_FILE = PorcupineTestAppTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -584,7 +584,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
/usr/lib/swift,
"$(inherited)",
Expand Down Expand Up @@ -649,7 +649,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
/usr/lib/swift,
"$(inherited)",
Expand Down
2 changes: 1 addition & 1 deletion demo/react-native/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, '11.0'
platform :ios, '13.0'

target 'PorcupineDemo' do
config = use_native_modules!
Expand Down
12 changes: 6 additions & 6 deletions demo/react-native/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ PODS:
- fmt (6.2.1)
- glog (0.3.5)
- ios-voice-processor (1.1.0)
- Porcupine-iOS (3.0.0):
- Porcupine-iOS (3.0.1):
- ios-voice-processor (~> 1.1.0)
- porcupine-react-native (3.0.0):
- Porcupine-iOS (~> 3.0.0)
- porcupine-react-native (3.0.1):
- Porcupine-iOS (~> 3.0.1)
- React
- RCT-Folly (2021.06.28.00-v2):
- boost
Expand Down Expand Up @@ -418,8 +418,8 @@ SPEC CHECKSUMS:
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 476ee3e89abb49e07f822b48323c51c57124b572
ios-voice-processor: 8e32d7f980a06d392d128ef1cd19cf6ddcaca3c1
Porcupine-iOS: 517158e02ac294dda15b713a3c6f74a9e877090c
porcupine-react-native: e74ff3c50f8a1ec956b8aa7a8797821b0f9e8b85
Porcupine-iOS: 6d69509fa587f3ac0be1adfefb48e0c6ce029fff
porcupine-react-native: f6650a418ba767c210eeb416d4e0bdbb93a209ca
RCT-Folly: 4d8508a426467c48885f1151029bc15fa5d7b3b8
RCTRequired: 530916cd48c5f7cf1fc16966ad5ea01638ca4799
RCTTypeSafety: 5fb4cb3080efd582e5563c3e9a0e459fc51396c5
Expand Down Expand Up @@ -449,6 +449,6 @@ SPEC CHECKSUMS:
RNCPicker: 0991c56da7815c0cf946d6f63cf920b25296e5f6
Yoga: 0bc4b37c3b8a345336ff601e2cf7d9704bab7e93

PODFILE CHECKSUM: 853e3dcc8afbd54d559edf35fc8dcaab2a813897
PODFILE CHECKSUM: 8921bb939d724a5ead76bd00f8a96af2bfb18432

COCOAPODS: 1.11.3
4 changes: 2 additions & 2 deletions demo/react-native/ios/PorcupineDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,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)";
LIBRARY_SEARCH_PATHS = (
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
Expand Down Expand Up @@ -438,7 +438,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)";
LIBRARY_SEARCH_PATHS = (
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
Expand Down
4 changes: 2 additions & 2 deletions demo/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "porcupine-react-native-demo",
"version": "3.0.0",
"version": "3.0.1",
"private": true,
"scripts": {
"start": "react-native start",
Expand All @@ -15,7 +15,7 @@
"ios-bundle": "node scripts/run_demo.js bundle --dev false --platform ios --entry-file index.js --bundle-output ios/app.jsbundle"
},
"dependencies": {
"@picovoice/porcupine-react-native": "3.0.0",
"@picovoice/porcupine-react-native": "3.0.1",
"@picovoice/react-native-voice-processor": "1.2.0",
"@react-native-picker/picker": "^1.9.2",
"react": "17.0.2",
Expand Down
8 changes: 4 additions & 4 deletions demo/react-native/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1476,10 +1476,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@picovoice/[email protected].0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@picovoice/porcupine-react-native/-/porcupine-react-native-3.0.0.tgz#f9e670d317b42de53984338d86350ffd1d2ac6a0"
integrity sha512-sMw4UwwzCnWyXpqlRYTiWaPlLoHoK/RqW4t+wUBAg8GxAlSD9JkRv6hWc1B5i2FPqWD0Txqm7nFDoDL6EEvNsw==
"@picovoice/[email protected].1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@picovoice/porcupine-react-native/-/porcupine-react-native-3.0.1.tgz#2c71a61b074f34fece517a884fb0ec2f6eacc7cc"
integrity sha512-TGP7l1SVNOMuqyocvRqyf7X08VYkr3gc4eucw8M81QLzWzJ8Mpz64BQb2iifNUR6Oaia0XQ1tHP3ffrdIHY2rg==

"@picovoice/[email protected]":
version "1.2.0"
Expand Down

0 comments on commit 97498b1

Please sign in to comment.