Skip to content

Commit

Permalink
Got rid of delegation in library impl hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-gorshenev authored and homuroll committed Jun 13, 2019
1 parent b49b0be commit da11ab8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ private class FromZipBitcodeLibraryImpl(zipped: BitcodeLibraryLayoutImpl, zipFil
FromZipTargetedLibraryImpl(zipped, zipFileSystem), BitcodeKotlinLibraryLayout

open class ExtractingTargetedLibraryImpl(zipped: TargetedLibraryLayoutImpl) :
KotlinLibraryExtractor(zipped),
TargetedKotlinLibraryLayout by zipped {
ExtractingKotlinLibraryLayout(zipped),
TargetedKotlinLibraryLayout {

override val includedDir: File by lazy { extractDir(zipped.includedDir) }
override val includedDir: File by lazy { zipped.extractDir(zipped.includedDir) }
}

class ExtractingBitcodeLibraryImpl(zipped: BitcodeLibraryLayoutImpl) :
ExtractingTargetedLibraryImpl(zipped), BitcodeKotlinLibraryLayout {

override val kotlinDir: File by lazy { extractDir(zipped.kotlinDir) }
override val nativeDir: File by lazy { extractDir(zipped.nativeDir) }
override val kotlinDir: File by lazy { zipped.extractDir(zipped.kotlinDir) }
override val nativeDir: File by lazy { zipped.extractDir(zipped.nativeDir) }
}

0 comments on commit da11ab8

Please sign in to comment.