Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0 rn #696

Merged
merged 5 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 88 additions & 8 deletions .github/workflows/react-native-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,28 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn
# ************ REMOVE AFTER RELEASE *****************
- name: Build and package ppn
working-directory: resources/porcupine/binding/react-native
run: yarn && yarn pkg

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

- name: Build and package rhn
working-directory: resources/rhino/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz

- name: Build and package pv
working-directory: sdk/react-native
run: yarn && yarn pkg

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

- name: Install dependencies
run: yarn android-install
Expand Down Expand Up @@ -71,8 +91,28 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn
# ************ REMOVE AFTER RELEASE *****************
- name: Build and package ppn
working-directory: resources/porcupine/binding/react-native
run: yarn && yarn pkg

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

- name: Build and package rhn
working-directory: resources/rhino/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz

- name: Build and package pv
working-directory: sdk/react-native
run: yarn && yarn pkg

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

- name: Install dependencies
run: yarn ios-install
Expand Down Expand Up @@ -110,8 +150,28 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn --legacy-peer-deps
# ************ REMOVE AFTER RELEASE *****************
- name: Build and package ppn
working-directory: resources/porcupine/binding/react-native
run: yarn && yarn pkg

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

- name: Build and package rhn
working-directory: resources/rhino/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz

- name: Build and package pv
working-directory: sdk/react-native
run: yarn && yarn pkg

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

- name: Install dependencies
run: yarn android-install
Expand Down Expand Up @@ -143,8 +203,28 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn --legacy-peer-deps
# ************ REMOVE AFTER RELEASE *****************
- name: Build and package ppn
working-directory: resources/porcupine/binding/react-native
run: yarn && yarn pkg

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

- name: Build and package rhn
working-directory: resources/rhino/binding/react-native
run: yarn && yarn pkg

- name: Add to demo
run: yarn add ../../resources/rhino/binding/react-native/pkg/picovoice-rhino-react-native-3.0.0.tgz

- name: Build and package pv
working-directory: sdk/react-native
run: yarn && yarn pkg

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

- name: Install dependencies
run: yarn ios-install
Expand Down
18 changes: 18 additions & 0 deletions demo/react-native-clock/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ buildscript {
repositories {
google()
jcenter()
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1266/'
}
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1267/'
}
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1269/'
}
}
dependencies {
classpath("com.android.tools.build:gradle:4.1.3")
Expand All @@ -33,5 +42,14 @@ allprojects {
google()
jcenter()
maven { url 'https://www.jitpack.io' }
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1266/'
}
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1267/'
}
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1269/'
}
}
}
3 changes: 3 additions & 0 deletions demo/react-native-clock/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ
platform :ios, '11.0'

target 'ReactNativeClock' do
pod 'Porcupine-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/porcupine/v3.0/binding/ios/Porcupine-iOS.podspec'
pod 'Rhino-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/rhino/v3.0/binding/ios/Rhino-iOS.podspec'
pod 'Picovoice-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/picovoice/v3.0-ios/sdk/ios/Picovoice-iOS.podspec'
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
end
Expand Down
42 changes: 27 additions & 15 deletions demo/react-native-clock/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ PODS:
- fmt (6.2.1)
- glog (0.3.5)
- ios-voice-processor (1.1.0)
- Porcupine-iOS (2.2.1):
- Picovoice-iOS (3.0.0):
- ios-voice-processor (~> 1.1.0)
- porcupine-react-native (2.2.1):
- Porcupine-iOS (~> 2.2.1)
- Porcupine-iOS (~> 3.0.0)
- Rhino-iOS (~> 3.0.0)
- Porcupine-iOS (3.0.0):
- ios-voice-processor (~> 1.1.0)
- porcupine-react-native (3.0.0):
- Porcupine-iOS (~> 3.0.0)
- React
- RCT-Folly (2021.06.28.00-v2):
- boost
Expand Down Expand Up @@ -224,7 +228,7 @@ PODS:
- React-jsinspector (0.68.7)
- React-logger (0.68.7):
- glog
- react-native-notification-sounds (0.5.5):
- react-native-notification-sounds (0.5.8):
- React
- react-native-voice-processor (1.2.0):
- ios-voice-processor (~> 1.1.0)
Expand Down Expand Up @@ -294,11 +298,11 @@ PODS:
- React-jsi (= 0.68.7)
- React-logger (= 0.68.7)
- React-perflogger (= 0.68.7)
- Rhino-iOS (2.2.2):
- Rhino-iOS (3.0.0):
- ios-voice-processor (~> 1.1.0)
- rhino-react-native (2.2.2):
- rhino-react-native (3.0.0):
- React
- Rhino-iOS (~> 2.2.2)
- Rhino-iOS (~> 3.0.0)
- RNVectorIcons (8.1.0):
- React-Core
- Yoga (1.14.0)
Expand All @@ -309,6 +313,8 @@ DEPENDENCIES:
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
- FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
- Picovoice-iOS (from `https://raw.githubusercontent.com/Picovoice/picovoice/v3.0-ios/sdk/ios/Picovoice-iOS.podspec`)
- Porcupine-iOS (from `https://raw.githubusercontent.com/Picovoice/porcupine/v3.0/binding/ios/Porcupine-iOS.podspec`)
- "porcupine-react-native (from `../node_modules/@picovoice/porcupine-react-native`)"
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
- RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
Expand Down Expand Up @@ -339,6 +345,7 @@ DEPENDENCIES:
- React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
- React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- Rhino-iOS (from `https://raw.githubusercontent.com/Picovoice/rhino/v3.0/binding/ios/Rhino-iOS.podspec`)
- "rhino-react-native (from `../node_modules/@picovoice/rhino-react-native`)"
- RNVectorIcons (from `../node_modules/react-native-vector-icons`)
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
Expand All @@ -347,8 +354,6 @@ SPEC REPOS:
trunk:
- fmt
- ios-voice-processor
- Porcupine-iOS
- Rhino-iOS

EXTERNAL SOURCES:
boost:
Expand All @@ -361,6 +366,10 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/React/FBReactNativeSpec"
glog:
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
Picovoice-iOS:
:podspec: https://raw.githubusercontent.com/Picovoice/picovoice/v3.0-ios/sdk/ios/Picovoice-iOS.podspec
Porcupine-iOS:
:podspec: https://raw.githubusercontent.com/Picovoice/porcupine/v3.0/binding/ios/Porcupine-iOS.podspec
porcupine-react-native:
:path: "../node_modules/@picovoice/porcupine-react-native"
RCT-Folly:
Expand Down Expand Up @@ -417,6 +426,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
ReactCommon:
:path: "../node_modules/react-native/ReactCommon"
Rhino-iOS:
:podspec: https://raw.githubusercontent.com/Picovoice/rhino/v3.0/binding/ios/Rhino-iOS.podspec
rhino-react-native:
:path: "../node_modules/@picovoice/rhino-react-native"
RNVectorIcons:
Expand All @@ -432,8 +443,9 @@ SPEC CHECKSUMS:
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 476ee3e89abb49e07f822b48323c51c57124b572
ios-voice-processor: 8e32d7f980a06d392d128ef1cd19cf6ddcaca3c1
Porcupine-iOS: df8e4a63d787b6c16bd5f988fd0f2c29a249a4bd
porcupine-react-native: c0ca3b5112d55af5aa2c2ca0267e082e2dfb4dda
Picovoice-iOS: a1aefe4fbc54bb698dd1663d7dee6a5bef9f1c5c
Porcupine-iOS: 517158e02ac294dda15b713a3c6f74a9e877090c
porcupine-react-native: e74ff3c50f8a1ec956b8aa7a8797821b0f9e8b85
RCT-Folly: 4d8508a426467c48885f1151029bc15fa5d7b3b8
RCTRequired: 530916cd48c5f7cf1fc16966ad5ea01638ca4799
RCTTypeSafety: 5fb4cb3080efd582e5563c3e9a0e459fc51396c5
Expand All @@ -447,7 +459,7 @@ SPEC CHECKSUMS:
React-jsiexecutor: 7c0bd030a84f2ec446fb104b7735af2f5ed11eea
React-jsinspector: cab4d37ebde480f84c79ac89568abbf76b916c3e
React-logger: b75b80500ea80457b2cf169427d66de986cdcb29
react-native-notification-sounds: da78c828fe1bcbb92d8b505d5261890ed315ff39
react-native-notification-sounds: 739f8adc4010138e4cd72fd4e3220e7df758473f
react-native-voice-processor: aefb0845641c7d67dd47e69606ba7ebb38aab5cd
React-perflogger: 44436b315d757100a53dfb1ab6b77c58cb646d7d
React-RCTActionSheet: 1888a229684762c40cc96c7ff4716f809655dc09
Expand All @@ -461,11 +473,11 @@ SPEC CHECKSUMS:
React-RCTVibration: 2a4bf853281d4981ab471509102300d3c9e6c693
React-runtimeexecutor: 18932e685b4893be88d1efc18f5f8ca1c9cd39d8
ReactCommon: 29bb6fad3242e30e9d049bc9d592736fa3da9e50
Rhino-iOS: 0fad86b28d35f67ccb6bd0a2efbbcc0d88b05124
rhino-react-native: b097ae57f636a07f72cd80b5079557ee09721792
Rhino-iOS: b92978104bfad32da25b9eeaa4f0628b86ffcee9
rhino-react-native: 3954bad7e47e21256a0874999cbb0d2acf599186
RNVectorIcons: 31cebfcf94e8cf8686eb5303ae0357da64d7a5a4
Yoga: 0bc4b37c3b8a345336ff601e2cf7d9704bab7e93

PODFILE CHECKSUM: f1735c3d5e715cf7947e3ba5b5a427084f14548f
PODFILE CHECKSUM: a8ffe61557bed353d1bb1d2fce8cf2a5e6a49b6f

COCOAPODS: 1.11.3
7 changes: 2 additions & 5 deletions demo/react-native-clock/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-clock",
"version": "2.2.0",
"version": "3.0.0",
"private": true,
"scripts": {
"copy": "node copy.js",
Expand All @@ -14,10 +14,7 @@
"ios-bundle": "react-native bundle --dev false --platform ios --entry-file index.js --bundle-output ios/app.jsbundle"
},
"dependencies": {
"@picovoice/picovoice-react-native": "=2.2.2",
"@picovoice/porcupine-react-native": "=2.2.1",
"@picovoice/react-native-voice-processor": "=1.2.0",
"@picovoice/rhino-react-native": "=2.2.2",
"@picovoice/react-native-voice-processor": "^1.2.0",
ksyeo1010 marked this conversation as resolved.
Show resolved Hide resolved
"moment": "^2.29.1",
"prettier": "^2.8.0",
"react": "^17.0.2",
Expand Down
Loading
Loading