fix misconfigured dependencies for appfunctions

Run the given commands and fix them accordingly.

./gradlew :appfunctions:appfunctions-common:projectHealth
./gradlew :appfunctions:appfunctions-compiler:projectHealth
./gradlew :appfunctions:appfunctions-runtime:projectHealth

There is one remaining finding, which is the kotlin-reflect dep should be removed. But we actually need it.

Fixes: 396719283
Test: presubmit
Change-Id: I236746cf61e47fe3127e6340c35abcc47bf5f190
diff --git a/appfunctions/appfunctions-common/build.gradle b/appfunctions/appfunctions-common/build.gradle
index c216764..ec218dc 100644
--- a/appfunctions/appfunctions-common/build.gradle
+++ b/appfunctions/appfunctions-common/build.gradle
@@ -32,20 +32,18 @@
 dependencies {
     api(libs.kotlinStdlib)
     // Public dependencies
-    api("androidx.appsearch:appsearch:1.1.0-alpha07")
+    implementation("androidx.appsearch:appsearch:1.1.0-beta01")
 
     // Internal dependencies
     implementation("androidx.annotation:annotation:1.8.1")
-    implementation("androidx.core:core:1.1.0")
 
     // Compile only dependencies
     compileOnly(project(":appfunctions:appfunctions-stubs"))
 
     // Test dependencies
-    androidTestImplementation(libs.testCore)
-    androidTestImplementation(libs.testRules)
     androidTestImplementation(libs.truth)
     androidTestImplementation(libs.junit)
+    androidTestImplementation(libs.testRunner)
     androidTestCompileOnly(project(":appfunctions:appfunctions-stubs"))
 }
 
diff --git a/appfunctions/appfunctions-compiler/build.gradle b/appfunctions/appfunctions-compiler/build.gradle
index 106ba13..f0c3e21 100644
--- a/appfunctions/appfunctions-compiler/build.gradle
+++ b/appfunctions/appfunctions-compiler/build.gradle
@@ -36,8 +36,9 @@
 
 dependencies {
     api(libs.kotlinStdlib)
+    api(libs.kspApi)
+
     implementation("androidx.annotation:annotation:1.7.0")
-    implementation(libs.kspApi)
     implementation(libs.kotlinPoet)
     implementation(libs.kotlinReflect, {
         exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib"
@@ -48,11 +49,11 @@
 
     testImplementationAarAsJar(project(":appfunctions:appfunctions-common"))
     testImplementationAarAsJar(project(":appfunctions:appfunctions-runtime"))
-    testImplementation(SdkHelperKt.getSdkDependency(project))
-    testImplementation(libs.googleCompileTesting)
     testImplementation(project(":room:room-compiler-processing-testing"))
     testImplementation(libs.junit)
     testImplementation(libs.truth)
+
+    testRuntimeOnly(SdkHelperKt.getSdkDependency(project))
 }
 
 def testGeneratedSourcesPath = "${layout.buildDirectory.get().asFile}/testGeneratedSources"
diff --git a/appfunctions/appfunctions-runtime/build.gradle b/appfunctions/appfunctions-runtime/build.gradle
index 47c43fc..42fabd3 100644
--- a/appfunctions/appfunctions-runtime/build.gradle
+++ b/appfunctions/appfunctions-runtime/build.gradle
@@ -31,16 +31,13 @@
 
 dependencies {
     api(libs.kotlinStdlib)
+    api(libs.kotlinCoroutinesAndroid)
+    api project(":appfunctions:appfunctions-common")
 
     // Internal dependencies
-    implementation("androidx.appsearch:appsearch:1.1.0-alpha07")
-    implementation("androidx.appsearch:appsearch-platform-storage:1.1.0-alpha07")
-    implementation(libs.kotlinCoroutinesAndroid)
+    implementation("androidx.appsearch:appsearch:1.1.0-beta01")
+    implementation("androidx.appsearch:appsearch-platform-storage:1.1.0-beta01")
     implementation("androidx.annotation:annotation:1.9.0-rc01")
-    implementation project(":appfunctions:appfunctions-common")
-    implementation(libs.kotlinCoroutinesAndroid)
-    // Compile only dependencies
-    compileOnly(project(":appfunctions:appfunctions-stubs"))
 
     // Compile only dependencies
     compileOnly(project(":appfunctions:appfunctions-stubs"))
@@ -53,12 +50,14 @@
     androidTestCompileOnly(project(":appfunctions:appfunctions-stubs"))
     androidTestImplementation("androidx.appsearch:appsearch:1.1.0-alpha07")
     androidTestImplementation("androidx.appsearch:appsearch-platform-storage:1.1.0-alpha07")
-    androidTestImplementation(libs.testCore)
-    androidTestImplementation(libs.testRules)
     androidTestImplementation(libs.junit)
     androidTestImplementation(libs.truth)
     androidTestImplementation(libs.kotlinCoroutinesTest)
     androidTestImplementation(libs.testParameterInjector)
+    androidTestImplementation('androidx.concurrent:concurrent-futures-ktx:1.1.0')
+    androidTestImplementation(libs.guavaAndroid)
+    androidTestImplementation(libs.testMonitor)
+    androidTestImplementation(libs.testRunner)
 }
 
 android {