vishal G
06/28/2022, 9:31 AMvishal G
06/28/2022, 9:32 AMChris NL
06/28/2022, 3:52 PMLuan Pereira
06/28/2022, 11:23 PMUnhandled Runtime Error TypeError: hidden._get_entries__31877249_iz8n5_k$ is not a function
browser request is responding 200
Any idea?
The fun in js target:
fun initialize (formId: String, hidden: Map<String, String>): Promise<InitializationResult> = GlobalScope.promise{ internalForm.initialize(formId, hidden)}
Benjamin Deroche
06/29/2022, 10:04 AMFrançois-Xavier Beuvry
06/29/2022, 1:38 PMWebRTC
compiled for each architecture.
This is the first time for me with KMP, I am not sure about the good way to deal with my current issue.
I built my shared library in KMP with embedded WebRTC for Android. It works like a charm.
On iOS, I tried to create a .xcFramework
with embedded WebRTC xcFramework
.
I can compile my iOS application with my own framework, and I can access to my library (like WebRtcKt.initialize()
). But… I can’t access to WebRTC directly (like RTCMTLVideoView
). 🤔
I tried several things, like transitive import, etc. but I didn’t find the good recipe ! 😂
If someone has any idea how to do that… 🙏Daria Voronina [JB]
06/29/2022, 3:50 PMTrey
06/29/2022, 8:21 PMJeff Lockhart
06/29/2022, 10:18 PM@BeforeClass
behavior in Android/iOS common tests? kotlin.test has the annotation for Kotlin/Native, as does Junit for JVM. My naive attempt to typealias the two doesn't work on the JVM side.clark
06/30/2022, 2:33 AMcocoapods-generate
is needed to make it work, which requires a certain version of cocoapods
which requires Ruby 2.6.0
which does not run on M1 macs.clark
06/30/2022, 2:34 AMfirebase-kotlin-sdk
and consume it in an iOS app. Getting the following error when I try to build iOS:
ld: framework not found FirebaseAuth
So I tried installing it via pods before running into all the pods issues mentioned above.
Any workarounds would be greatly appreciated!Bao Le Duc
06/30/2022, 7:14 AMpod("AFNetworking") {
version = "~> 4.0.1"
}
pod("AgoraRtcEngine_iOS")
both libraries are available from https://cocoapods.org/ and working with another (standalone) iOS project. However, cinteropAgoraRtcEngine_iOSIosArm64
was failed and I got
Exception in thread "main" java.lang.Error: /var/folders/3j/8k6z66l50dq_d1sjfxl8cphh0000gn/T/10429521223665112771.m:1:9: fatal error: module 'AgoraRtcEngine_iOS' not found
If I removed pod("AgoraRtcEngine_iOS")
, it worked fine and I can import cocoapods.AFNetworking.*
in iOS source-set Kotlin code.
Any help are welcome!Aditya Kurkure
06/30/2022, 12:58 PMB
) that depends on another kmm module (A
). However I also need to call A
from my iOS app. I have a singleton in A
that I initialise in my app and whose methods I call in B
. Currently I get a not initialised exception in module B even though I have initialised my singleton in the app. Any Idea how I can fix this? Both the modules are in a single project and I am specifying their path in my podfile.Javier
06/30/2022, 1:00 PMTrey
06/30/2022, 3:16 PMtimkranen
06/30/2022, 3:38 PMviewModel
scope. But I’m running into problems on iOS with regards to the lifecycle.. Currently my VM is marked as a singleton for iOS, however there are a couple of problems that arise:
• Initially I thought it would be a good idea to cancel the scope in the viewModel on viewDisappeared, but when I’m navigating back to that same screen Koin will provide the same VM with a cancelled coroutine scope, so that breaks stuff..
• Changing the viewModel to be a factory solves this problem, but then I can’t retain state across screen navigation, which isn’t the end of the world and I can make it work, but it seems like it’s limiting? It also introduces the problem of somehow having to manually save state like scroll positions
What are your approaches to the lifecycle of viewmodels on iOS? When do you cancel the scope? Does the VM retain state across navigation?ribesg
07/01/2022, 2:41 PMAndroidManifest.xml
file of a “pure” Kotlin Multiplatform library generated or hidden or something? I have multiple modules which are pure Kotlin and only have code in commonMain
sourceSet but they all have to have an androidMain
folder with an almost empty AndroidManifest.xml
file. Anybody else finding that annoying or I am just nitpicking?kenkyee
07/01/2022, 2:45 PMDavide Giuseppe Farella
07/01/2022, 5:07 PM// something/build.gradle.kts
plugins {
kotlin("multiplatform")
}
kotlin {
jvm()
sourceSets {
val commonMain by getting {
dependencies {
implementation("blablabla")
Then I got an Android module
// client/android/build.gradle.kts
plugins {
id("com.android.application")
kotlin("android")
}
dependencies {
implementation(project(":something")
My Gradle Sync succeeds, but in the Android module, all the dependencies from other modules are unresolved ( screen )
The IDE suggests me to add the dependency to the classpath, but the action adds a weird line, without any progress:
implementation(project(mapOf("path" to ":client")))
Jeff Lockhart
07/02/2022, 4:20 AMrobstoll
07/02/2022, 8:26 PMGillian Buijs
07/03/2022, 6:51 AMkotlinforandroid
07/03/2022, 2:30 PMJeff Lockhart
07/04/2022, 7:28 AMkotlin {
sourceSets {
val androidTest by getting {
resources.srcDir("src/commonTest/resources")
...
doesn't copy the resources from the common location for Android tests. Is there a good way to avoid duplicating these resource folders between source sets (hopefully other than a manual symlink)?Rachel Carandang
07/05/2022, 2:08 PMuli
07/06/2022, 9:55 AMDevendra Kumar Gaur
07/06/2022, 12:52 PMAustin Pederson
07/06/2022, 10:52 PMnative.cocoapods
plugin for the gradle file. I noticed a difference in the output of my podspec and I can't seem to find any information on this change on the webChristoph Wiesner
07/07/2022, 12:00 PMCodable
in iOS: currently nearly all models of our native iOS app implement that protocol and therefore shared KMM models cannot be used in those models (unless you manually write (de)serialization for that shared objects - which is a blocker for us) - seems like a known issue - but i wonder why there is not much more noise around that.
other issues he mentioned:
• Operator overloads do not translate to Swift
◦ e.g. cannot overload operators such as +
, -
, <
etc. (required for conformance to Comparable
for example)
• Cannot take advantage of other protocol conformances, e.g. inheriting from the protocol Sequence
gives a huge amount of functionality such as map
, flatMap
, forEach
etc.
• Integers are all represented as Int32
in Swift - annoying to do conversions to a regular Int
everywhere
• Cannot create non-final classes, meaning we cannot implement any class as Codable
or Strideable
(needed to allow us to loops over calendar dates in a calendar date range)
• Unable to have “Swifty” function names as it’s not possible to remove parameter names, and parameter labels have to be the same as the parameter names. i.e. we cannot have a function like func date(in timeZone: TimeZone) -> Date
would be great if someone can confirm this limitations or provide guidance on how to overcome those.andylamax
07/07/2022, 1:29 PMandylamax
07/07/2022, 1:29 PMBig Chungus
07/07/2022, 1:51 PMMarco Righini
07/07/2022, 8:17 PMTijl
07/08/2022, 7:20 AMandylamax
07/08/2022, 9:26 AM