diff options
author | 2019-03-05 22:25:09 -0800 | |
---|---|---|
committer | 2019-03-20 19:36:13 +0000 | |
commit | 8a49795df1ed87a4889f267dbd8d28c5832bb897 (patch) | |
tree | e769fe1ab955ab4420d1edf68355c2ff9a4b470e /java/aar.go | |
parent | 07e51619a2752d6a36bd149c8938b5d7cae5baa7 (diff) |
Replace ctx.ExpandSources with android.PathsForModuleSrc
Move the logic from ctx.ExpandSources into android.PathsForModuleSrc
and ctx.ExpandSource into android.PathForModuleSrc, and deprecate
them. When combined with the pathDepsMutator this will let all
properties that take source paths also take filegroups or genrule
outputs, as long as they are tagged with `android:"path"`.
Test: All soong tests
Change-Id: I01625e76b5da19240e9649bf26a014eeeafcab8f
Diffstat (limited to 'java/aar.go')
-rw-r--r-- | java/aar.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/aar.go b/java/aar.go index 29578e218..1a5ea4d2a 100644 --- a/java/aar.go +++ b/java/aar.go @@ -130,7 +130,7 @@ func (a *aapt) aapt2Flags(ctx android.ModuleContext, sdkContext sdkContext, mani // Find implicit or explicit asset and resource dirs assetDirs := android.PathsWithOptionalDefaultForModuleSrc(ctx, a.aaptProperties.Asset_dirs, "assets") resourceDirs := android.PathsWithOptionalDefaultForModuleSrc(ctx, a.aaptProperties.Resource_dirs, "res") - resourceZips := ctx.ExpandSources(a.aaptProperties.Resource_zips, nil) + resourceZips := android.PathsForModuleSrc(ctx, a.aaptProperties.Resource_zips) var linkDeps android.Paths |