Create androidx.wear:wear-core library
Create a wear-core library for common utilities & helpers for other Wear androidx libraries.
Test: N/A
Relnote: Initial library creation of Wear Core
Change-Id: Ie72e95f28acafedd0c19f551d8844eae973de574
diff --git a/docs-tip-of-tree/build.gradle b/docs-tip-of-tree/build.gradle
index e9596b8..5960100 100644
--- a/docs-tip-of-tree/build.gradle
+++ b/docs-tip-of-tree/build.gradle
@@ -416,6 +416,7 @@
samples(project(":wear:watchface:watchface-samples"))
docs(project(":wear:watchface:watchface-style"))
docs(project(":wear:wear"))
+ docs(project(":wear:wear-core"))
stubs(fileTree(dir: "../wear/wear_stubs/", include: ["com.google.android.wearable-stubs.jar"]))
docs(project(":wear:wear-input"))
samples(project(":wear:wear-input-samples"))
diff --git a/libraryversions.toml b/libraryversions.toml
index 1bbed7a..126a39e 100644
--- a/libraryversions.toml
+++ b/libraryversions.toml
@@ -156,6 +156,7 @@
WEAR = "1.4.0-alpha01"
WEAR_COMPOSE = "1.4.0-alpha05"
WEAR_COMPOSE_MATERIAL3 = "1.0.0-alpha20"
+WEAR_CORE = "1.0.0-alpha01"
WEAR_INPUT = "1.2.0-alpha03"
WEAR_INPUT_TESTING = "1.2.0-alpha03"
WEAR_ONGOING = "1.1.0-alpha02"
diff --git a/settings.gradle b/settings.gradle
index 9058003..269e679 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1008,6 +1008,7 @@
includeProject(":wear:compose:integration-tests:macrobenchmark", [BuildType.COMPOSE])
includeProject(":wear:compose:integration-tests:macrobenchmark-target", [BuildType.COMPOSE])
includeProject(":wear:compose:integration-tests:navigation", [BuildType.COMPOSE])
+includeProject(":wear:wear-core", [BuildType.MAIN, BuildType.WEAR])
includeProject(":wear:wear-input", [BuildType.MAIN, BuildType.WEAR])
includeProject(":wear:wear-input-samples", "wear/wear-input/samples", [BuildType.MAIN, BuildType.WEAR])
includeProject(":wear:wear-input-testing", [BuildType.MAIN, BuildType.WEAR])
diff --git a/wear/wear-core/api/current.txt b/wear/wear-core/api/current.txt
new file mode 100644
index 0000000..e6f50d0
--- /dev/null
+++ b/wear/wear-core/api/current.txt
@@ -0,0 +1 @@
+// Signature format: 4.0
diff --git a/wear/wear-core/api/res-current.txt b/wear/wear-core/api/res-current.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/wear/wear-core/api/res-current.txt
diff --git a/wear/wear-core/api/restricted_current.txt b/wear/wear-core/api/restricted_current.txt
new file mode 100644
index 0000000..e6f50d0
--- /dev/null
+++ b/wear/wear-core/api/restricted_current.txt
@@ -0,0 +1 @@
+// Signature format: 4.0
diff --git a/wear/wear-core/build.gradle b/wear/wear-core/build.gradle
new file mode 100644
index 0000000..402a820
--- /dev/null
+++ b/wear/wear-core/build.gradle
@@ -0,0 +1,47 @@
+/*
+ * Copyright (C) 2024 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This file was created using the `create_project.py` script located in the
+ * `<AndroidX root>/development/project-creator` directory.
+ *
+ * Please use that script when creating a new project, rather than copying an existing project and
+ * modifying its settings.
+ */
+import androidx.build.LibraryType
+
+plugins {
+ id("AndroidXPlugin")
+ id("com.android.library")
+ id("org.jetbrains.kotlin.android")
+}
+
+dependencies {
+ api(libs.kotlinStdlib)
+ // Add dependencies here
+}
+
+android {
+ namespace "androidx.wear.core"
+}
+
+androidx {
+ name = "Android Wear Core"
+ type = LibraryType.PUBLISHED_LIBRARY
+ mavenVersion = LibraryVersions.WEAR_CORE
+ inceptionYear = "2024"
+ description = "Low-level utilities for building apps and libraries for Wear OS."
+}
diff --git a/wear/wear-core/src/main/java/androidx/wear/androidx-wear-wear-core-documentation.md b/wear/wear-core/src/main/java/androidx/wear/androidx-wear-wear-core-documentation.md
new file mode 100644
index 0000000..62b25e9
--- /dev/null
+++ b/wear/wear-core/src/main/java/androidx/wear/androidx-wear-wear-core-documentation.md
@@ -0,0 +1,7 @@
+# Module root
+
+androidx.wear wear-core
+
+# Package androidx.wear.core
+
+This package provides low level helpers and utilities for building Wear OS apps and libraries.