Skip to content

Commit

Permalink
Kotlin 1.9.20 Update (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanOltmann authored Nov 3, 2023
1 parent 16a89dd commit bc8474a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Kim - Kotlin Image Metadata

[![Kotlin](https://img.shields.io/badge/kotlin-1.9.10-blue.svg?logo=kotlin)](httpw://kotlinlang.org)
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.20-blue.svg?logo=kotlin)](httpw://kotlinlang.org)
![JVM](https://img.shields.io/badge/-JVM-gray.svg?style=flat)
![Android](https://img.shields.io/badge/-Android-gray.svg?style=flat)
![macOS](https://img.shields.io/badge/-macOS-gray.svg?style=flat)
Expand Down Expand Up @@ -32,7 +32,7 @@ of Ashampoo Photos, which, in turn, is driven by user community feedback.
## Installation

```
implementation("com.ashampoo:kim:0.5.4")
implementation("com.ashampoo:kim:0.5.5")
```

## Sample usages
Expand Down
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework

plugins {
kotlin("multiplatform") version "1.9.10"
kotlin("multiplatform") version "1.9.20"
id("com.android.library") version "7.4.2"
id("maven-publish")
id("signing")
id("io.gitlab.arturbosch.detekt") version "1.23.1"
id("io.gitlab.arturbosch.detekt") version "1.23.3"
id("org.sonarqube") version "4.3.1.3277"
id("org.jetbrains.kotlinx.kover") version "0.6.1"
id("com.asarkar.gradle.build-time-tracker") version "4.3.0"
id("me.qoomon.git-versioning") version "6.4.2"
id("com.goncalossilva.resources") version "0.4.0"
id("com.github.ben-manes.versions") version "0.48.0"
id("com.github.ben-manes.versions") version "0.49.0"
}

repositories {
Expand All @@ -22,8 +22,8 @@ repositories {

val productName = "Ashampoo Kim"

val ktorVersion: String = "2.3.4"
val xmpCoreVersion: String = "0.1.6"
val ktorVersion: String = "2.3.5"
val xmpCoreVersion: String = "0.1.7"
val dateTimeVersion: String = "0.4.1"
val testRessourcesVersion: String = "0.4.0"
val ioCoreVersion: String = "0.3.0"
Expand Down Expand Up @@ -117,7 +117,7 @@ koverMerged {
}

dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.23.1")
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.23.3")
}

kotlin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ object JpegOrientationOffsetFinder {
"JPEG magic number mismatch: ${magicNumberBytes.toByteArray().toSingleNumberHexes()}"
}

var orientationOffset: Long? = null

var positionCounter: Long = ImageFormatMagicNumbers.jpegShort.size.toLong()

@Suppress("LoopWithTooManyJumpStatements")
Expand Down Expand Up @@ -135,12 +133,12 @@ object JpegOrientationOffsetFinder {

if (tag == TiffTag.TIFF_TAG_ORIENTATION.tag) {

orientationOffset = positionCounter + 8
positionCounter += 8

if (exifByteOrder == ByteOrder.BIG_ENDIAN)
orientationOffset++
positionCounter++

return orientationOffset
return positionCounter

} else {

Expand Down

0 comments on commit bc8474a

Please sign in to comment.