summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vinh Tran <vinhdaitran@google.com> 2022-04-14 20:25:11 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-04-14 20:25:11 +0000
commit08e0f9684185082bfc3bbd4ff914441889e20608 (patch)
tree3ff5412ee2de7cc89ce65a0c660044f2e28c63d6
parent7cd255fa8d6866454d51d7014451fc7b5c5b321c (diff)
parentce0781f8f53655f7e93e351267c24013be61b4a6 (diff)
Merge "Document AARImportProperties fields"
-rw-r--r--java/aar.go22
1 files changed, 16 insertions, 6 deletions
diff --git a/java/aar.go b/java/aar.go
index 8e1025361..00ff7e774 100644
--- a/java/aar.go
+++ b/java/aar.go
@@ -598,16 +598,26 @@ func AndroidLibraryFactory() android.Module {
// AAR (android library) prebuilts
//
+// Properties for android_library_import
type AARImportProperties struct {
+ // ARR (android library prebuilt) filepath. Exactly one ARR is required.
Aars []string `android:"path"`
-
- Sdk_version *string
+ // If not blank, set to the version of the sdk to compile against.
+ // Defaults to private.
+ // Values are of one of the following forms:
+ // 1) numerical API level, "current", "none", or "core_platform"
+ // 2) An SDK kind with an API level: "<sdk kind>_<API level>"
+ // See build/soong/android/sdk_version.go for the complete and up to date list of SDK kinds.
+ // If the SDK kind is empty, it will be set to public
+ Sdk_version *string
+ // If not blank, set the minimum version of the sdk that the compiled artifacts will run against.
+ // Defaults to sdk_version if not set. See sdk_version for possible values.
Min_sdk_version *string
-
+ // List of java static libraries that the included ARR (android library prebuilts) has dependencies to.
Static_libs []string
- Libs []string
-
- // if set to true, run Jetifier against .aar file. Defaults to false.
+ // List of java libraries that the included ARR (android library prebuilts) has dependencies to.
+ Libs []string
+ // If set to true, run Jetifier against .aar file. Defaults to false.
Jetifier *bool
}