Skip to content

Commit

Permalink
Removes remaining androidx.ui references
Browse files Browse the repository at this point in the history
- Moves ui:ui-animation-tooling-internal to compose:animation:animation-tooling-internal
- Renames AndroidXUiPlugin to AndroidXComposePlugin
- Miscellaneous other fixes

Bug: b/160233169
Test: bOS
Relnote: N/A
Change-Id: I8d5fe2873ff2befef04d646fd45fa93dc9c90398
  • Loading branch information
Louis Pullen-Freilich committed Jun 4, 2021
1 parent 3845482 commit c8a26b8
Show file tree
Hide file tree
Showing 141 changed files with 231 additions and 346 deletions.
2 changes: 1 addition & 1 deletion activity/activity-compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import androidx.build.RunApiTasks
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import androidx.build.Publish
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}

Expand Down
2 changes: 1 addition & 1 deletion activity/activity-compose/samples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import androidx.build.LibraryType
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}

Expand Down
6 changes: 3 additions & 3 deletions androidx-plugin/gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ gradlePlugin {
id = "AndroidXPlugin"
implementationClass = "androidx.build.AndroidXPlugin"
}
AndroidXUiPlugin {
id = "AndroidXUiPlugin"
implementationClass = "androidx.build.AndroidXUiPlugin"
AndroidXComposePlugin {
id = "AndroidXComposePlugin"
implementationClass = "androidx.build.AndroidXComposePlugin"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ android {
testInstrumentationRunnerArgument "cpuusage-collector:disable_per_pkg", "true"

// TotalPssMetricListener
testInstrumentationRunnerArgument "totalpss-collector:process-names", "androidx.ui.demos"
testInstrumentationRunnerArgument "totalpss-collector:process-names", "androidx.compose.integration.demos"

// JankListener (disable)
testInstrumentationRunnerArgument "jank-listener:log", "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ const val composeSourceOption =
"plugin:androidx.compose.compiler.plugins.kotlin:sourceInformation=true"

/**
* Plugin to apply options across all of the androidx.ui projects
* Plugin to apply common configuration for Compose projects.
*/
class AndroidXUiPlugin : Plugin<Project> {
class AndroidXComposePlugin : Plugin<Project> {
override fun apply(project: Project) {
project.plugins.all { plugin ->
when (plugin) {
Expand Down
1 change: 0 additions & 1 deletion buildSrc/src/main/kotlin/androidx/build/LibraryGroups.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ object LibraryGroups {
val TRACING = LibraryGroup("androidx.tracing", LibraryVersions.TRACING)
val TRANSITION = LibraryGroup("androidx.transition", LibraryVersions.TRANSITION)
val TVPROVIDER = LibraryGroup("androidx.tvprovider", LibraryVersions.TVPROVIDER)
val UI = LibraryGroup(System.getenv("COMPOSE_CUSTOM_GROUP_UI") ?: "androidx.ui", LibraryVersions.COMPOSE)
val VECTORDRAWABLE = LibraryGroup("androidx.vectordrawable", null)
val VERSIONEDPARCELABLE = LibraryGroup("androidx.versionedparcelable", null)
val VIEWPAGER = LibraryGroup("androidx.viewpager", LibraryVersions.VIEWPAGER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package androidx.build

import androidx.build.AndroidXUiPlugin.Companion.isMultiplatformEnabled
import androidx.build.AndroidXComposePlugin.Companion.isMultiplatformEnabled
import com.android.build.gradle.LibraryPlugin
import groovy.util.Node
import org.gradle.api.GradleException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# limitations under the License.
#

implementation-class=androidx.build.AndroidXUiPlugin
implementation-class=androidx.build.AndroidXComposePlugin
2 changes: 1 addition & 1 deletion compose/animation/animation-core/benchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
id("androidx.benchmark")
}
Expand Down
10 changes: 5 additions & 5 deletions compose/animation/animation-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@
*/


import androidx.build.AndroidXUiPlugin
import androidx.build.AndroidXComposePlugin
import androidx.build.LibraryGroups
import androidx.build.LibraryType
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
}

AndroidXUiPlugin.applyAndConfigureKotlinPlugin(project)
AndroidXComposePlugin.applyAndConfigureKotlinPlugin(project)

dependencies {
kotlinPlugin(project(":compose:compiler:compiler"))

if (!AndroidXUiPlugin.isMultiplatformEnabled(project)) {
if (!AndroidXComposePlugin.isMultiplatformEnabled(project)) {
/*
* When updating dependencies, make sure to make the an an analogous update in the
* corresponding block below
Expand Down Expand Up @@ -63,7 +63,7 @@ dependencies {
}
}

if (AndroidXUiPlugin.isMultiplatformEnabled(project)) {
if (AndroidXComposePlugin.isMultiplatformEnabled(project)) {
kotlin {
android()
jvm("desktop")
Expand Down
2 changes: 1 addition & 1 deletion compose/animation/animation-core/samples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import androidx.build.LibraryType
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ androidx {
name = "Compose Animation Tooling"
description = "Compose Animation APIs for tooling support. Internal use only."
publish = Publish.SNAPSHOT_ONLY
mavenGroup = LibraryGroups.UI
mavenGroup = LibraryGroups.Compose.ANIMATION
runApiTasks = new RunApiTasks.Yes()
}
10 changes: 5 additions & 5 deletions compose/animation/animation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
*/


import androidx.build.AndroidXUiPlugin
import androidx.build.AndroidXComposePlugin
import androidx.build.LibraryGroups
import androidx.build.LibraryType

plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
}

AndroidXUiPlugin.applyAndConfigureKotlinPlugin(project)
AndroidXComposePlugin.applyAndConfigureKotlinPlugin(project)

dependencies {
kotlinPlugin(project(":compose:compiler:compiler"))

if(!AndroidXUiPlugin.isMultiplatformEnabled(project)) {
if(!AndroidXComposePlugin.isMultiplatformEnabled(project)) {
/*
* When updating dependencies, make sure to make the an an analogous update in the
* corresponding block below
Expand Down Expand Up @@ -61,7 +61,7 @@ dependencies {
}
}

if(AndroidXUiPlugin.isMultiplatformEnabled(project)) {
if(AndroidXComposePlugin.isMultiplatformEnabled(project)) {
kotlin {
android()
jvm("desktop")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}

Expand Down
2 changes: 1 addition & 1 deletion compose/animation/animation/samples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import androidx.build.LibraryType
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}

Expand Down
2 changes: 1 addition & 1 deletion compose/benchmark-utils/benchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import static androidx.build.dependencies.DependenciesKt.*
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
id("androidx.benchmark")
}
Expand Down
4 changes: 2 additions & 2 deletions compose/benchmark-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
*/


import androidx.build.AndroidXUiPlugin
import androidx.build.AndroidXComposePlugin

import static androidx.build.dependencies.DependenciesKt.*

plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3337,7 +3337,6 @@ class ComposableFunctionBodyTransformer(
builder.append(
it.asString()
.replacePrefix("androidx.compose.", "c#")
.replacePrefix("androidx.ui.", "u#")
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion compose/desktop/desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import static androidx.build.dependencies.DependenciesKt.*

plugins {
id("AndroidXPlugin")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("kotlin-multiplatform")
}

Expand Down
2 changes: 1 addition & 1 deletion compose/desktop/desktop/samples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import static androidx.build.dependencies.DependenciesKt.*

plugins {
id("AndroidXPlugin")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("kotlin-multiplatform")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package androidx.ui.desktop
package androidx.compose.desktop

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
id("androidx.benchmark")
}
Expand Down
10 changes: 5 additions & 5 deletions compose/foundation/foundation-layout/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
* limitations under the License.
*/

import androidx.build.AndroidXUiPlugin
import androidx.build.AndroidXComposePlugin
import androidx.build.LibraryGroups
import androidx.build.LibraryType

plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
}

AndroidXUiPlugin.applyAndConfigureKotlinPlugin(project)
AndroidXComposePlugin.applyAndConfigureKotlinPlugin(project)

dependencies {
kotlinPlugin(project(":compose:compiler:compiler"))

if(!AndroidXUiPlugin.isMultiplatformEnabled(project)) {
if(!AndroidXComposePlugin.isMultiplatformEnabled(project)) {
/*
* When updating dependencies, make sure to make the an an analogous update in the
* corresponding block below
Expand Down Expand Up @@ -57,7 +57,7 @@ dependencies {
}
}

if(AndroidXUiPlugin.isMultiplatformEnabled(project)) {
if(AndroidXComposePlugin.isMultiplatformEnabled(project)) {
kotlin {
android()
jvm("desktop")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}

Expand Down
2 changes: 1 addition & 1 deletion compose/foundation/foundation-layout/samples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import androidx.build.LibraryType
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}

Expand Down
2 changes: 1 addition & 1 deletion compose/foundation/foundation/benchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
id("androidx.benchmark")
}
Expand Down
10 changes: 5 additions & 5 deletions compose/foundation/foundation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import androidx.build.AndroidXUiPlugin
import androidx.build.AndroidXComposePlugin
import androidx.build.LibraryGroups
import androidx.build.LibraryType
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Expand All @@ -24,15 +24,15 @@ import static androidx.build.dependencies.DependenciesKt.SKIKO_CURRENT_OS
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
}

AndroidXUiPlugin.applyAndConfigureKotlinPlugin(project)
AndroidXComposePlugin.applyAndConfigureKotlinPlugin(project)

dependencies {
kotlinPlugin(project(":compose:compiler:compiler"))

if(!AndroidXUiPlugin.isMultiplatformEnabled(project)) {
if(!AndroidXComposePlugin.isMultiplatformEnabled(project)) {
/*
* When updating dependencies, make sure to make the an an analogous update in the
* corresponding block above
Expand Down Expand Up @@ -73,7 +73,7 @@ dependencies {
}
}

if(AndroidXUiPlugin.isMultiplatformEnabled(project)) {
if(AndroidXComposePlugin.isMultiplatformEnabled(project)) {
kotlin {
android()
jvm("desktop")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}

Expand Down
2 changes: 1 addition & 1 deletion compose/foundation/foundation/samples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import androidx.build.LibraryType
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXUiPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}

Expand Down
8 changes: 0 additions & 8 deletions compose/integration-tests/OWNERS

This file was deleted.

Loading

0 comments on commit c8a26b8

Please sign in to comment.