Introduce sdkruntime-provider library
Should be used as dependency for SDKs instead of sdkruntime-core
Test: Presubmit
Relnote: Introduce sdkruntime-provider library
Bug: 284295895
Change-Id: I935e204d2fdb6c85675924e38c7f7a377c785cfa
diff --git a/docs-tip-of-tree/build.gradle b/docs-tip-of-tree/build.gradle
index 2af5022..e6838d3 100644
--- a/docs-tip-of-tree/build.gradle
+++ b/docs-tip-of-tree/build.gradle
@@ -294,6 +294,7 @@
docs(project(":privacysandbox:ads:ads-adservices-java"))
docs(project(":privacysandbox:sdkruntime:sdkruntime-client"))
docs(project(":privacysandbox:sdkruntime:sdkruntime-core"))
+ docs(project(":privacysandbox:sdkruntime:sdkruntime-provider"))
docs(project(":privacysandbox:tools:tools"))
docs(project(":privacysandbox:ui:ui-client"))
docs(project(":privacysandbox:ui:ui-core"))
diff --git a/privacysandbox/sdkruntime/sdkruntime-client/build.gradle b/privacysandbox/sdkruntime/sdkruntime-client/build.gradle
index e8985b4..42da8b0 100644
--- a/privacysandbox/sdkruntime/sdkruntime-client/build.gradle
+++ b/privacysandbox/sdkruntime/sdkruntime-client/build.gradle
@@ -140,7 +140,7 @@
}
androidx {
- name = "androidx.privacysandbox.sdkruntime:sdkruntime-client"
+ name = "SdkRuntime Client"
type = LibraryType.PUBLISHED_LIBRARY
inceptionYear = "2022"
description = "Provides components for SdkRuntime aware Applications"
diff --git a/privacysandbox/sdkruntime/sdkruntime-core/build.gradle b/privacysandbox/sdkruntime/sdkruntime-core/build.gradle
index 2d6f9b2..3185bbd 100644
--- a/privacysandbox/sdkruntime/sdkruntime-core/build.gradle
+++ b/privacysandbox/sdkruntime/sdkruntime-core/build.gradle
@@ -51,9 +51,9 @@
}
androidx {
- name = "androidx.privacysandbox.sdkruntime:sdkruntime-core"
+ name = "SdkRuntime Core"
type = LibraryType.PUBLISHED_LIBRARY
inceptionYear = "2022"
- description = "Provides components for SdkRuntime aware SDKs"
+ description = "Provides shared components for SdkRuntime libraries"
metalavaK2UastEnabled = true
}
diff --git a/privacysandbox/sdkruntime/sdkruntime-core/src/main/java/androidx/privacysandbox/sdkruntime/core/androidx-privacysandbox-sdkruntime-sdkruntime-core-documentation.md b/privacysandbox/sdkruntime/sdkruntime-core/src/main/java/androidx/privacysandbox/sdkruntime/core/androidx-privacysandbox-sdkruntime-sdkruntime-core-documentation.md
index 24cc6ec..6729e20 100644
--- a/privacysandbox/sdkruntime/sdkruntime-core/src/main/java/androidx/privacysandbox/sdkruntime/core/androidx-privacysandbox-sdkruntime-sdkruntime-core-documentation.md
+++ b/privacysandbox/sdkruntime/sdkruntime-core/src/main/java/androidx/privacysandbox/sdkruntime/core/androidx-privacysandbox-sdkruntime-sdkruntime-core-documentation.md
@@ -4,4 +4,4 @@
# Package androidx.privacysandbox.sdkruntime.core
-This package provides components for implementing SdkRuntime aware SDKs.
+This package provides shared components for implementing SdkRuntime aware Apps and SDKs.
diff --git a/privacysandbox/sdkruntime/sdkruntime-provider/api/current.txt b/privacysandbox/sdkruntime/sdkruntime-provider/api/current.txt
new file mode 100644
index 0000000..e6f50d0
--- /dev/null
+++ b/privacysandbox/sdkruntime/sdkruntime-provider/api/current.txt
@@ -0,0 +1 @@
+// Signature format: 4.0
diff --git a/privacysandbox/sdkruntime/sdkruntime-provider/api/res-current.txt b/privacysandbox/sdkruntime/sdkruntime-provider/api/res-current.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/privacysandbox/sdkruntime/sdkruntime-provider/api/res-current.txt
diff --git a/privacysandbox/sdkruntime/sdkruntime-provider/api/restricted_current.txt b/privacysandbox/sdkruntime/sdkruntime-provider/api/restricted_current.txt
new file mode 100644
index 0000000..e6f50d0
--- /dev/null
+++ b/privacysandbox/sdkruntime/sdkruntime-provider/api/restricted_current.txt
@@ -0,0 +1 @@
+// Signature format: 4.0
diff --git a/privacysandbox/sdkruntime/sdkruntime-provider/build.gradle b/privacysandbox/sdkruntime/sdkruntime-provider/build.gradle
new file mode 100644
index 0000000..02a5786
--- /dev/null
+++ b/privacysandbox/sdkruntime/sdkruntime-provider/build.gradle
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2023 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.
+ */
+
+import androidx.build.LibraryType
+
+plugins {
+ id("AndroidXPlugin")
+ id("com.android.library")
+ id("org.jetbrains.kotlin.android")
+}
+
+dependencies {
+ api project(path: ':privacysandbox:sdkruntime:sdkruntime-core')
+}
+
+android {
+ namespace "androidx.privacysandbox.sdkruntime.provider"
+}
+
+androidx {
+ name = "SdkRuntime Provider"
+ type = LibraryType.PUBLISHED_LIBRARY
+ inceptionYear = "2023"
+ description = "Provides components for SdkRuntime aware SDKs"
+}
diff --git a/privacysandbox/sdkruntime/sdkruntime-provider/src/main/java/androidx/privacysandbox/sdkruntime/provider/package-info.java b/privacysandbox/sdkruntime/sdkruntime-provider/src/main/java/androidx/privacysandbox/sdkruntime/provider/package-info.java
new file mode 100644
index 0000000..e0778fd
--- /dev/null
+++ b/privacysandbox/sdkruntime/sdkruntime-provider/src/main/java/androidx/privacysandbox/sdkruntime/provider/package-info.java
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2023 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 package provides components for implementing SdkRuntime aware SDKs.
+ */
+package androidx.privacysandbox.sdkruntime.provider;
diff --git a/settings.gradle b/settings.gradle
index 604404e..07f626d 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -909,6 +909,7 @@
includeProject(":privacysandbox:plugins:plugins-privacysandbox-library", [BuildType.MAIN])
includeProject(":privacysandbox:sdkruntime:sdkruntime-client", [BuildType.MAIN])
includeProject(":privacysandbox:sdkruntime:sdkruntime-core", [BuildType.MAIN])
+includeProject(":privacysandbox:sdkruntime:sdkruntime-provider", [BuildType.MAIN])
includeProject(":privacysandbox:sdkruntime:test-sdks:current", [BuildType.MAIN])
includeProject(":privacysandbox:sdkruntime:test-sdks:v1", [BuildType.MAIN])
includeProject(":privacysandbox:sdkruntime:test-sdks:v2", [BuildType.MAIN])