Merge changes Ia106d48e,Ib6c0e778
* changes: Remove use of deprecated ExtractSourcesDeps Dedup path properties across property structs
This commit is contained in:
@@ -2040,7 +2040,7 @@ func ImportFactoryHost() android.Module {
|
||||
// dex_import module
|
||||
|
||||
type DexImportProperties struct {
|
||||
Jars []string
|
||||
Jars []string `android:"path"`
|
||||
}
|
||||
|
||||
type DexImport struct {
|
||||
@@ -2068,10 +2068,6 @@ func (j *DexImport) Name() string {
|
||||
return j.prebuilt.Name(j.ModuleBase.Name())
|
||||
}
|
||||
|
||||
func (j *DexImport) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
android.ExtractSourcesDeps(ctx, j.properties.Jars)
|
||||
}
|
||||
|
||||
func (j *DexImport) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
if len(j.properties.Jars) != 1 {
|
||||
ctx.PropertyErrorf("jars", "exactly one jar must be provided")
|
||||
|
Reference in New Issue
Block a user