Marc Reichelt
10/28/2019, 1:40 PMsourceSets["iosMain"].dependencies {
implementation("io.ktor:ktor-client-ios:$ktorVersion")
}
But Gradle complains with “KotlinSourceSet with name ‘iosMain’ not found.“…Artyom Degtyarev [JB]
10/28/2019, 1:44 PMMarc Reichelt
10/28/2019, 1:59 PMMarc Reichelt
10/28/2019, 2:01 PMiosArm64, and therefore the target name! Does this mean I’ll now have to add the dependencies to both the iosArm64 as well as the iosX64 targets?Sam
10/28/2019, 2:05 PMMarc Reichelt
10/28/2019, 2:05 PMMarc Reichelt
10/28/2019, 2:07 PMMarc Reichelt
10/28/2019, 2:07 PMMarc Reichelt
10/28/2019, 2:18 PMiosMain, otherwise I would have to have 2 source directories iosX64Main and iosArm64Main with the same content…Artyom Degtyarev [JB]
10/28/2019, 2:22 PMMarc Reichelt
10/28/2019, 2:32 PMMarc Reichelt
10/28/2019, 2:55 PMrunBlocking for coroutines on iOS, so now I have to figure out how to do this myself.
If the method is called on a non-UI-thread, how can I simply make ktor client make a HTTP request on the thread it’s currently called?Sam
10/28/2019, 3:00 PMobject types that are initialized there on startup. If a call is made on a background thread it will access those objects and cause an illegal state exception.Marc Reichelt
10/28/2019, 4:11 PMMarc Reichelt
10/28/2019, 4:11 PMSam
10/28/2019, 7:51 PMrusshwolf
10/29/2019, 12:54 AMMarc Reichelt
10/29/2019, 9:58 AMexpect runBlocking method with the same syntax as the real ones works!