benleggiero
03/24/2018, 4:12 AMjw
03/24/2018, 10:03 PMkarelpeeters
03/24/2018, 10:03 PMyusuf3000
03/25/2018, 1:10 PMimport platform.UIKit.*
at a top of a kotlin file in my iOS module of my multiplatform project, but i’m getting an unresolved reference when gradle runs :platforms:ios:compileKonanTest-libraryMacbook
. I’ve looked online and can’t see where I’m going wrong.Evgeniy Zaharov
03/26/2018, 7:54 AMgildor
03/26/2018, 8:22 AMkotlin-platform-jvm
instead of kotlin
in Gradle?prasham.h.trivedi
03/27/2018, 12:52 PMkotlin-platform-android
3. App Module
4. Instant App Module
https://gist.github.com/PrashamTrivedi/7e0837756a6b6e0503e9eb26b739fe0c
Here is my stripped down gradle setup.
Problem is: Common data is not considered as module. What am I doing wrong?joseph_ivie
03/29/2018, 9:15 PMjw
03/29/2018, 9:31 PMyusuf3000
04/02/2018, 1:52 PMSoon we will show you how you can use fully featured mocking library MockK in common modules.
. Is there an update on this that anyone knows of? Or does anyone know how to do this already?qlitzler
04/03/2018, 7:08 PMgildor
04/05/2018, 2:03 PMlouiscad
04/08/2018, 1:51 PM.kts
)? When creating a new project, selecting "Kotlin DSL build script" hides all multiplatform options.spierce7
04/11/2018, 5:12 AM1.2.40-eap-51
, and I can't seem to access any kotlin stdlib helper functions in my common module. i.e. I can't access listOf()
. Is this a known issue? I'm in Android Studio 3.1.1. I also can't manually import the functions like I used to be able to do in previous versions.wickedev
04/11/2018, 6:57 AMkpgalligan
04/15/2018, 3:17 AMkpgalligan
04/15/2018, 3:18 AMdiesieben07
04/15/2018, 9:07 PMactual typealias
not working correctly yet. That makes it impossible to use e.g. UUID
in your domain objects.christophsturm
04/16/2018, 8:13 AMilya.gorbunov
04/16/2018, 8:48 PMJvmName
annotation type aliases: https://youtrack.jetbrains.com/issue/KT-22902
Try declaring a type alias with the same short name: actual typealias JvmName = kotlin.jvm.JvmName
agrosner
04/21/2018, 8:56 PMsnrostov
04/23/2018, 11:58 AMmy-common: common
my-jvm: common, compile("my-common")
my-jvm-android: jvm, expectedBy(":my-jvm"), expectedBy(":my-common")
my-jvm-server: jvm, expectedBy(":my-jvm"), expectedBy(":my-common")
my-js: js, expectedBy(":my-common")
agrosner
04/23/2018, 12:31 PMandreasmattsson
04/24/2018, 3:02 PMexpect
declaration should look like in order to be able to use the following (delegating to Gson) type annotation on my (cross-platform/shared) data models:
actual typealias SerializedName = com.google.gson.annotations.SerializedName
this: expect annotation class SerializedName(val value: String, val alternate: Array<String> = [])
results in error: Parameter 'alternate' has conflicting values in the expected and actual annotation
araqnid
04/27/2018, 12:37 PMbuildSequence
to be unusable. It seems this happens just in a simple multiplatform template project too -- does anyone else get this? (currently working around by manually removing kotlin-stdlib-common from the project structure, which is a pain)Evgeniy Zaharov
04/28/2018, 9:37 AMexpectedBy
declaration with library
?
Or if no, then the question is how we could implement (in platform modules) common declaration from common dependencies?egorand
04/28/2018, 2:37 PMinternal
members inside the common module aren’t visible in platform modules, is there a way around it? I want to store my utils in the common module, but don’t want them to be exposed as APIrobstoll
05/05/2018, 11:56 AMjava.lang.StringBuilder
does not seem to be the actual type of it. What is the actual type in JVM?hannesstruss
05/06/2018, 7:47 AMtrathschlag
05/07/2018, 9:20 AMutils
- common -> define Foo.class
- jvm
- js
app
- common
- server : utils-jvm -> use Foo.class
- client : utils-js
And app
includes utils
as a composite build in gradle with includeBuild
then IDEA marks any use of Foo.class in app-server
as not found. Gradle builds everything perfectly fine, so is this a bug in IDEA?trathschlag
05/07/2018, 9:20 AMutils
- common -> define Foo.class
- jvm
- js
app
- common
- server : utils-jvm -> use Foo.class
- client : utils-js
And app
includes utils
as a composite build in gradle with includeBuild
then IDEA marks any use of Foo.class in app-server
as not found. Gradle builds everything perfectly fine, so is this a bug in IDEA?robstoll
05/07/2018, 9:29 AMtrathschlag
05/07/2018, 12:45 PMrobstoll
05/07/2018, 1:28 PMtrathschlag
05/07/2018, 2:42 PMilya.gorbunov
05/07/2018, 3:47 PMtrathschlag
05/07/2018, 3:47 PM