diff options
author | Colin Cross <ccross@android.com> | 2019-02-21 18:12:14 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-03-20 19:29:59 +0000 |
commit | 42be761ebdc3ba35bc4f7851c20d50e2acd23fde (patch) | |
tree | 64b733bf1ad1eb4105d935809388f82e8d8ef845 /java/dexpreopt_bootjars.go | |
parent | 1b781e52e2820d5c4e923844397c010a9e97e1d3 (diff) | |
download | build_soong-42be761ebdc3ba35bc4f7851c20d50e2acd23fde.tar.gz build_soong-42be761ebdc3ba35bc4f7851c20d50e2acd23fde.tar.bz2 build_soong-42be761ebdc3ba35bc4f7851c20d50e2acd23fde.zip |
Add dex_import module type
Add a module type for importing a prebuilt jar that contains
classes.dex files.
Test: m with a prebuilt jar that contains classes.dex files in
PRODUCT_BOOT_JARS
Test: java_test.go, dexpreopt_test.go, dexpreopt_bootjars_test.go
Bug: 124804356
Bug: 125517186
Change-Id: I496848f9dca11f758d49b1cb68168cec7f8e1718
Diffstat (limited to 'java/dexpreopt_bootjars.go')
-rw-r--r-- | java/dexpreopt_bootjars.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/dexpreopt_bootjars.go b/java/dexpreopt_bootjars.go index 64de21a4..a23b477a 100644 --- a/java/dexpreopt_bootjars.go +++ b/java/dexpreopt_bootjars.go @@ -152,7 +152,7 @@ func buildBootImage(ctx android.SingletonContext, config bootImageConfig) *bootI ctx.VisitAllModules(func(module android.Module) { // Collect dex jar paths for the modules listed above. - if j, ok := module.(Dependency); ok { + if j, ok := module.(interface{ DexJar() android.Path }); ok { name := ctx.ModuleName(module) if i := android.IndexList(name, image.modules); i != -1 { bootDexJars[i] = j.DexJar() |