Skip to content

Commit a894505

Browse files
authored
Fix JS support (#74)
1 parent 35d059f commit a894505

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and deploy docs
33
on:
44
push:
55
branches:
6-
- master
6+
- docs
77

88
jobs:
99
github-pages:

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permissions:
66
on:
77
push:
88
tags:
9-
- 'v*'
9+
- '*'
1010

1111
jobs:
1212
publish:

ultron-common/src/commonMain/kotlin/com/atiurin/ultron/exceptions/UltronWrapperException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class UltronWrapperException : AssertionError {
66
: super(
77
"$message${
88
if (cause is UltronWrapperException || cause is UltronOperationException) ""
9-
else "\nOriginal error - ${cause::class.qualifiedName}: ${cause.message}"
9+
else "\nOriginal error - ${cause::class.simpleName}: ${cause.message}"
1010
}"
1111
)
1212
}

ultron-common/src/commonMain/kotlin/com/atiurin/ultron/listeners/AbstractListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ abstract class AbstractListener {
66
this.id = id
77
}
88
constructor(){
9-
this.id = this::class.qualifiedName.orEmpty()
9+
this.id = this::class.simpleName.orEmpty()
1010
}
1111
}

ultron-common/src/commonMain/kotlin/com/atiurin/ultron/listeners/AbstractListenersContainer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract class AbstractListenersContainer<T: AbstractListener> {
2727
}
2828

2929
fun <T : AbstractListener> removeListener(listenerClass: KClass<T>) {
30-
val exist = listeners.find { it.id == listenerClass.qualifiedName }
30+
val exist = listeners.find { it.id == listenerClass.simpleName }
3131
if (exist != null) {
3232
listeners.remove(exist)
3333
}

ultron-common/src/commonMain/kotlin/com/atiurin/ultron/log/ULogger.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ abstract class ULogger {
77
this.id = id
88
}
99
constructor(){
10-
this.id = this::class.qualifiedName.orEmpty()
10+
this.id = this::class.simpleName.orEmpty()
1111
}
1212

1313
abstract fun info(message: String): Any

0 commit comments

Comments
 (0)