summaryrefslogtreecommitdiff
path: root/android/sdk.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-05-16 13:10:47 +0000
committer Paul Duffin <paulduffin@google.com> 2022-05-16 17:09:10 +0000
commit958806b8c846a5c37830721d82e2d2adb9e7dc16 (patch)
tree943592cded1980c9a5b32594faeeb2b6eb2b3f63 /android/sdk.go
parent4dd76eb26c6f673a85d1c33c504e3beb1324bcdb (diff)
Add custom java_sdk_library info to the SDK info file
Previously the SDK info file only contained basic common information about each member. This change adds support for each member to provide custom information to add to the info file. It uses that mechanism to add the following: * "dist_stem" * "scopes" object containing: * for each scope a: "<scope>" object containing: * "current_api" - the path within the snapshot for the API's .txt file. * "removed_api" - the path within the snapshot for the removed API's .txt file. * "latest_api" - the path within the build to the latest finalized API .txt file. * "latest_removed_api" - the path within the build to the latest finalized removed API .txt file. In order to access the latest API files it was necessary to add and resolve dependencies on the module that makes them available. In order to do that safely the code for creating the names of the modules was refactored to avoid duplicating the name creation logic. Bug: 204763318 Test: m nothing Change-Id: Ica68abbd2b2c7c2b2b7877b502f96cc89f06fd68
Diffstat (limited to 'android/sdk.go')
-rw-r--r--android/sdk.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/android/sdk.go b/android/sdk.go
index 3a5624030..9317910ee 100644
--- a/android/sdk.go
+++ b/android/sdk.go
@@ -961,3 +961,10 @@ type ExportedComponentsInfo struct {
}
var ExportedComponentsInfoProvider = blueprint.NewProvider(ExportedComponentsInfo{})
+
+// AdditionalSdkInfo contains additional properties to add to the generated SDK info file.
+type AdditionalSdkInfo struct {
+ Properties map[string]interface{}
+}
+
+var AdditionalSdkInfoProvider = blueprint.NewProvider(AdditionalSdkInfo{})