Enable translation on the agent side
Get the schema version from AppSearch and uses that as the hint to
decide whether to translate the request and response within
AppFunctionManagerCompat.executeAppFunction
Bug: 400366007
Test: Added tests
Change-Id: Id399d3499eff8e77ff3561a5b520017175699ae1
diff --git a/appfunctions/appfunctions-runtime/build.gradle b/appfunctions/appfunctions-runtime/build.gradle
index 5856f6521..939a784 100644
--- a/appfunctions/appfunctions-runtime/build.gradle
+++ b/appfunctions/appfunctions-runtime/build.gradle
@@ -41,19 +41,20 @@
implementation(libs.kotlinCoroutinesGuava) {
exclude group: "com.google.guava", module: "guava"
}
-
// Compile only dependencies
compileOnly(project(":appfunctions:appfunctions-stubs"))
// Test dependencies
testImplementation(libs.junit)
testImplementation(libs.truth)
+ testImplementation(libs.testMonitor)
testImplementation(libs.kotlinCoroutinesTest)
testImplementation(libs.testRunner)
testImplementation(project(":appfunctions:appfunctions-stubs"))
testImplementation(libs.mockitoCore)
testImplementation(libs.testCore)
testImplementation(libs.robolectric)
+ testImplementation(libs.kotlinTest)
androidTestCompileOnly(project(":appfunctions:appfunctions-stubs"))
androidTestImplementation("androidx.appsearch:appsearch:1.1.0-beta01")
@@ -66,6 +67,7 @@
androidTestImplementation(libs.guavaAndroid)
androidTestImplementation(libs.testMonitor)
androidTestImplementation(libs.testRunner)
+ androidTestImplementation(libs.kotlinTest)
}
android {