Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Oct 30, 2023
1 parent 7184707 commit 157bf48
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions demo/android/OctopusDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ allprojects {
repositories {
google()
mavenCentral()
maven {
url 'https://s01.oss.sonatype.org/content/repositories/aipicovoice-1276/'
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion demo/android/OctopusDemo/octopus-demo-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
implementation 'ai.picovoice:octopus-android:1.2.2'
implementation 'ai.picovoice:octopus-android:2.0.0'
implementation 'ai.picovoice:android-voice-processor:1.0.2'
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected void onCreate(Bundle savedInstanceState) {
octopus = new Octopus.Builder().setAccessKey(ACCESS_KEY).build(getApplicationContext());
setUIInteractivity(true);
} catch (OctopusInvalidArgumentException e) {
displayFatalError(String.format("AccessKey '%s' is invalid", ACCESS_KEY));
displayFatalError(e.getMessage());
} catch (OctopusActivationException e) {
displayFatalError("AccessKey activation error");
} catch (OctopusActivationLimitException e) {
Expand Down
2 changes: 1 addition & 1 deletion res/.lint/java/suppress.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<suppress files=".*(Test|Exception|Callback|demo|Module|Plugin).*\.java" checks="MissingJavadocType"/>
<suppress files=".*(Test|Exception|Error|demo).*\.java" checks="OneTopLevelClass"/>
<suppress files=".*(Test).*\.java" checks="MethodName"/>
<suppress files=".*(demo|Module|Plugin).*\.java" checks="MissingJavadocMethod"/>
<suppress files=".*(demo|Module|Plugin|Exception).*\.java" checks="MissingJavadocMethod"/>
<suppress files=".*generated-sources.*" checks="[a-zA-Z0-9]*"/>
<suppress files=".*build.*" checks="[a-zA-Z0-9]*"/>
<suppress files=".*" checks="CustomImportOrder"/>
Expand Down

0 comments on commit 157bf48

Please sign in to comment.