Remove support for removed_dex_api_filename
Nothing uses this argument anymore, so simplify the droidstubs code by removing the argument. Bug: 189426360 Test: m Change-Id: I0e4b84d73a954b3819db1149be3da287cf604eec
This commit is contained in:
@@ -51,7 +51,6 @@ type Droidstubs struct {
|
|||||||
lastReleasedApiXmlFile android.WritablePath
|
lastReleasedApiXmlFile android.WritablePath
|
||||||
privateApiFile android.WritablePath
|
privateApiFile android.WritablePath
|
||||||
removedApiFile android.WritablePath
|
removedApiFile android.WritablePath
|
||||||
removedDexApiFile android.WritablePath
|
|
||||||
nullabilityWarningsFile android.WritablePath
|
nullabilityWarningsFile android.WritablePath
|
||||||
|
|
||||||
checkCurrentApiTimestamp android.WritablePath
|
checkCurrentApiTimestamp android.WritablePath
|
||||||
@@ -79,9 +78,6 @@ type DroidstubsProperties struct {
|
|||||||
// the generated removed API filename by Metalava, defaults to <module>_removed.txt
|
// the generated removed API filename by Metalava, defaults to <module>_removed.txt
|
||||||
Removed_api_filename *string
|
Removed_api_filename *string
|
||||||
|
|
||||||
// the generated removed Dex API filename by Metalava.
|
|
||||||
Removed_dex_api_filename *string
|
|
||||||
|
|
||||||
Check_api struct {
|
Check_api struct {
|
||||||
Last_released ApiToCheck
|
Last_released ApiToCheck
|
||||||
|
|
||||||
@@ -274,11 +270,6 @@ func (d *Droidstubs) stubsFlags(ctx android.ModuleContext, cmd *android.RuleBuil
|
|||||||
d.removedApiFilePath = android.PathForModuleSrc(ctx, sourceRemovedApiFile)
|
d.removedApiFilePath = android.PathForModuleSrc(ctx, sourceRemovedApiFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
if String(d.properties.Removed_dex_api_filename) != "" {
|
|
||||||
d.removedDexApiFile = android.PathForModuleOut(ctx, "metalava", String(d.properties.Removed_dex_api_filename))
|
|
||||||
cmd.FlagWithOutput("--removed-dex-api ", d.removedDexApiFile)
|
|
||||||
}
|
|
||||||
|
|
||||||
if Bool(d.properties.Write_sdk_values) {
|
if Bool(d.properties.Write_sdk_values) {
|
||||||
d.metadataDir = android.PathForModuleOut(ctx, "metalava", "metadata")
|
d.metadataDir = android.PathForModuleOut(ctx, "metalava", "metadata")
|
||||||
cmd.FlagWithArg("--sdk-values ", d.metadataDir.String())
|
cmd.FlagWithArg("--sdk-values ", d.metadataDir.String())
|
||||||
|
Reference in New Issue
Block a user