louiscad
03/03/2019, 8:08 PMd.bellingroth
03/05/2019, 7:41 AMribesg
03/05/2019, 11:32 AMpardom
03/05/2019, 9:09 PMalec
03/05/2019, 9:10 PMpardom
03/05/2019, 9:11 PMmetadata
?pardom
03/05/2019, 9:12 PMpardom
03/05/2019, 9:14 PMpardom
03/05/2019, 9:16 PMmax.cruz
03/06/2019, 5:41 PMjuliocbcotta
03/06/2019, 6:54 PMGarouDan
03/06/2019, 9:19 PMbootRun
tasks was omitted when I switched from the id("kotlin-platform-jvm")
plugin to kotlin("multiplatform")
.
So, how can we call the ./gradlew bootRun
again when using the kotlin("multiplatform")
plugin?
I’m using the following:
plugins {
kotlin("multiplatform")
id("kotlin-spring")
// id("kotlin-platform-jvm")
id("org.springframework.boot")
id("io.spring.dependency-management")
}
pardom
03/06/2019, 9:40 PMpardom
03/06/2019, 9:41 PMMarc Knaup
03/07/2019, 7:48 PMexpect class Something { companion object }
and then in JVM actual typealias Something = SomeJavaType
and provide an actual companion
in a different way?
Like actual object SomeJavaType.Companion
josephivie
03/07/2019, 7:54 PMbdeg
03/08/2019, 7:17 PMbdeg
03/08/2019, 7:22 PMbasher
03/10/2019, 12:15 AMkieran
03/11/2019, 8:05 AMRiccardo Montagnin
03/11/2019, 8:39 AMcommonMain
module:
fun String.asCharArray(): CharArray {
return (this as CharSequence).toList().toCharArray()
}
This is used inside the following function:
fun MnemonicWords.toSeed(password: String = ""): Seed {
val pass = words.joinToString(" ")
val salt = "mnemonic$password"
return Seed(PBKDF2.derive(pass.asCharArray(), salt.toByteArray()))
}
Then I have a test inside my commonTest
module as follows:
testData.forEach {
val expectedSeed = Seed(it.seed.hexToByteArray())
val actualSeed = MnemonicWords(it.phrase).toSeed("TREZOR")
assertEquals(expectedSeed.seed, actualSeed.seed)
}
When I try running it, I get the following error:
com.example.StringKt.asCharArray(Ljava/lang/String;)[C
java.lang.NoSuchMethodError: com.example.StringKt.asCharArray(Ljava/lang/String;)[C
How can I fix this?addamsson
03/11/2019, 9:29 AMgalex
03/11/2019, 8:18 PM* What went wrong:
A problem occurred configuring root project 'analytics-core'.
> Failed to notify project evaluation listener.
> Could not create an instance of type org.jetbrains.kotlin.gradle.plugin.experimental.internal.KotlinNativeTestExecutableImpl.
> Could not create an instance of type org.gradle.language.internal.DefaultComponentDependencies.
> Cannot add a configuration with name 'testDebugImplementation' as a configuration with that name already exists.
> Cannot add task ':test' as a task with that name already exists.
galex
03/11/2019, 9:09 PMpajatopmr
03/12/2019, 1:30 PMexpect open class Streamer
and a JVM implementation of actual typealias Streamer = java.io.InputStream
. The error isMarc Knaup
03/12/2019, 3:34 PMjw
03/12/2019, 3:35 PMjw
03/12/2019, 3:36 PMexpect annotation
with @OptionalExpectation
and actual typealias
it in the JVM moduleMarc Knaup
03/12/2019, 3:37 PMMarc Knaup
03/12/2019, 3:41 PM