goto1134
02/22/2018, 9:57 PMkoufa
02/23/2018, 9:24 AMdavid.bilik
02/23/2018, 12:37 PMinterface ApiCallback<in T> {
fun onSuccess(data: T)
fun onError(error: Throwable)
}
and then I have some class
expect class Api {
fun login(email: String, password: String, callback: ApiCallback<LoginResponse>)
}
and when I try to build with compileKonan
command, it fails on
src/main/kotlin/model/Api.kt:10:21: error: actual function 'login' has no corresponding expected declaration
The following declaration is incompatible because parameter types are different:
public final expect fun login(email: String, password: String, callback: ApiCallback<LoginResponse>): Unit
actual fun login(email: String, password: String, callback: ApiCallback<LoginResponse>) {
^
src/main/kotlin/model/Api.kt:10:77: error: unresolved reference: LoginResponse
actual fun login(email: String, password: String, callback: ApiCallback<LoginResponse>) {
^
other methods work.. so my only guess is this this generic classdavid.bilik
02/23/2018, 12:49 PMdominik.vesely
02/23/2018, 10:18 PMbuild.gradle
I have interop task which creates bindings. But from this point i am lost. I tried to copy .kt file from binding into my common-ios
project which looks good and compiles. until I try to use code from this file. I got an arror about wrong architecture (even though I am pretty sure i got target iphone_sim everywhere) so I am probably doing it in a wrong way. I am new to gradle and kotlin which does not help either 🙂 So can someone point me how to use "objc-framework" in kotlin code which is afterwards compiled into objc framework ?dominik.vesely
02/24/2018, 9:17 AMftomassetti
02/24/2018, 9:28 AMspierce7
02/24/2018, 9:29 PMPere Casafont
02/25/2018, 6:55 PMdavid.bilik
02/26/2018, 8:43 AMgenerateCmake
generate CMakeList with all interop setup and used libraries? Because for me it does notyusuf3000
02/27/2018, 8:37 AMTobi
02/27/2018, 9:59 AMios
module. My common
modules has some tests that use mockk
as mocking library. When I run test
, the task :ios:compileKonanIos-testsIphone
fails since it cannot resolve the references to mockk
.
The code can be found here: https://github.com/novoda/spikes/blob/enable_tests_kotlin_native/game-of-life-multiplatform/ios/build.gradle
Anything I am missing?yusuf3000
02/27/2018, 10:30 AMtapchicoma
02/28/2018, 8:57 PMplugins {}
block? Tried following without success:
plugins {
id("kotlin-native-gradle-plugin") version "0.6" apply false
// kotlin("kotlin-native-gradle-plugin") version "0.6" apply false
}
tapchicoma
02/28/2018, 9:30 PMmain.kt
should be always in src/main/kotlin
and not in src/main/kotlin/some/package
?david.bilik
03/01/2018, 6:50 AMRuckus
03/01/2018, 8:43 PMtapchicoma
03/01/2018, 9:22 PMolonho
03/02/2018, 2:01 PMTobi
03/02/2018, 2:50 PM0.6.1
and added enableDebug true
to my framework closure and built the framework. But when I set a breakpoint in the xcode UI and try to step into the kotlin code, it steps over 🤔spierce7
03/02/2018, 3:03 PMyatsinar
03/03/2018, 6:08 PMbenny.huo
03/04/2018, 2:03 AMhellotimmutton
03/05/2018, 4:23 AMtarek
03/06/2018, 10:24 AM@BeforeTest
not implemented in Kotlin Native ?
I get this error :
> Task :native:compileKonanNative-testMacbook
/myproject/common/src/test/kotlin/GameTest.kt:10:6: error: unresolved reference: BeforeTest
@BeforeTest
yusuf3000
03/06/2018, 11:40 AMkotlin-platform-common
module A dependent on another kotlin-platform-common
module B. Android studio can correctly find the references, but gradle cannot compile module A as it cannot find the reference to B.
Does anyone know how to correctly make one kotlin-platform-common module dependent on another?tudor.prodan
03/06/2018, 3:42 PMOMGHTTPURLRQ
library in a iOS app written in Kotlin/Native, but my app crashes because "OMGHTTPURLRQ class was not found" (log from Xcode).
Also, CLion does not see the OMGHTTPURLRQ
class or import libs.*
statement.
./gradlew compileKonan
works with no errors.
This is how I try to use it:
https://github.com/radiKal07/KotlinGithubTop10/blob/master/ios/src/main/kotlin/GithubService.kt
Does anybody know what I am doing wrong ? It is basically the same code from kotlinconf-app.Konstantin Petrukhnov
03/06/2018, 5:14 PMTobi
03/07/2018, 8:31 AMlldb
I can set a breakpoint in my kotlin code from xcode, which is great. But can I also show the value of a variable in scope when the breakpoint is reached?
Currently I just see the ObjHeader
.Alexandre Delattre
03/07/2018, 12:39 PMAlexandre Delattre
03/07/2018, 12:39 PMgildor
03/07/2018, 1:33 PMAlexandre Delattre
03/07/2018, 1:44 PMgildor
03/07/2018, 2:12 PMAlexandre Delattre
03/07/2018, 2:43 PMcbruegg
03/07/2018, 5:29 PMtudor.prodan
03/07/2018, 6:34 PMhultgren
03/07/2018, 7:21 PMgenerateCMake
gradle task to get autocomplete to workgildor
03/08/2018, 1:18 AM