diff --git a/buildSrc/src/main/kotlin/Config.kt b/buildSrc/src/main/kotlin/Config.kt index 738aea3..2964694 100644 --- a/buildSrc/src/main/kotlin/Config.kt +++ b/buildSrc/src/main/kotlin/Config.kt @@ -5,7 +5,7 @@ object Config { const val major = 0 const val minor = 7 - const val patch = 1 + const val patch = 2 const val versionName = "$major.$minor.$patch" const val maven_group = "ch.srg.data.provider" diff --git a/dataprovider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/image/ImageUrlExtension.kt b/dataprovider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/image/ImageUrlExtension.kt index 961722f..0776073 100644 --- a/dataprovider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/image/ImageUrlExtension.kt +++ b/dataprovider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/image/ImageUrlExtension.kt @@ -4,15 +4,18 @@ import ch.srg.dataProvider.integrationlayer.data.ImageUrl import ch.srg.dataProvider.integrationlayer.data.ImageUrlDecorator import ch.srg.dataProvider.integrationlayer.request.IlHost +@JvmOverloads fun ImageUrl.url(widthPixels: Int, ilHost: IlHost = IlHost.PROD): String { val decorator = ImageUrlDecoratorInstances.getInstance(ilHost) return url(decorator, widthPixels) } +@JvmOverloads fun ImageUrl.url(width: ImageWidth, ilHost: IlHost = IlHost.PROD): String { return url(widthPixels = width.widthPixels, ilHost = ilHost) } +@JvmOverloads fun ImageUrl.url(imageSize: ImageSize, ilHost: IlHost = IlHost.PROD): String { return url(width = imageSize.width, ilHost = ilHost) }