Matouš Skála
10/21/2021, 9:41 AMkotlin {
targets.withType(org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget) {
compilations.get("main").kotlinOptions.freeCompilerArgs += "-Xexport-kdoc"
}
}
to build.gradle, I get the following error during gradle configuration:
Caused by: groovy.lang.MissingMethodException: No signature of method: build_85rawsls4t4om6gyhg7yes7kk.kotlin() is applicable for argument types: (build_85rawsls4t4om6gyhg7yes7kk$_run_closure6) values: [build_85rawsls4t4om6gyhg7yes7kk$_run_closure6@6b90c290]
Possible solutions: notify(), toString(), toString(), toString(), toString(), split(groovy.lang.Closure)
Any hint what could be wrong?Ron
10/21/2021, 1:06 PM@SharedImmutable
to properties in a class but got this error: SharedImmutable is applicable only for top level declarations
. Also tried to run .freeze()
but this function is not available. what am I missing?edenman
10/21/2021, 8:00 PMSylvain Patenaude
10/21/2021, 8:22 PMUByteArray
where some generated method can't find a static method or something like that.
Did something happen with unsigned types with kotlin >= 1.4?
Thanks in advance,
Sylvainjimmyt
10/22/2021, 12:45 AMxiaobailong24
10/22/2021, 1:07 AMannotationProcessor
or kapt
with jvm target but without android target?Pavel Dektev
10/22/2021, 7:57 AMcoolcat
10/22/2021, 4:10 PMCould not determine the dependencies of task ':shared:cinteropSharedIos'.
> Could not resolve all dependencies for configuration ':shared:iosSharedCInterop'.
> Authentication scheme 'all'(Authentication) is not supported by protocol 'file'
Any help appreciated.kenkyee
10/22/2021, 5:31 PMcedric
10/22/2021, 5:40 PMKirill Langer
10/22/2021, 6:24 PMVitaliy Zarubin
10/22/2021, 7:37 PMDmitriy Tarasevich
10/23/2021, 12:28 PMfvink
10/23/2021, 7:08 PMPhilip Dukhov
10/24/2021, 7:12 PMMichael Clancy
10/25/2021, 10:11 AMPiotr Prus
10/25/2021, 11:58 AMinfrastructure
that contains repositories, apis, responsesDTO, etc and domain
that contains usecase interfaces and domain specific data classes.
I want ios and android client to know only domain
, without any idea of infrastructure
, so in the build.gradle of my shared
I have:
api(project(":domain"))
implementation(project(":infrastructure"))
The issue I am facing: The ios client do not see any of domain classes if theses are not used in shared
. Is there any way to force compilation of these? Android client sees all of these classes correctly and can make a use of them.Lital Amos
10/25/2021, 3:12 PMExecuting of 'pod install' failed with code 1.
Error message:
Please, check that file "/Users/workstation/Documents/Workspace/iOS.App/Podfile" contains following lines in header:
source '<https://cdn.cocoapods.org>'
Please, check that each target depended on connectivity contains following dependencies:
I tried changing our Podfile that currently has source '<https://github.com/CocoaPods/Specs.git>'
this to use the CDN url, ran pod repo update and pod install but this does seem to help.
Any insights on how to resolve this?Yashar
10/25/2021, 3:18 PM0.7.1
https://kotlinlang.slack.com/archives/C3SGXARS6/p1528475089000678 but I wanted to get another opinion from the community. @kpgalligan (I was told you might be familiar with this).
Our dynamic scanner has identified a use of private iOS API: Frameworks/Core.framework/Core: _unsymbolicated_function accessed _NSBlock
within a KMP library module, which would block the app from getting published in the App store. Upon some digging, I came across this similar old issue on github with fix already merged. So my question is, has anyone else come across this? And if so, is this issue already addressed and have folks been fine publishing to App store without rejections?Kareem Radwan
10/25/2021, 3:45 PMstartKoin
I got an Exception
Uncaught Kotlin exception: kotlin.IllegalStateException: KoinApplication has not been started
any one have an experience on this way before ?John O'Reilly
10/25/2021, 4:59 PMYehonatan Levi
10/25/2021, 5:30 PMEirik Vale Aase
10/25/2021, 9:53 PMxiaobailong24
10/26/2021, 9:11 AM#ifndef socket_swift_bridge_h
#define socket_swift_bridge_h
// <https://github.com/socketio/socket.io-client-swift>
@import SocketIO;
#endif /* socket_swift_bridge_h */
then get error:
Exception in thread "main" java.lang.Error: /xxx/socket_swift_bridge.h:14:1: error: use of '@import' when modules are disabled
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:152)
at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.indexDeclarations(Indexer.kt:1003)
at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:992)
at org.jetbrains.kotlin.native.interop.indexer.NativeIndexKt.buildNativeIndex(NativeIndex.kt:91)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:268)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:76)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:38)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:60)
so, how to solve it? thxMatti MK
10/26/2021, 9:56 AMsetAllowsCellularAccess
anymore relevant for networking with ktor on iOS KMM, for example, as seen in the sample code linked below? I’m using the default engine (https://ktor.io/docs/http-client-engines.html#default) and network requests seem to go through just fine on WiFi and cellular which makes me wonder if there’s some edge case that would require explicitly calling setAllowsCellularAccess
with true
?
https://github.com/Kotlin/kmm-production-sample/blob/master/shared/src/iosMain/kotlin/com/github/jetbrains/rssreader/core/IosHttpClient.kt#L11Stefan Oltmann
10/26/2021, 10:21 AMBrian Donovan
10/26/2021, 2:48 PMJim
10/26/2021, 6:59 PMBrian Donovan
10/26/2021, 7:49 PMAndrey Chernov
10/27/2021, 7:35 AMwire
(https://github.com/square/wire) now but it’s have android official sample only