From 79a26071bdb78ca2c0f844c81476a84bed561c7d Mon Sep 17 00:00:00 2001 From: Albert Ho Date: Fri, 22 Nov 2024 17:01:04 -0800 Subject: [PATCH] fix --- binding/android/OrcaTestApp/orca-test-app/build.gradle | 3 +++ .../android/OrcaTestApp/orca-test-app/proguard-rules.pro | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/binding/android/OrcaTestApp/orca-test-app/build.gradle b/binding/android/OrcaTestApp/orca-test-app/build.gradle index c6d36849..9d292b84 100644 --- a/binding/android/OrcaTestApp/orca-test-app/build.gradle +++ b/binding/android/OrcaTestApp/orca-test-app/build.gradle @@ -110,6 +110,7 @@ dependencies { implementation 'com.google.android.material:material:1.8.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'com.google.code.gson:gson:2.10' + implementation 'com.google.errorprone:error_prone_annotations:2.36.0' implementation 'ai.picovoice:orca-android:1.0.0' // Espresso UI Testing @@ -124,4 +125,6 @@ dependencies { afterEvaluate { tasks."mergeDebugAssets".dependsOn "copyParams" tasks."mergeReleaseAssets".dependsOn "copyParams" + tasks."generateReleaseLintVitalReportModel".dependsOn "copyParams" + tasks."lintVitalAnalyzeRelease".dependsOn "copyParams" } diff --git a/binding/android/OrcaTestApp/orca-test-app/proguard-rules.pro b/binding/android/OrcaTestApp/orca-test-app/proguard-rules.pro index 158caf35..280693da 100644 --- a/binding/android/OrcaTestApp/orca-test-app/proguard-rules.pro +++ b/binding/android/OrcaTestApp/orca-test-app/proguard-rules.pro @@ -20,4 +20,8 @@ # hide the original source file name. #-renamesourcefileattribute SourceFile -keep class com.google.** { *; } --keep class com.microsoft.** { *; } \ No newline at end of file +-keep class com.microsoft.** { *; } + +-dontwarn com.google.errorprone.annotations.CheckReturnValue +-dontwarn com.google.errorprone.annotations.MustBeClosed +-dontwarn javax.lang.model.element.Modifier \ No newline at end of file