Lamberto Basti
01/22/2020, 1:08 PMIvan Kubyshkin [JetBrains]
01/22/2020, 2:57 PM-Xir-produce-js
-Xgenerate-dts
But it's unstable, so use it on your own risk
tasks.getByName<org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile>("compileKotlinJs") {
kotlinOptions {
freeCompilerArgs += listOf("-Xir-produce-js", "-Xgenerate-dts")
}
}
Lamberto Basti
01/22/2020, 3:56 PMdeclare namespace firebase_multiplatform_core {
type Nullable<T> = T | null | undefined
}
I guess it's a start!bashor
01/22/2020, 4:21 PMJsExport
annotation.bashor
01/22/2020, 4:24 PMLamberto Basti
01/22/2020, 4:56 PM/**
* The entry point of Firebase SDKs. It holds common configuration
* and state for Firebase APIs. Most applications don't need to
* directly interact with FirebaseApp.
*/
@JsExport
actual class FirebaseApp(val delegate: App) {
actual companion object {
actual val default: FirebaseApp
get() = app().toMpp()
actual fun getInstance(appName: String) =
app(appName).toMpp()
actual fun initializeApp(firebaseOptions: FirebaseOptions) =
firebase.initializeApp(firebaseOptions).toMpp()
actual fun initializeApp(firebaseOptions: FirebaseOptions, name: String) =
firebase.initializeApp(firebaseOptions, name).toMpp()
}
actual val name: String
get() = delegate.name
actual val options: FirebaseOptions
get() = delegate.options as FirebaseOptions
}
It errors saying:
properties without fields are not supported com.github.lamba92.firebasemultiplatform.core.FirebaseApp.Companion_instance
But it does not says which lines. I tried putting all properties as lazy fields, it does not work either.bashor
01/22/2020, 4:59 PMLamberto Basti
01/22/2020, 5:05 PMLamberto Basti
01/24/2020, 12:12 AMSvyatoslav Kuzmich [JB]
01/24/2020, 3:36 PMSvyatoslav Kuzmich [JB]
01/24/2020, 3:45 PMLamberto Basti
02/06/2020, 2:21 PMkodein-di
. Unfortunately the compiler errors badly. I believe none of the classpaths gets resolved 😭
Just clone it and run ./gradlew :kodein-di:jsJar
to reproduce the issue. It uses Kotlin version 1.4.0-dev-2107-107
. Any help would be reaaaaly appreciated here. The exam at which the project needs to be presented at is the 20th T.TSvyatoslav Kuzmich [JB]
02/06/2020, 4:25 PMLamberto Basti
02/06/2020, 8:57 PM