mboudraa
01/27/2021, 9:34 PMwuseal
01/28/2021, 2:42 AMimport com.xxxxx.xx.xx.X
The android Studio doesn't tips you to do auto import classes
Android Studio Version: 4.2 beta3
Gradle Version: 6.5
Kotlin Plugin Version : 1.4.21-release-Studio4.2-1
KMM Plugin: 0.2.0-release-65-Studio4.2
JVM: 15
Kotlin: 1.4.21
Can you guys understand what i mean? And how to let people to resolve this problem? I need this coding style with gradle composite build to Isolate the KMM build environment 😊PengChunxiao
01/28/2021, 9:26 AMYaniv Sosnovsky
01/28/2021, 11:22 AMTask corecinteropTrueTimeIosException in thread “main” java.lang.Error: /Users/yanivsos/Documents/Projects/Texel/old-co-view-sdk/core/build/cocoapods/synthetic/IOS/core/build/Release-iphonesimulator/TrueTime/TrueTime.framework/Headers/TrueTime.h91: error: use of ‘@import’ when modules are disabled Any idea on how to fix it?
magnumrocha
01/28/2021, 6:37 PMFAILURE: Build failed with an exception.
* What went wrong:
lateinit property variantName has not been initialized
Andy Victors
01/29/2021, 10:28 AMktor
it does not manage async execution for me - the requests API is suspend
based. So I think I have two options:
A) Manage async execution by coroutines inside the common MPP code. From what I recall trying similar things a year ago, there are headaches configuring coroutine contexts for iOS and also some limitations (main thread only). So I am not sure if it all will work at all.
B) Or, I can put async logic into platform code. More code but ok. But still, will I be able to call suspend
marked methods from iOS?
I'd like to have thoughts on this topic from more experienced folks.wuseal
01/29/2021, 11:48 AMFAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':mpplib'.
> No enum constant org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType.DEV
nlindberg
01/29/2021, 6:29 PMFrancis Mariano
01/29/2021, 7:59 PMBuilding for iOS, but the linked and embedded framework 'shared.framework' was built for iOS Simulator.
In previous Xcode version that behaviour did not happened, I changed from simulator to real device and vice-versa so the packtoXCode executed again Did anyone see that already?darkmoon_uk
02/01/2021, 3:08 AMShawn Tucker
02/01/2021, 9:51 AMAnthony f
02/01/2021, 1:48 PMjossiwolf
02/01/2021, 2:54 PMHimanshu Singh
02/01/2021, 4:53 PMReed Ellsworth
02/02/2021, 5:19 AMivano
02/02/2021, 8:44 AMRan
02/02/2021, 8:46 AMstringByAddingPercentEncodingWithAllowedCharacters
doesn’t work on Kotlin Native. My code is like following:
actual fun urlEncode(url: String) : String {
val set = NSCharacterSet.URLQueryAllowedCharacterSet().mutableCopy() as NSMutableCharacterSet
set.addCharactersInString("+&")
return NSString.create(string=url).stringByAddingPercentEncodingWithAllowedCharacters(
allowedCharacters = NSCharacterSet.URLQueryAllowedCharacterSet()
) ?: ""
}
My test code:
@Test
fun testUrlEncode() {
assertEquals(
"https%3A%2F%2Fmontageapps.com%3Ftoken%3Drth%26price%3Dinvaluable",
urlEncode("<https://montageapps.com?token=rth&price=invaluable>")
)
}
Test result:
kotlin.AssertionError: Expected <https%3A%2F%<http://2Fmontageapps.com|2Fmontageapps.com>%3Ftoken%3Drth%26price%3Dinvaluable>, actual <<https://montageapps.com?token=rth&price=invaluable>>.
Ran
02/02/2021, 10:16 AMMichal Klimczak
02/02/2021, 10:18 AMPaul Woitaschek
02/02/2021, 4:54 PMptsiogas
02/02/2021, 5:01 PMDaniel Burnhan
02/02/2021, 11:03 PMNeal Sanche
02/03/2021, 12:34 AMsuspend fun getEpisodes(page: Int?): EpisodePage
On the Swift side, have been try to write code but always am told:
Cannot convert value of type 'Int32' to expected argument type 'KotlinInt?'
This confuses me, and I'm sure there's a simple explanation. I can change the function signature to getEpisodes(page: Int = 1)
instead, and that's much easier to deal with. So I'm curious what's going on here?John O'Reilly
02/03/2021, 1:46 PMHannes
02/03/2021, 2:35 PMcafonsomota
02/03/2021, 3:04 PMSebastian Kaspari
02/03/2021, 4:25 PMgammax
02/04/2021, 12:26 AMJeff Lockhart
02/04/2021, 1:13 AMjava.lang.NoClassDefFoundError: Failed resolution of: Lpackage/of/my/JavaClass;
I need to workaround a Kotlin/Java interop bug in a library where an enum is not accessible in Kotlin because it is part of a non-accessible parent class.andylamax
02/04/2021, 10:27 AM