ade
11/14/2022, 10:26 AMprivate fun String.strip() = this
.replace(oldValue = "https://", newValue = "", ignoreCase = true)
.replace(oldValue = "http://", newValue = "", ignoreCase = true)
.substringBefore(delimiter = "?")
which was called from the same file on a String. This has been working fine until recently. Now suddenly, the function does nothing ("https://" prefix is not removed from a string) on Android but works like before on iOS. I think it was after bumping to Kotlin 1.7.20, AGP 7.3 and compileSdk 33. What could be happening here?
Theory: Is something causing it to call through to the Java String.strip() function instead, which was added in Java 11? Does it have to do with desugaring?John Huang
11/14/2022, 7:42 PMAntonin Porta
11/15/2022, 9:06 AMkevin.cianfarini
11/15/2022, 5:38 PMsimon.vergauwen
11/16/2022, 8:31 AMInvalid device: Apple Watch Series 5 - 44mm
8405
Any ideas how to fix this? It's been blocking a couple projects, and I've tried a couple things but none seems to work. If I check the MacOs runner to list the simulators it lists this specific simulator, and it's amongst the list 🤔An Tran
11/16/2022, 9:08 AMKotlin enum
from Swiftalexfacciorusso
11/16/2022, 12:43 PMWerner Altewischer
11/16/2022, 8:23 PMJohn Huang
11/16/2022, 10:42 PMSrijit Saha
11/17/2022, 4:38 AMSlackbot
11/17/2022, 8:50 AMmarcinmoskala
11/18/2022, 7:30 AMKotlin/JVM, Kotlin/JS and Kotlin/Native are three technologies used to compile Kotlin code into different platforms. For instance, Kotlin/JVM can be used to compile Kotlin code for Android or for purely JVM platform, and Kotlin/Native can be used to compile Kotlin code for iOS, watchOS or Android NDK platform. For many of those platforms, there are multiple targets, like when we compile with Kotlin/Native to iOS platform, we can Apple iOS on ARM64 or Apple iOS simulator on x86_64.
doubov
11/18/2022, 9:12 PMw: duplicate library name
warnings are. I recently upgraded one of the libraries (Turbine) to the latest version. It was previous using 1.6.1
coroutine version, but the latest version upgraded coroutines to 1.6.4
. Our app is using 1.6.3
version and only after upgrading the Turbine library did we start seeing the duplicate library warning. Did this start happening because Turbine is using a later version of the coroutines library? With the -Werror
flag set, compilation started failing and I'm trying to understand if I should be looking for a way to suppress this warning or will that come back to bite us in the future?Daniel
11/18/2022, 11:08 PMDaniel
11/19/2022, 6:06 PMDaniel
11/20/2022, 3:10 PMPiotr Krzemiński
11/21/2022, 10:10 AMvalue class
in a multiplatform project? Previously I used inline class
but I see it’s deprecated now. Using value class
produces an error “Value classes without @JvmInline annotation are not supported yet” and I cannot use @JvmInline
in a multiplatform project obviously. What’s the recommended path forward? Keep using inline class
? What’s the plan of proper multiplatform support for value class
?
Once we clarify all of it, I’ll propose some changes to the docs: https://kotlinlang.org/docs/inline-classes.htmlMihai Voicescu
11/21/2022, 10:32 AMJason Millard
11/21/2022, 2:57 PM:shared:embedAndSignAppleFrameworkForXcode
to the Run Script for the widget. Then I manually had to remove the framework in the extension, otherwise TestFlight wouldn’t accept the binary.
I then went to do the same for the next extension, and started getting sporadic build success and failures. I’m guessing Xcode is compiling multiple things at the same time which might be causing issues?
I decided to switch to CocoaPods route thinking I’d get the one framework I could easily add to each of the targets. Again, this worked for one extension, and then sporadic build success and failures with multiple extensions.
Is there any examples out there for best practice when sharing KMM between multiple targets?
UPDATE:
worked on this all day, and in my CI, turns out I needed to run ./gradlew podInstall
first before doing anything vs manually doing pod install
krzysztof
11/21/2022, 4:13 PMnative.cocoapods
plugin and I try to configure it in a way that publish
task would create a .podspec
file and .xcframework
in given hierarchy:
- buildDir/
- File.podspec
- frameworks/
- framework.xcframework
Does anyone have an idea how to achieve that? Looking at cocoapods
DSL and cannot find anythingHossein Amini
11/21/2022, 6:21 PMDaniel
11/21/2022, 7:22 PMDaniel
11/21/2022, 7:23 PMJohann Pardanaud
11/21/2022, 11:12 PMexpect
a function with different returns types in the actual implementations?
I have suspend fun makeRequest(): Unit
for my native target, but Kotlin doesn’t allow to apply @JsExport
due to the suspend keyword so I’ve created fun makeRequest(): Promise<Unit>
for the JS target.
However, due to the different return types I can’t find any way to expect
in my common code the makeRequest
function. Is there any workaround?Piasy
11/22/2022, 1:04 AMChristian Würthenr
11/22/2022, 1:05 PMimport cocoapods.*
package does not become available. If I remove the import directive the project builds find and I also see the cocoapod files in the build folder.
cocoapods {
summary = "CocoaPods test library"
homepage = "<https://github.com/JetBrains/kotlin>"
version = "1.0"
ios.deploymentTarget = "14.1"
pod("AFNetworking") {
version = "~> 4.0.1"
}
}
That's my setup, but I can't import import cocoapods.AFNetworking.*
Konstantin Tskhovrebov
11/22/2022, 1:31 PMPaulo Cereda
11/22/2022, 7:01 PMSlackbot
11/22/2022, 11:03 PMMychael Koelfat
11/23/2022, 9:36 AMFramework not found shared
I dont exactly understand what I did wrong. However, the search path given is $(SRCROOT)/../shared/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)
though here the build folder doesnt even exist in one version, though it does on my windows laptop. Here however, the xcode-frameworks folder doesnt exist either. Does anyone have any idea, or can anyone give me any insight on what's going on?Mychael Koelfat
11/23/2022, 9:36 AMFramework not found shared
I dont exactly understand what I did wrong. However, the search path given is $(SRCROOT)/../shared/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)
though here the build folder doesnt even exist in one version, though it does on my windows laptop. Here however, the xcode-frameworks folder doesnt exist either. Does anyone have any idea, or can anyone give me any insight on what's going on?Konstantin Tskhovrebov
11/23/2022, 1:57 PMembedAndSignAppleFrameworkForXcode
name dependent task.
or check all your tasks in terminal
./gradlew tasks