Marc Knaup
06/11/2019, 6:44 PMHttpClient
in a background thread on iOS?
The client needs to always be owned by the `Worker`'s thread and be accessible to all executions inside that worker 🤔
I basically need state in a Worker
.Marc Knaup
06/11/2019, 7:31 PMmypackage.Url
-> Swift Url
Kotlin io.ktor.url.Url
-> Swift Url_
But now it has flipped and thus my Swift code doesn't compile anymore.louiscad
06/11/2019, 9:35 PMiosX64
and iosArm64
?jwd83
06/12/2019, 4:14 AMZh Efimenko
06/12/2019, 12:37 PMFail
06/13/2019, 12:37 PMKruger Brent
06/14/2019, 2:36 PMAlexander Suslov
06/14/2019, 8:07 PMbinaries {
framework('CoreModule') {
export project(":CommonModule")
}
}
Now I'm trying to migrate to the new CocoaPods Gradle plugin but receive a Use of undeclared type '<class>'
error for classes from CommonModule. I've tried to apply cocoapods plugin to CommonModule and import both frameworks to swift files but it didn't help - I got 2 versions of each of CommonModule's classes that are incompartible between each other.
Is there any analogue for export(project(":exported"))
instruction in the new CocoaPods Gradle plugin?Thomas
06/15/2019, 6:11 PMfcosta
06/16/2019, 2:13 PMJan Stoltman
06/16/2019, 9:10 PMRostislav Utrobin
06/17/2019, 5:44 AMZh Efimenko
06/17/2019, 9:16 AMtypedef struct {
libpst_KNativePtr pinned;
} libpst_kref_kotlin_Array;
And I have a function which get this object as parameter:
libpst_KInt (*hash)(libpst_kref_com_tullynore_base_util_HashUtil thiz, libpst_kref_kotlin_Array values);
Jake
06/17/2019, 4:13 PMklib
? Or know of a good tutorial or more detailed documentation on the native libraries than I see on Jetbrains’ website? I’ve made a iOS framework with Kotlin Native, but there is a restriction they’ve created where you can only have one kotlin iOS framework in an app at a time. In an effort to modularize my shared code, I’d like to find a way to use several kotlin libraries in an iOS app at once. I believe for now I’ll need to create one Kotlin Native project that pulls in a bunch of libraries and spits out one bundled framework. But working with Gradle (not my forte) and this experimental stuff has got my head in a fog.
Ex:
Modules
----------
Models feature A
Models feature B
Models feature C
API-Client feature A
API-Client feature B
Other Business Logic
If our organization wants to use Feature B in another application I’d hate to have to pull all of that shared logic to the other app when I only want what matters to Feature Bandreasmattsson
06/19/2019, 12:22 PM@JvmName
and/or @JvmMultifileClass
for Kotlin Native? I have files with the same name in different sourcesets of a multiplatform project (e.g. common
, ios
, android
) and on iOS I end up with methods scattered under several different classes. (e.g. ServiceKt
, ServiceKt_
). Is this avoidable?Thomas
06/19/2019, 2:26 PMCannot find protocol declaration for 'CommonKotlinCoroutineContextElement'; did you mean 'CommonKotlinCoroutineContextKey'?
This is the part where it shows the error:
__attribute__((swift_name("KotlinCoroutineContext")))
@protocol CommonKotlinCoroutineContext
@required
- (id _Nullable)foldInitial:(id _Nullable)initial operation:(id _Nullable (^)(id _Nullable, id<CommonKotlinCoroutineContextElement>))operation __attribute__((swift_name("fold(initial:operation:)")));
- (id<CommonKotlinCoroutineContextElement> _Nullable)getKey:(id<CommonKotlinCoroutineContextKey>)key __attribute__((swift_name("get(key:)")));
- (id<CommonKotlinCoroutineContext>)minusKeyKey:(id<CommonKotlinCoroutineContextKey>)key __attribute__((swift_name("minusKey(key:)")));
- (id<CommonKotlinCoroutineContext>)plusContext:(id<CommonKotlinCoroutineContext>)context __attribute__((swift_name("plus(context:)")));
@end;
Could anyone here point me in the right direction what could be wrong?serebit
06/19/2019, 6:33 PMorg.jetbrains.kotlin.konan.target.HostManager.<init>(Lorg/jetbrains/kotlin/konan/target/Distribution;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
when attempting to assemble the project, or in fact run any Gradle task.redrield
06/19/2019, 9:42 PMZh Efimenko
06/20/2019, 10:29 AMPstFile (*PstFile)(const char* filePath, const char* mode);
When I call this constructor in C code I pass 2 string: PstFile.PstFile("/home/evgeni/Projects/SAGO/NLC/source.pst", "rb");
But in my library I get another string: @&�9�
and rb
if I swap the parameters, I get another string: @���~
and /home/evgeni/Projects/SAGO/NLC/source.pst
. Why first parameter anyhow?fcosta
06/20/2019, 4:13 PMCocoaPods
? The documentation says that if the module uses CocoaPods
libraries, it can be build only from Xcode
. 😞Jake
06/20/2019, 7:10 PMpardom
06/20/2019, 11:05 PMkpgalligan
06/21/2019, 7:56 AMDaniel Gergely
06/21/2019, 2:53 PMJurriaan Mous
06/22/2019, 8:40 AMCompilation failed: GC overhead limit exceeded
when running linkDebugTestMacos
. How do I higher the memory limit for the task/project? I have tried org.gradle.jvmargs=-Xmx4g
in the gradle.properties. I use gradle 5.1.1Thomas
06/22/2019, 10:48 AM-Xobjc-generics
in my project. If I disable that then the issue is gone. Looks like this is a bug with the new generics.louiscad
06/22/2019, 8:47 PMNSNotificationCenter
with Kotlin/Native?juancho
06/23/2019, 3:31 PMlouiscad
06/23/2019, 8:26 PMNSObject
observability, but I'm struggling to understand how this Objective-C method signature translates to Kotlin: https://developer.apple.com/documentation/objectivec/nsobject/1416553-observevalueforkeypath?language=objc
It seems I need to declare it in an NSObject
subclass for addObserver
to work: https://developer.apple.com/documentation/objectivec/nsobject/1412787-addobserver?language=objc
Can anyone help me?evant
06/23/2019, 11:03 PM