Set type to PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS for published consumed only by Kotlin libs

This is so we can get libraryType.targetsKotlinConsumersOnly set to true for optimisation

BUG: 336352387

TESTED: compiled projects with type change and asserted that their value of libraryType.targetsKotlinConsumerOnly is true

Change-Id: I8293fb8e2b2cdc77a9e5e2a49d902b1ff0a37521
diff --git a/appsearch/appsearch-ktx/build.gradle b/appsearch/appsearch-ktx/build.gradle
index afd8740..e771a6d 100644
--- a/appsearch/appsearch-ktx/build.gradle
+++ b/appsearch/appsearch-ktx/build.gradle
@@ -21,7 +21,7 @@
  * Please use that script when creating a new project, rather than copying an existing project and
  * modifying its settings.
  */
-import androidx.build.Publish
+import androidx.build.LibraryType
 
 plugins {
     id('AndroidXPlugin')
@@ -45,7 +45,7 @@
 
 androidx {
     name = "AppSearch - Kotlin Extensions"
-    publish = Publish.SNAPSHOT_AND_RELEASE
+    type = LibraryType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
     inceptionYear = '2021'
     description = 'AndroidX AppSearch - Kotlin Extensions'
     metalavaK2UastEnabled = true