Create security-state folder
Test: build with ./gradlew security:security-state:assemble
Relnote: N/A
Change-Id: If2329406fdd0d4e6aa5dcc6006cc96db07452061
diff --git a/docs-tip-of-tree/build.gradle b/docs-tip-of-tree/build.gradle
index e9596b8..183343b 100644
--- a/docs-tip-of-tree/build.gradle
+++ b/docs-tip-of-tree/build.gradle
@@ -344,6 +344,7 @@
docs(project(":security:security-crypto-ktx"))
docs(project(":security:security-identity-credential"))
docs(project(":security:security-mls"))
+ docs(project(":security:security-state"))
docs(project(":sharetarget:sharetarget"))
docs(project(":slice:slice-builders"))
docs(project(":slice:slice-builders-ktx"))
diff --git a/libraryversions.toml b/libraryversions.toml
index 1bbed7a..5cf45d7c 100644
--- a/libraryversions.toml
+++ b/libraryversions.toml
@@ -127,6 +127,7 @@
SECURITY_BIOMETRIC = "1.0.0-alpha01"
SECURITY_IDENTITY_CREDENTIAL = "1.0.0-alpha04"
SECURITY_MLS = "1.0.0-alpha01"
+SECURITY_STATE = "1.0.0-alpha01"
SHARETARGET = "1.3.0-alpha01"
SLICE = "1.1.0-alpha03"
SLICE_BENCHMARK = "1.1.0-alpha03"
diff --git a/security/security-state/OWNERS b/security/security-state/OWNERS
new file mode 100644
index 0000000..68166b1
--- /dev/null
+++ b/security/security-state/OWNERS
@@ -0,0 +1,5 @@
+# Bug component: 1432820
[email protected]
[email protected]
[email protected]
[email protected]
diff --git a/security/security-state/api/current.txt b/security/security-state/api/current.txt
new file mode 100644
index 0000000..e6f50d0
--- /dev/null
+++ b/security/security-state/api/current.txt
@@ -0,0 +1 @@
+// Signature format: 4.0
diff --git a/security/security-state/api/res-current.txt b/security/security-state/api/res-current.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/security/security-state/api/res-current.txt
diff --git a/security/security-state/api/restricted_current.txt b/security/security-state/api/restricted_current.txt
new file mode 100644
index 0000000..e6f50d0
--- /dev/null
+++ b/security/security-state/api/restricted_current.txt
@@ -0,0 +1 @@
+// Signature format: 4.0
diff --git a/security/security-state/build.gradle b/security/security-state/build.gradle
new file mode 100644
index 0000000..c6874fe
--- /dev/null
+++ b/security/security-state/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.security.state"
+}
+
+androidx {
+ name = "androidx.security:security-state"
+ type = LibraryType.PUBLISHED_LIBRARY
+ mavenVersion = LibraryVersions.SECURITY_STATE
+ inceptionYear = "2024"
+ description = "obtain security state of updateable components."
+}
diff --git a/security/security-state/src/main/java/androidx/security/androidx-security-security-state-documentation.md b/security/security-state/src/main/java/androidx/security/androidx-security-security-state-documentation.md
new file mode 100644
index 0000000..1193a35
--- /dev/null
+++ b/security/security-state/src/main/java/androidx/security/androidx-security-security-state-documentation.md
@@ -0,0 +1,7 @@
+# Module root
+
+android.security security-state
+
+# Package androidx.security.state
+
+This library makes it easy for developers to obtain detailed security state of updatable components.
diff --git a/settings.gradle b/settings.gradle
index 9058003..bcfaa79 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -921,6 +921,7 @@
includeProject(":security:security-crypto-ktx", [BuildType.MAIN])
includeProject(":security:security-identity-credential", [BuildType.MAIN])
includeProject(":security:security-mls", [BuildType.MAIN])
+includeProject(":security:security-state", [BuildType.MAIN])
includeProject(":sharetarget:integration-tests:testapp", [BuildType.MAIN])
includeProject(":sharetarget:sharetarget", [BuildType.MAIN])
includeProject(":slice:slice-benchmark", [BuildType.MAIN])