Kris Wong
02/05/2020, 4:33 PMKris Wong
02/05/2020, 7:50 PMKenneth Andersson
02/06/2020, 6:14 AMvanniktech
02/06/2020, 8:15 AMimport cocoapods.AFNetworking
fails when compiling via Xcode with: Packages cannot be imported
import cocoapods.*
and referencing AFNetworking
does not seem to work either: Unresolved reference: AFNetworking
curioustechizen
02/06/2020, 8:31 AMdomain
modules are all pure kotlin modules so they cannot inadvertently depend on Android classes)
2. Build performance (only recompile modules that need to)
Looks like 1. can be achieved with sourceSets because you can declare dependencies for each sourceSet independently. It will require a bit of discipline because the gradle module might be for example com.android.library
but it is doable.
Are there any docs about build performance with sourceSets that I should be aware of?Andreas Jost
02/06/2020, 9:22 AMQuotes\app\src\commonTest\kotlin\de\ajo\quotes\SampleTests.kt: (3, 20): Unresolved reference: Test
It's that line: import kotlin.test.Test
And then the same error with assertTrue
But in app's build.gradle:
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
Why is that? Also the following tasks run without errors: :app:compileTestKotlinJs, app:jsTest, :app:jvmTest, :app:allTests, etc. and IntelliJ doesn't mark these lines as unresolved.galex
02/06/2020, 11:17 AMtarek
02/06/2020, 3:31 PMaddamsson
02/06/2020, 7:46 PMEivind Nilsbakken
02/07/2020, 7:41 AMLiliia
02/07/2020, 11:50 AMdimsuz
02/07/2020, 1:02 PMpajatopmr
02/07/2020, 4:40 PMSamuel Michael
02/08/2020, 11:16 PMNick Halase
02/10/2020, 12:57 AMios
target actual
?Ryan Simon
02/10/2020, 2:43 AMKirill Shmakov [JB]
02/10/2020, 7:35 AM1.3.70-eap-184
) there is no more need for special breakpoints for native debug (see https://kotlinlang.slack.com/archives/C3PQML5NU/p1564747546241900). Now same breakpoints work both for JVM and Native debugging in MPP. Feel free to share your feedback.matej
02/10/2020, 3:47 PMKris Wong
02/10/2020, 9:13 PMGavin Ray
02/10/2020, 9:25 PMfcosta
02/11/2020, 1:35 AMbasher
02/11/2020, 5:13 AMPatrick
02/11/2020, 9:06 AMval client = HttpClient(Curl) {
install(JsonFeature) {
serializer = KotlinxSerializer()
}
}
val response = client.get<String>("<https://google.com>")
println(response)
This code works fine on MacOS, but fails on windows with this error message:
Uncaught Kotlin exception: io.ktor.client.engine.curl.CurlIllegalStateException: Connection failed for request: CurlRequestData(url='<https://google.com/>', method='GET', content: 0 bytes)
at kfun:kotlin.Throwable.<init>(kotlin.String?;kotlin.Throwable?)kotlin.Throwable (000000000045bbc0)
at kfun:kotlin.Throwable.<init>(kotlin.String?)kotlin.Throwable (000000000045beb0)
at kfun:kotlin.Exception.<init>(kotlin.String?)kotlin.Exception (0000000000455160)
at kfun:kotlin.RuntimeException.<init>(kotlin.String?)kotlin.RuntimeException (0000000000454ca0)
at kfun:kotlin.IllegalStateException.<init>(kotlin.String?)kotlin.IllegalStateException (0000000000455330)
at kfun:io.ktor.client.engine.curl.CurlIllegalStateException.<init>(kotlin.String)io.ktor.client.engine.curl.CurlIllegalStateException (00000000006d72d0)
at kfun:io.ktor.client.engine.curl.internal.CurlMultiApiHandler.readResponseDataFromEasyHandle#internal (00000000006ded80)
at kfun:io.ktor.client.engine.curl.internal.CurlMultiApiHandler.collectCompleted#internal (00000000006de290)
at kfun:io.ktor.client.engine.curl.internal.CurlMultiApiHandler.pollCompleted(<http://kotlin.Int|kotlin.Int>)kotlin.collections.List<io.ktor.client.engine.curl.internal.CurlResponseData> (00000000006dd400)
at kfun:io.ktor.client.engine.curl.pollCompleted$ktor-client-curl()kotlin.collections.List<io.ktor.client.engine.curl.internal.CurlResponseData> (00000000006d9cc0)
at kfun:io.ktor.client.engine.curl.CurlProcessor.poll$lambda-6#internal (00000000006d94f0)
at _ZN6Worker19processQueueElementEb (00000000008900c0)
at _ZN12_GLOBAL__N_113workerRoutineEPv (00000000008915e0)
at pthread_create_wrapper (00000000008c1850)
at (00007ffdcfd2b02c)
at (00007ffdcfd2b0a0)
at (00007ffdd04c7bc0)
at (00007ffdd0f0ceb0)
Does anyone have an idea why this does not work?matej
02/11/2020, 12:56 PMorg.jetbrains.kotlinx:kotlinx-coroutines-test
is not available for common code?Sylvain Patenaude
02/11/2020, 2:53 PMKris Wong
02/11/2020, 4:59 PMKris Wong
02/11/2020, 8:17 PMShan
02/12/2020, 12:40 AMfile or directory '/builds/my/org/my-project/src/jsMain/kotlin' not found
and I cannot see to figure out why.. Anyone have any ideas? 🤔Julius Hannink
02/12/2020, 12:46 PMSylvain Patenaude
02/12/2020, 2:39 PMSylvain Patenaude
02/12/2020, 2:39 PMKris Wong
02/12/2020, 2:43 PMSylvain Patenaude
02/12/2020, 2:58 PMKris Wong
02/12/2020, 3:00 PM