AnaR
10/12/2021, 11:18 PMOla Adolfsson
10/13/2021, 8:00 AMHamza Ahmad
10/13/2021, 11:12 AMAlfred Lopez
10/13/2021, 1:40 PMPaul Woitaschek
10/13/2021, 2:49 PMBenoye
10/13/2021, 3:24 PMfatal error: module 'Firebase' not found
Not the first time that I cannot get a pod to install through gradle..Waqas Tahir
10/13/2021, 4:29 PMpererikbergman
10/14/2021, 2:21 PMobject MySingleton {
var myInterface: MyInterface? = null
fun hello(msg:String) {
myInterface?.hello(msg)
}
}
interface MyInterface {
fun hello(msg: String)
}
And then in androidApp
MySingleton.myInterface = object : MyInterface {
override fun hello(msg: String) {
// do some magic
}
}
And in iOS something like this:
class MyInterfaceImpl : MyInterface {
func hello(msg: String) {
// do some magic
}
}
MySingleton.shared.myInterface = MyInterfaceImpl()
But it just crashes on iOS, no clear error message as well.
Anyone have any suggestion on how to do this?ankushg
10/14/2021, 7:05 PMSome Kotlin/Native targets cannot be built on this linux_x64 machine and are disabled:
Is there a way to skip downloading Konan when there isn't even a valid native target to compile?edenman
10/14/2021, 11:33 PMMatti MK
10/15/2021, 7:41 AMENABLE_BITCODE
as FALSE
and finally it worked. This is obviously not the best way to go about things: is there any guide that would explain what kind of a setup a creating a release build for the KMM lib requires?Tarika Chawla
10/15/2021, 7:53 PMJishin Dev [JD]
10/16/2021, 11:56 AMBackendException
on AS when building a multi module KMM project which uses Jetpack compose
org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
and this as render problems when preview tries to load in between
java.lang.NoSuchMethodError: 'void androidx.compose.material.TextKt.Text...'
Found a few other people who had the same issue here, on the issuetracker and even on SOF but none of the solutions that worked for them, worked for me unfortunately.
More details in the 🧵 .xiaobailong24
10/16/2021, 12:04 PMMarkRS
10/17/2021, 10:18 AMCould not find org.jetbrains.kotlin:kotlin-parcelize:1.5.31.
Searched in the following locations:
- <https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-parcelize/1.5.31/kotlin-parcelize-1.5.31.pom>
- <https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-parcelize/1.5.31/kotlin-parcelize-1.5.31.pom>
Is it relevant that Maven says it's at
<https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-parcelize-runtime/1.5.31/kotlin-parcelize-runtime-1.5.31.pom>
If so, how do I refer to it properly? I'm already using the parcelize plugin like the docs tell me to, but I still have this problem 😕darkmoon_uk
10/17/2021, 12:52 PMmodule-info.java
under <jvmSourceSet>/java
but the IDE is not reacting.
My immediate case is to add java.desktop
to use some AWT classes.Eric Ampire [MOD]
10/17/2021, 7:42 PMHari K
10/18/2021, 8:15 AMClock.System.now()
deviant
10/18/2021, 11:00 AMKamilH
10/18/2021, 12:49 PM- data - has pod dependency on any library, eg. AFNetworking and is using this
- shared - has dependency on data module and uses its code
- iosApp - has dependency on shared module and uses its code
I’m trying to connect the dots, but when I’m trying to build an app I’m getting following error:
> Task :data:cinteropAFNetworkingIosX64 FAILED
Exception in thread "main" java.lang.Error: /var/folders/2q/gjhd6ng16j51tnmw772w02k40000gp/T/10252343052379226466.m:1:9: fatal error: module 'AFNetworking' not found
John O'Reilly
10/18/2021, 3:45 PMMainScope
.....looking to test it out by calling from a main
function in jvmMain
source.....is there recommended approach to doing this?jimmyt
10/19/2021, 3:26 AMGenerating workspace in `shared/build/cocoapods/synthetic/IOS/shared`
[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod `web3swift.pod` depends upon `secp256k1.c`, `keccak.c`, and `scrypt.c`, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
[!] Automatically assigning platform `iOS` with version `13.0` on target `App-iOS` because no platform was specified. Please specify a platform for this target in your Podfile. See `<https://guides.cocoapods.org/syntax/podfile.html#platform>`.
The CocoaPods section of my build.gradle.kts file (which is located in "Project/shared") looks like this:
version = "1.0"
ios()
cocoapods {
summary = "A summary to make CocoaPods happy"
homepage = "A page to make CocoaPods happy"
ios.deploymentTarget = "13.0"
pod("web3swift.pod") {
}
useLibraries()
podfile = project.file("../iosApp/Podfile")
}
And my Podfile (which is located in "Project/iosApp") looks like:
source '<https://cdn.cocoapods.org>'
use_modular_headers!
target 'App-iOS' do
platform :ios, '13.0'
end
Any idea why I am still getting this error and warning, even though I have clearly implemented the fix in the Podfile? Any help is much appreciated.mittapalli hareesh
10/19/2021, 8:15 AMSystem.currentTimeMillis()
in KMM ?Gellért Biró
10/19/2021, 8:39 AMTanuj Soni
10/19/2021, 10:30 AMitems
JSON Array? How should i structure my data class?xxfast
10/19/2021, 12:49 PMjean
10/20/2021, 7:30 AMnative-mt
version of the coroutine library for my ios target by doing so :
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
}
}
val androidMain by getting
val iosMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core") {
version {
strictly("1.5.2-native-mt")
}
}
}
}
is it the correct way to do it?Michael Clancy
10/20/2021, 10:21 AMMartin Rajniak
10/20/2021, 2:58 PMApple silicon targets
, does anyone know anything about when ktor
will add support for this as well?
There doesn't seem to be much traffic on those issues
https://youtrack.jetbrains.com/issue/KTOR-3082
https://youtrack.jetbrains.com/issue/KTOR-3144Trevor Stone
10/20/2021, 4:33 PMThe consumer was configured to find an API of a library compatible with Java 16, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally. However we cannot choose between the following variants of project :abc:xyz:
- debugApiElements
- debugRuntimeElements
- jvmApiElements
- jvmRuntimeElements
- releaseApiElements
- releaseRuntimeElements
If I disable android support from the project it builds without issue. It has been working fine on kotlin 1.5.31. Am I missing something that was a breaking change?