File tree Expand file tree Collapse file tree 6 files changed +6
-11
lines changed
buildSrc/src/main/kotlin/buildsrc/plugins
commonMain/kotlin/com/github/quillraven/fleks
commonTest/kotlin/com/github/quillraven/fleks Expand file tree Collapse file tree 6 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 55[ ![ LTS] ( https://img.shields.io/badge/LTS-2.12-orange.svg )] ( https://search.maven.org/artifact/io.github.quillraven.fleks/Fleks/2.12/jar )
66[ ![ Snapshot] ( https://img.shields.io/badge/Snapshot-2.13--SNAPSHOT-orange.svg )] ( https://central.sonatype.com/service/rest/repository/browse/maven-snapshots )
77[ ![ Build Master] ( https://img.shields.io/github/actions/workflow/status/quillraven/fleks/build.yml?branch=master )] ( https://github.com/Quillraven/fleks/actions )
8- [ ![ Kotlin] ( https://img.shields.io/badge/Kotlin-2.2.10 -red.svg )] ( http://kotlinlang.org/ )
8+ [ ![ Kotlin] ( https://img.shields.io/badge/Kotlin-2.3.0 -red.svg )] ( http://kotlinlang.org/ )
99
1010[ ![ MIT license] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( https://github.com/Quillraven/Fleks/blob/master/LICENSE )
1111
Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ plugins {
1010}
1111
1212kotlin {
13- js(IR ) {
14- browser()
15- nodejs()
16- }
17-
1813 @OptIn(ExperimentalWasmDsl ::class )
1914 wasmJs {
2015 browser()
Original file line number Diff line number Diff line change 11[versions ]
22
3- kotlin = " 2.2.21 "
3+ kotlin = " 2.3.0 "
44kotlinxSerialization = " 1.9.0"
55kotlinDokka = " 2.1.0"
66kotlinxBenchmark = " 0.4.14"
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ class World internal constructor(
113113 *
114114 * @throws FleksNoSuchInjectableException if there is no injectable registered for [name].
115115 */
116- inline fun <reified T > inject (name : String = T : :class.simpleName ? : T : :class.toString()): T {
116+ inline fun <reified T > inject (name : String = T : :class.qualifiedName ? : T : :class.toString()): T {
117117 val injectable = injectables[name] ? : throw FleksNoSuchInjectableException (name)
118118 injectable.used = true
119119 return injectable.injObj as T
@@ -541,7 +541,7 @@ class World internal constructor(
541541 * @throws FleksNoSuchInjectableException if there is no injectable registered for [name].
542542 * @throws FleksWrongConfigurationUsageException if called outside a [WorldConfiguration] scope.
543543 */
544- inline fun <reified T > inject (name : String = T : :class.simpleName ? : T : :class.toString()): T =
544+ inline fun <reified T > inject (name : String = T : :class.qualifiedName ? : T : :class.toString()): T =
545545 CURRENT_WORLD ?.inject(name) ? : throw FleksWrongConfigurationUsageException ()
546546
547547 /* *
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class InjectableConfiguration(private val world: World) {
4141 *
4242 * @throws [FleksInjectableAlreadyAddedException] if the dependency was already added before.
4343 */
44- inline fun <reified T : Any > add (dependency : T ) = add(T ::class .simpleName ? : T ::class .toString(), dependency)
44+ inline fun <reified T : Any > add (dependency : T ) = add(T ::class .qualifiedName ? : T ::class .toString(), dependency)
4545}
4646
4747/* *
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ internal class WorldTest {
390390 add(" used" )
391391 }
392392 }
393- val expected = mapOf (" 42" to " myString" , " Int" to 1337 )
393+ val expected = mapOf (" 42" to " myString" , " kotlin. Int" to 1337 )
394394 // this sets the 'used' string injectable to used=true
395395 world.inject<String >()
396396
You can’t perform that action at this time.
0 commit comments