Used lazy value of base class not to load properties from manifest twice (#4487)

This commit is contained in:
LepilkinaElena
2020-11-01 09:06:01 +03:00
committed by Stanislav Erokhin
parent c28fd8e980
commit 26ccdbdc18
@@ -42,9 +42,7 @@ open class TargetedLibraryImpl(
}
override val manifestProperties: Properties by lazy {
val properties = access.inPlace {
it.manifestFile.loadProperties()
}
val properties = base.manifestProperties
target?.let { substitute(properties, defaultTargetSubstitutions(it)) }
properties
}