Skip to content

Commit

Permalink
React Native updates (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Feb 9, 2024
1 parent 361ed91 commit 531b04e
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 20 deletions.
13 changes: 12 additions & 1 deletion binding/react-native/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.android.tools.build:gradle:7.4.2'
}
}

Expand All @@ -22,6 +22,17 @@ def getExtOrIntegerDefault(name) {
}

android {
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace "ai.picovoice.reactnative.rhino"
}

if (agpVersion.tokenize('.')[0].toInteger() >= 8) {
buildFeatures {
buildConfig = true
}
}

compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
buildToolsVersion getExtOrDefault('buildToolsVersion')
defaultConfig {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 3 additions & 3 deletions binding/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@picovoice/rhino-react-native",
"version": "3.0.1",
"version": "3.0.2",
"description": "Picovoice Rhino React Native binding",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://github.com/Picovoice/rhino/#readme",
"devDependencies": {
"@picovoice/react-native-voice-processor": "^1.2.0",
"@picovoice/react-native-voice-processor": "^1.2.2",
"@react-native-community/eslint-config": "^3.2.0",
"@types/jest": "^26.0.0",
"@types/react": "^16.9.19",
Expand All @@ -58,7 +58,7 @@
"typescript": "^4.9.3"
},
"peerDependencies": {
"@picovoice/react-native-voice-processor": ">= 1.2.0",
"@picovoice/react-native-voice-processor": ">= 1.2.2",
"react": ">= 17.0",
"react-native": ">= 0.63"
},
Expand Down
8 changes: 4 additions & 4 deletions binding/react-native/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1503,10 +1503,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@picovoice/react-native-voice-processor@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@picovoice/react-native-voice-processor/-/react-native-voice-processor-1.2.0.tgz#82a98b41d9236ababe330dae873062ee0e1b24c3"
integrity sha512-zolTEo3qsqeUwY7JRslV/yhiA+oBrkeogOTxjHIEJ//yEsr7YKlI1PcqTbU5/xjmUiukh62gmwTXhosnQYdasQ==
"@picovoice/react-native-voice-processor@^1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@picovoice/react-native-voice-processor/-/react-native-voice-processor-1.2.2.tgz#dac86c918a3f299d859a3988fe25f98faa5d13a2"
integrity sha512-l3pQWNfPI7lJiVnMhyjQx9WoF1QhvsBNf9pEIVcEGipHrfdW1HTZ3RPRRHfZLUSPiIGHrQf1R/tMshQPZmkY3w==

"@react-native-community/cli-debugger-ui@^7.0.3":
version "7.0.3"
Expand Down
6 changes: 3 additions & 3 deletions demo/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rhino-react-native-demo",
"version": "3.0.1",
"version": "3.0.2",
"private": true,
"scripts": {
"start": "react-native start",
Expand All @@ -15,8 +15,8 @@
"ios-bundle": "node scripts/run_demo.js bundle --dev false --platform ios --entry-file index.js --bundle-output ios/app.jsbundle"
},
"dependencies": {
"@picovoice/react-native-voice-processor": "1.2.0",
"@picovoice/rhino-react-native": "3.0.1",
"@picovoice/react-native-voice-processor": "1.2.2",
"@picovoice/rhino-react-native": "3.0.2",
"react": "^17.0.2",
"react-native": "^0.68.7"
},
Expand Down
16 changes: 8 additions & 8 deletions demo/react-native/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -865,15 +865,15 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@picovoice/[email protected].0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@picovoice/react-native-voice-processor/-/react-native-voice-processor-1.2.0.tgz#82a98b41d9236ababe330dae873062ee0e1b24c3"
integrity sha512-zolTEo3qsqeUwY7JRslV/yhiA+oBrkeogOTxjHIEJ//yEsr7YKlI1PcqTbU5/xjmUiukh62gmwTXhosnQYdasQ==
"@picovoice/[email protected].2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@picovoice/react-native-voice-processor/-/react-native-voice-processor-1.2.2.tgz#dac86c918a3f299d859a3988fe25f98faa5d13a2"
integrity sha512-l3pQWNfPI7lJiVnMhyjQx9WoF1QhvsBNf9pEIVcEGipHrfdW1HTZ3RPRRHfZLUSPiIGHrQf1R/tMshQPZmkY3w==

"@picovoice/[email protected].1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@picovoice/rhino-react-native/-/rhino-react-native-3.0.1.tgz#7945213afa752ec3ddba79c7b1afb6125d22141f"
integrity sha512-6uKDRbub3deEJLoV5v7m2q3Lm95aDn62XlTCGf38ItAAs+zTx9QjRUxB6OUSJQ0tj6NUhMHjveQa0dg/d1s9qA==
"@picovoice/[email protected].2":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@picovoice/rhino-react-native/-/rhino-react-native-3.0.2.tgz#5ae7736d1883818b33567132ce5d5c88e07030f2"
integrity sha512-aVABth45eaAIWTAnYj3kVRosK8rHxbPKtoFRKTT3V0aU6g98ShQEh0t4ft9EUo5pcQiKCYCG0YhXaH9phOT6Zg==

"@react-native-community/cli-debugger-ui@^7.0.3":
version "7.0.3"
Expand Down

0 comments on commit 531b04e

Please sign in to comment.