Skip to content

Commit

Permalink
stage
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Oct 11, 2023
1 parent 4505750 commit 4fbfb28
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ public String getMessage() {
for (int i = 0; i < messageStack.length; i++) {
sb.append(String.format("\n [%d] %s", i, messageStack[i]));
}
} else {
sb.append(".");
}
}
return sb.toString();
Expand Down
6 changes: 6 additions & 0 deletions binding/android/RhinoTestApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ buildscript {
repositories {
google()
mavenCentral()
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1264/'
}
}

dependencies {
Expand All @@ -24,6 +27,9 @@ allprojects {
repositories {
google()
mavenCentral()
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1264/'
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion binding/android/RhinoTestApp/rhino-test-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.code.gson:gson:2.10'
implementation 'ai.picovoice:rhino-android:2.2.2'
implementation 'ai.picovoice:rhino-android:3.0.0'

// Espresso UI Testing
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
Expand Down
6 changes: 6 additions & 0 deletions demo/android/Activity/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ buildscript {
repositories {
google()
mavenCentral()
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1264/'
}
}

dependencies {
Expand All @@ -24,6 +27,9 @@ allprojects {
repositories {
google()
mavenCentral()
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1264/'
}
}
}

Expand Down
7 changes: 1 addition & 6 deletions demo/android/Activity/rhino-activity-demo-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ android {
targetSdkVersion defaultTargetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

resValue 'string', 'pvTestingAccessKey', properties.getProperty("pvTestingAccessKey", "")
resValue 'string', 'numTestIterations', properties.getProperty("numTestIterations", "")
resValue 'string', 'performanceThresholdSec', properties.getProperty("performanceThresholdSec", "")
}
buildTypes {
release {
Expand Down Expand Up @@ -85,7 +80,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.code.gson:gson:2.10'
implementation 'ai.picovoice:rhino-android:2.2.2'
implementation 'ai.picovoice:rhino-android:3.0.0'
}

afterEvaluate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,7 @@ private void initRhino() {

Log.i("RhinoManager", rhinoManager.getContextInformation());
} catch (RhinoInvalidArgumentException e) {
onRhinoError(
String.format(
"%s\nMake sure your AccessKey '%s' is a valid access key.",
e.getMessage(),
ACCESS_KEY));
onRhinoError(e.getMessage());
} catch (RhinoActivationException e) {
onRhinoError("AccessKey activation error");
} catch (RhinoActivationLimitException e) {
Expand Down

0 comments on commit 4fbfb28

Please sign in to comment.