Skip to content

Commit

Permalink
Merge pull request #71 from AAkira/update-kotlin
Browse files Browse the repository at this point in the history
Update kotlin 1.5.21
  • Loading branch information
AAkira authored Aug 11, 2021
2 parents 6b7547b + 023b974 commit c1a6e69
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/dependencies/Dep.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package dependencies

object Dep {

private const val kotlin = "1.5.0"
private const val kotlin = "1.5.21"

object GradlePlugin {
const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Dep.kotlin}"
Expand All @@ -20,7 +20,7 @@ object Dep {
}

object Coroutines {
private const val version = "1.5.0-RC"
private const val version = "1.5.1-native-mt"

const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
}
Expand Down
10 changes: 5 additions & 5 deletions js/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ dependencies {
}

kotlin {
target {
js {
browser {
// execute :js:browserRun to launch dev server
runTask {
devServer = KotlinWebpackConfig.DevServer(
true, false, true, true, false,
8080,
null,
listOf("${projectDir}/src/main/resources".toString())
open = true,
port = 8080,
proxy = null,
contentBase = mutableListOf("${projectDir}/src/main/resources")
)
outputFileName = "main.js"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.aakira.napier

import com.github.aakira.napier.atomic.AtomicMutableList
import io.github.aakira.napier.atomic.AtomicMutableList
import kotlin.test.Test
import kotlin.test.assertEquals

Expand All @@ -25,7 +25,12 @@ class NapierTest {
fun `Check output log`() {
val output = AtomicMutableList<Expected>()
Napier.base(object : Antilog() {
override fun performLog(priority: Napier.Level, tag: String?, throwable: Throwable?, message: String?) {
override fun performLog(
priority: Napier.Level,
tag: String?,
throwable: Throwable?,
message: String?
) {
output.add(Expected(priority, tag, throwable, message))
}
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.github.aakira.napier

import io.github.aakira.napier.DebugAntilog
import kotlin.test.Test
import kotlin.test.assertEquals

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.github.aakira.napier

import io.github.aakira.napier.DebugAntilog
import io.github.aakira.napier.Napier
import org.junit.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotEquals
Expand All @@ -13,8 +11,14 @@ class NapierJvmTest {
@Test
fun `Check createStackElementTag`() {
assertEquals("Hoge", debugAntilog.createStackElementTag("io.github.aakira.napier.Hoge"))
assertEquals("Hoge2", debugAntilog.createStackElementTag("AA\$io.github.aakira.napier.Hoge2"))
assertNotEquals("default", debugAntilog.createStackElementTag("io.github.aakira.napier.Hoge3\$default"))
assertEquals(
"Hoge2",
debugAntilog.createStackElementTag("AA\$io.github.aakira.napier.Hoge2")
)
assertNotEquals(
"default",
debugAntilog.createStackElementTag("io.github.aakira.napier.Hoge3\$default")
)
}

@Test
Expand Down

0 comments on commit c1a6e69

Please sign in to comment.