From 4728e478d8fec7557c8487c32feb2705a1bbce35 Mon Sep 17 00:00:00 2001 From: Danil Yudov Date: Fri, 27 Oct 2023 15:51:03 +0500 Subject: [PATCH 1/2] Fix `CGBitmapContextCreate` for Apple --- .../io/github/skeptick/libres/compose/LibresImage+Skia.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libres-compose/src/appleMain/kotlin/io/github/skeptick/libres/compose/LibresImage+Skia.kt b/libres-compose/src/appleMain/kotlin/io/github/skeptick/libres/compose/LibresImage+Skia.kt index fb1a775..9151670 100644 --- a/libres-compose/src/appleMain/kotlin/io/github/skeptick/libres/compose/LibresImage+Skia.kt +++ b/libres-compose/src/appleMain/kotlin/io/github/skeptick/libres/compose/LibresImage+Skia.kt @@ -31,7 +31,7 @@ internal fun LibresImage.toSkiaImage(size: IntSize = intSize): SkiaImage = memSc bitsPerComponent = bytesPerComponent, bytesPerRow = bytesPerRow, space = CGColorSpaceCreateDeviceRGB(), - bitmapInfo = CGImageGetAlphaInfo(imageRef).value + bitmapInfo = CGImageGetBitmapInfo(imageRef) ) CGContextDrawImage(context, size.toCGRect(), imageRef) CGContextRelease(context) From 8079bf68ffc2e531d850725038f67eaf534296af Mon Sep 17 00:00:00 2001 From: Danil Yudov Date: Fri, 27 Oct 2023 15:51:31 +0500 Subject: [PATCH 2/2] Release 1.2.0 --- README.md | 4 ++-- gradle.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 524e2fa..b42c072 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Resources generation in Kotlin Multiplatform. buildscript { dependencies { - classpath("io.github.skeptick.libres:gradle-plugin:1.2.0-beta01") + classpath("io.github.skeptick.libres:gradle-plugin:1.2.0") } } ``` @@ -37,7 +37,7 @@ libres { kotlin { commonMain { dependencies { - implementation("io.github.skeptick.libres:libres-compose:1.2.0-beta01") + implementation("io.github.skeptick.libres:libres-compose:1.2.0") } } } diff --git a/gradle.properties b/gradle.properties index f66d0a8..5991254 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ android.disableAutomaticComponentCreation=true kotlin.mpp.androidSourceSetLayoutVersion=2 GROUP=io.github.skeptick.libres -VERSION_NAME=1.2.0-beta01 +VERSION_NAME=1.2.0 SONATYPE_HOST=S01