louiscad
07/21/2019, 1:32 PMYao Zhuanzhuan
07/22/2019, 6:50 AMJan Stoltman
07/22/2019, 8:45 AMResult
in my K/Mpp project and I'm facing a lot of Result cannot be used as a return type
warnings. freeCompilerArgs = ["-Xallow-result-return-type"]
makes it so it can compile just fine, but the warnings are still there which is pretty annoying. Am I missing some other flag which would me allow to get rid of these IDE warnings?robstoll
07/22/2019, 10:43 AMKris Wong
07/22/2019, 4:21 PMKris Wong
07/22/2019, 8:13 PMgroostav
07/22/2019, 8:22 PMmbonnin
07/22/2019, 9:45 PMandroidMain {
dependencies {
implementation kotlin("stdlib")
}
}
?kpgalligan
07/23/2019, 3:53 AMval
with “Inline class cannot have properties with backing fields”, even if all implementations provide getters. Is there a way to do this? Next step is to try the vals as extensions.Patrick Jackson
07/23/2019, 11:31 PMHttpClient {
install(JsonFeature) {
serializer = KotlinxSerializer()
But after updating the KotlinxSerializer class is not foundleandro
07/24/2019, 8:44 AMFail
07/24/2019, 10:01 AM...
iosX64("ios") {
binaries {
framework {
freeCompilerArgs.add("-Xobjc-generics")
}
}
}
sourceSets {
commonMain {
dependencies {
...
Patrick Jackson
07/24/2019, 2:21 PMFail
07/24/2019, 2:23 PMUndefined symbols for architecture x86_64:
"_sqlite3_bind_text16", referenced from:
_SQLiter_SQLiteStatement_nativeBindString in app(combined.o)
"_sqlite3_bind_int64", referenced from:
.....
Solved🎉Jan Stoltman
07/25/2019, 7:30 AMyshrsmz
07/25/2019, 8:55 AMkotlin
// all API surface uses this interface
interface SomeId
inline class SomeIdImpl(val value: String): SomeId
I'm wondering if I should stick to primitives.Fail
07/25/2019, 10:03 AM...
Unresolved reference: HttpClient
Unresolved reference: Job
Unresolved reference: HttpRequestBuilder
Unresolved reference: io
...
> Task :app:linkDebugFrameworkIos_32 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:linkDebugFrameworkIos_32'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
What wrong?
Solved 🎉carlos cdmp
07/25/2019, 11:08 AMKris Wong
07/25/2019, 1:51 PMKris Wong
07/25/2019, 2:33 PMPatrick Jackson
07/25/2019, 4:22 PMCannot find protocol declaration for 'CommonKotlinCoroutineContextElement'; did you mean 'CommonKotlinCoroutineContextKey'?
Kris Wong
07/25/2019, 6:01 PMapply plugin: 'kotlin-android'
in a MPP library?Patrick Jackson
07/25/2019, 9:42 PMgumil
07/26/2019, 8:20 AMFail
07/26/2019, 10:43 AMPatrick Jackson
07/26/2019, 1:45 PMtype alias Bar = (String) -> Any
fun test(foo: Any) {
if (foo is Function<*>) {
(foo as Bar)("test")
}
}
On JVM the conditional will be true when passing in a function. On Native it is false.Nicholas Bilyk
07/26/2019, 3:19 PMkpgalligan
07/26/2019, 3:31 PMJan Stoltman
07/27/2019, 8:42 PMegorand
07/28/2019, 7:08 PMegorand
07/28/2019, 7:08 PMDominaezzz
07/28/2019, 8:23 PMTo run Kotlin/Native compiler JDK 8 or Java 9 or Java 10 (JDK) for the host platform has to be installed. Produced programs are fully self-sufficient and do not need JVM or other runtime.https://github.com/JetBrains/kotlin-native/blob/bf7040a119c77b7a5128e5ed40d0b749eb098e77/RELEASE_NOTES.md#compatibility-and-features
egorand
07/28/2019, 9:48 PM