Merge "Add contribute_to_android_api property in java_sdk_library" into main am: 7fcb470251
am: 5c8f4f446d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2832851 Change-Id: I7bb18b0f9478983b45d9e9151676d9b8d4bef1f4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
eb07d02267
1 changed files with 11 additions and 0 deletions
|
@ -624,6 +624,13 @@ type sdkLibraryProperties struct {
|
||||||
Legacy_errors_allowed *bool
|
Legacy_errors_allowed *bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Determines if the module contributes to any api surfaces.
|
||||||
|
// This property should be set to true only if the module is listed under
|
||||||
|
// frameworks-base-api.bootclasspath in frameworks/base/api/Android.bp.
|
||||||
|
// Otherwise, this property should be set to false.
|
||||||
|
// Defaults to false.
|
||||||
|
Contribute_to_android_api *bool
|
||||||
|
|
||||||
// TODO: determines whether to create HTML doc or not
|
// TODO: determines whether to create HTML doc or not
|
||||||
// Html_doc *bool
|
// Html_doc *bool
|
||||||
}
|
}
|
||||||
|
@ -1966,6 +1973,10 @@ func (module *SdkLibrary) UniqueApexVariations() bool {
|
||||||
return module.uniqueApexVariations()
|
return module.uniqueApexVariations()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (module *SdkLibrary) ContributeToApi() bool {
|
||||||
|
return proptools.BoolDefault(module.sdkLibraryProperties.Contribute_to_android_api, false)
|
||||||
|
}
|
||||||
|
|
||||||
// Creates the xml file that publicizes the runtime library
|
// Creates the xml file that publicizes the runtime library
|
||||||
func (module *SdkLibrary) createXmlFile(mctx android.DefaultableHookContext) {
|
func (module *SdkLibrary) createXmlFile(mctx android.DefaultableHookContext) {
|
||||||
moduleMinApiLevel := module.Library.MinSdkVersion(mctx)
|
moduleMinApiLevel := module.Library.MinSdkVersion(mctx)
|
||||||
|
|
Loading…
Reference in a new issue