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/navigation/navigation-runtime-ktx/build.gradle b/navigation/navigation-runtime-ktx/build.gradle
index 93fa350..36897df 100644
--- a/navigation/navigation-runtime-ktx/build.gradle
+++ b/navigation/navigation-runtime-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")
@@ -38,7 +38,7 @@
androidx {
name = "Navigation Runtime Kotlin Extensions"
- publish = Publish.SNAPSHOT_AND_RELEASE
+ type = LibraryType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
inceptionYear = "2018"
description = "Android Navigation-Runtime-Ktx"
metalavaK2UastEnabled = true