Skip to content

Commit

Permalink
Add missing @jvmoverloads. (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loic-Dumas committed Nov 29, 2023
1 parent 89bc7e9 commit f28db63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ object Config {

const val major = 0
const val minor = 7
const val patch = 6
const val patch = 7
const val versionName = "$major.$minor.$patch"

const val maven_group = "ch.srg.data.provider"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ import ch.srg.dataProvider.integrationlayer.data.ImageUrl
import ch.srg.dataProvider.integrationlayer.data.ImageUrlDecorator
import ch.srg.dataProvider.integrationlayer.request.IlHost

@JvmOverloads
fun ImageUrl.decorated(widthPixels: Int, ilHost: IlHost = IlHost.PROD): String {
return decorated(ImageUrlDecoratorInstances.getOrCreate(ilHost), widthPixels)
}

@JvmOverloads
fun ImageUrl.decorated(width: ImageWidth, ilHost: IlHost = IlHost.PROD): String {
return decorated(widthPixels = width.widthPixels, ilHost = ilHost)
}

@JvmOverloads
fun ImageUrl.decorated(imageSize: ImageSize, ilHost: IlHost = IlHost.PROD): String {
return decorated(width = imageSize.width, ilHost = ilHost)
}
Expand Down

0 comments on commit f28db63

Please sign in to comment.