Skip to content

Commit

Permalink
v1.5.0 Support for Kotlin 1.9.24
Browse files Browse the repository at this point in the history
  • Loading branch information
ellsworthrw committed Jun 19, 2024
1 parent 53316ea commit 8e8dc54
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 24 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ KmLogging.setLoggers(PlatformLogger(FixedLogLevel(BuildConfig.DEBUG)))

| KmLogging version | Kotlin version |
|-------------------|----------------|
| 1.5.0 | 1.9.24 |
| 1.4.2 | 1.8.22 |
| 1.3.0 | 1.8.10 |
| 1.2.1 | 1.7.21 |
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ buildscript {
google()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22")
classpath("com.android.tools.build:gradle:8.0.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.24")
classpath("com.android.tools.build:gradle:8.1.0")
classpath("com.google.gms:google-services:4.4.1")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.9")
}
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ licenseUrl=http://www.apache.org/licenses/LICENSE-2.0
allLicenses=["Apache-2.0"]
# workaround bug in webpack 5 usage
#kotlin.js.webpack.major.version=4
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.js.yarn=false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Feb 28 19:32:34 MST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions logging/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id("com.android.library")
kotlin("multiplatform")
id("org.jetbrains.dokka")
id("com.vanniktech.maven.publish") version "0.27.0"
id("com.vanniktech.maven.publish") version "0.28.0"
}

kotlin {
Expand Down Expand Up @@ -77,7 +77,7 @@ tasks {
}

extra["artifactId"] = "logging"
extra["artifactVersion"] = "1.4.2"
extra["artifactVersion"] = "1.5.0"
extra["libraryName"] = "KmLogging: Kotlin Multiplatform Logging"
extra["libraryDescription"] = "KmLogging is a high performance, extensible and easy to use logging library for Kotlin Multiplatform development"
extra["gitUrl"] = "https://github.com/LighthouseGames/KmLogging"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package org.lighthousegames.logging

import co.touchlab.stately.concurrency.AtomicReference
import kotlin.native.concurrent.SharedImmutable
import kotlin.native.concurrent.ThreadLocal

@SharedImmutable
internal val logFactory: AtomicReference<LogFactory?> = AtomicReference(null)

@SharedImmutable
private val loggers: AtomicReference<List<Logger>> = AtomicReference(emptyList())

@ThreadLocal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.lighthousegames.logging

import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.ptr
import platform.Foundation.NSThread
import platform.darwin.OS_LOG_DEFAULT
Expand All @@ -11,6 +12,7 @@ import platform.darwin.OS_LOG_TYPE_INFO
import platform.darwin.__dso_handle
import platform.darwin._os_log_internal

@OptIn(ExperimentalForeignApi::class)
actual class PlatformLogger actual constructor(actual val logLevel: LogLevelController) : Logger, TagProvider, LogLevelController by logLevel {

actual override fun verbose(tag: String, msg: String) {
Expand Down
2 changes: 1 addition & 1 deletion sample/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

kotlin {
android()
androidTarget()
listOf(
iosX64(),
iosArm64(),
Expand Down
22 changes: 10 additions & 12 deletions sample/webApp/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
plugins {
kotlin("js")
}

dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-html:0.7.3")
implementation(project(":sample:shared"))
kotlin("multiplatform")
}

kotlin {
js(IR) {
js {
browser {
binaries.executable()
commonWebpackConfig {
cssSupport {
enabled.set(true)
}
}
binaries.executable()
}
sourceSets {
val jsMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-html:0.8.0")
implementation(project(":sample:shared"))
}
}
}
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ pluginManagement {
gradlePluginPortal()
}
plugins {
id("org.jetbrains.dokka") version "1.9.10"
kotlin("multiplatform") version "1.9.20"
id("org.jetbrains.dokka") version "1.9.20"
kotlin("multiplatform") version "1.9.24"
}
}

Expand Down

0 comments on commit 8e8dc54

Please sign in to comment.