Add Glance preview module

Move glance preview annotation from a surface specific to a single common
glance annotation following the discussion in
go/glance-preview-indication.

Bug: 228423246
Fixes: 239427638
Relnote: new api for Glance preview
Test: all tests should pass
Change-Id: I75666dc249be014257d6c1f557d7ebcfb9cb2cfd
diff --git a/glance/glance-preview/build.gradle b/glance/glance-preview/build.gradle
new file mode 100644
index 0000000..ce67185
--- /dev/null
+++ b/glance/glance-preview/build.gradle
@@ -0,0 +1,33 @@
+import androidx.build.AndroidXComposePlugin
+import androidx.build.LibraryType
+
+plugins {
+    id("AndroidXComposePlugin")
+    id("AndroidXPlugin")
+    id("com.android.library")
+}
+
+// Disable multi-platform; this will only be used on Android.
+AndroidXComposePlugin.applyAndConfigureKotlinPlugin(project, /* isMultiplatformEnabled= */false)
+
+dependencies {
+    implementation(libs.kotlinStdlib)
+    api("androidx.annotation:annotation:1.4.0")
+    api("androidx.compose.runtime:runtime:1.1.1")
+}
+
+android {
+    defaultConfig {
+        minSdkVersion 21
+    }
+    namespace "androidx.glance.preview"
+}
+
+androidx {
+    name = "Android Glance Preview"
+    type = LibraryType.PUBLISHED_LIBRARY
+    mavenGroup = LibraryGroups.GLANCE
+    inceptionYear = "2022"
+    description = "Glance preview library. This library provides the API required for marking the" +
+            "glance @Composable components that should have preview in the Android Studio."
+}