Skip to content

Commit

Permalink
Fix imports for Compose beta08 (#2) by @vganin
Browse files Browse the repository at this point in the history
  • Loading branch information
vganin authored Jun 5, 2021
1 parent 18109b9 commit fd7944c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "br.com.devsrsouza"
version = "0.6.0"
version = "0.7.0"

repositories {
mavenCentral()
Expand Down Expand Up @@ -38,4 +38,4 @@ publishing {
from(components["kotlin"])
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ enum class PackageNames(val packageName: String) {
object ClassNames {
val Icons = PackageNames.MaterialIconsPackage.className("Icons")
val ImageVector = PackageNames.VectorPackage.className("ImageVector")
val PathFillType = PackageNames.GraphicsPackage.className("PathFillType")
val StrokeCap = PackageNames.GraphicsPackage.className("StrokeCap")
val StrokeJoin = PackageNames.GraphicsPackage.className("StrokeJoin")
val PathFillType = PackageNames.GraphicsPackage.className("PathFillType", CompanionImportName)
val StrokeCap = PackageNames.GraphicsPackage.className("StrokeCap", CompanionImportName)
val StrokeJoin = PackageNames.GraphicsPackage.className("StrokeJoin", CompanionImportName)
}

/**
Expand Down Expand Up @@ -71,3 +71,5 @@ object MemberNames {
* @return the [ClassName] of the given [classNames] inside this package.
*/
fun PackageNames.className(vararg classNames: String) = ClassName(this.packageName, *classNames)

private const val CompanionImportName = "Companion"

0 comments on commit fd7944c

Please sign in to comment.