Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a1747d8 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Rename SystemUIComposeCore to PlatformComposeCore (1/2)

This CL renames the SystemUIComposeCore library to PlatformComposeCore
and moves all com.android.systemui.compose.* files to
com.android.compose.

The files will still be in
frameworks/base/packages/SystemUI/compose/core/ after this CL, and I
will move them in a follow-up CL.

Bug: 263851158
Test: Builds & presubmits
Change-Id: I31776ae19de7f64f7697f3b4af55f2d97c3fc733
parent d5a4b9e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -60,7 +60,7 @@ systemui_compose_java_defaults {
            // except for SystemUI-core.
            // except for SystemUI-core.
            // Copied from compose/features/Android.bp.
            // Copied from compose/features/Android.bp.
            static_libs: [
            static_libs: [
                "SystemUIComposeCore",
                "PlatformComposeCore",


                "androidx.compose.runtime_runtime",
                "androidx.compose.runtime_runtime",
                "androidx.compose.material3_material3",
                "androidx.compose.material3_material3",
+1 −1
Original line number Original line Diff line number Diff line
@@ -22,7 +22,7 @@ package {
}
}


android_library {
android_library {
    name: "SystemUIComposeCore",
    name: "PlatformComposeCore",
    manifest: "AndroidManifest.xml",
    manifest: "AndroidManifest.xml",


    srcs: [
    srcs: [
+1 −1
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@
-->
-->


<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.systemui.compose.core">
    package="com.android.compose.core">




</manifest>
</manifest>
+1 −1
Original line number Original line Diff line number Diff line
{
{
  "presubmit": [
  "presubmit": [
    {
    {
      "name": "SystemUIComposeCoreTests",
      "name": "PlatformComposeCoreTests",
      "options": [
      "options": [
        {
        {
          "exclude-annotation": "org.junit.Ignore"
          "exclude-annotation": "org.junit.Ignore"
+5 −5
Original line number Original line Diff line number Diff line
@@ -15,7 +15,7 @@
 *
 *
 */
 */


package com.android.systemui.compose
package com.android.compose


import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.PaddingValues
@@ -27,10 +27,10 @@ import androidx.compose.material3.ButtonDefaults
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.dp
import com.android.systemui.compose.theme.LocalAndroidColorScheme
import com.android.compose.theme.LocalAndroidColorScheme


@Composable
@Composable
fun SysUiButton(
fun PlatformButton(
    onClick: () -> Unit,
    onClick: () -> Unit,
    modifier: Modifier = Modifier,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    enabled: Boolean = true,
@@ -48,7 +48,7 @@ fun SysUiButton(
}
}


@Composable
@Composable
fun SysUiOutlinedButton(
fun PlatformOutlinedButton(
    onClick: () -> Unit,
    onClick: () -> Unit,
    modifier: Modifier = Modifier,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    enabled: Boolean = true,
@@ -67,7 +67,7 @@ fun SysUiOutlinedButton(
}
}


@Composable
@Composable
fun SysUiTextButton(
fun PlatformTextButton(
    onClick: () -> Unit,
    onClick: () -> Unit,
    modifier: Modifier = Modifier,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    enabled: Boolean = true,
Loading