Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Feb 9, 2024
1 parent 42b2546 commit d081cb9
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 14 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 @@ -6,7 +6,7 @@ buildscript {
}

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

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

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

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.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
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/cheetah-react-native",
"version": "2.0.0",
"version": "2.0.1",
"description": "Picovoice Cheetah React Native binding",
"main": "lib/commonjs/index",
"module": "lib/module/index",
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": "cheetah-react-native-demo",
"version": "2.0.0",
"version": "2.0.1",
"private": true,
"scripts": {
"start": "react-native start",
Expand All @@ -16,8 +16,8 @@
"postinstall": "node copy.js"
},
"dependencies": {
"@picovoice/cheetah-react-native": "~2.0.0",
"@picovoice/react-native-voice-processor": "^1.2.0",
"@picovoice/cheetah-react-native": "~2.0.1",
"@picovoice/react-native-voice-processor": "^1.2.2",
"@react-native-picker/picker": "^1.9.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 @@ -1090,15 +1090,15 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@picovoice/cheetah-react-native@~2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@picovoice/cheetah-react-native/-/cheetah-react-native-2.0.0.tgz#5884d8c3b5d7b2ddc0bbc305e0e14dacb88f4192"
integrity sha512-hHdT/0i2DbfMOj95NPQmSRK0Y3r4Vby7mYQgZ1AslK6S5+5I1g3jck/Q38l8SVOyPhrBLGzZlywaNyClBQo3zg==
"@picovoice/cheetah-react-native@~2.0.1":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@picovoice/cheetah-react-native/-/cheetah-react-native-2.0.1.tgz#66a76d8606b994d4658aec382d0feec3558259f7"
integrity sha512-l8pbnUF1HNXOXKXXgVE7u3R2/l238KBCKNxshtrndVvq/009H00hau2AAIWnLn8dZyTAnV44KMXxCh2J/dXTkw==

"@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

0 comments on commit d081cb9

Please sign in to comment.