Slackbot
09/18/2021, 11:12 AMMike
09/20/2021, 10:10 AMHadji Musaev
09/20/2021, 11:16 AMForrest Pangborn
09/20/2021, 7:46 PMkotlinx-atomicfu
as a common
dependency?
i tried for awhile to include 0.16.3
as such for awhile today with the artifact specified in the project README
. it claims the gradle plugin approach can be avoided if intended use is just within a common
sourceset, but i couldn't get it to work unless i used a different artifact name.
didn't work: org.jetbrains.kotlinx:atomicfu-common
worked: org.jetbrains.kotlinx:atomicfu
brabo-hi
09/20/2021, 8:47 PMbrabo-hi
09/20/2021, 9:13 PMAmritansh
09/20/2021, 10:23 PM./gradlew :shared:build
my KMM project Task :shared:compileKotlinMetadata FAILED
and in the stacktrace I am getting this Unresolved reference: newSingleThreadContext
. I am using kotlin : 1.5.31 and coroutines version 1.5.2-native-mt
. Any idea what might be the issue? I had to comment out
#kotlin.mpp.enableGranularSourceSetsMetadata=true
#kotlin.native.enableDependencyPropagation=false
in the gradle.properties since sql delight does not support hmpp. can that be the issue here?jean
09/21/2021, 9:06 AMkotlin.IllegalStateException: There is no event loop. Use runBlocking { ... } to start one.
Sebastian Oßner
09/21/2021, 9:53 AMBorja
09/21/2021, 1:39 PMdyld: Library not loaded:
Does anyone had the same issue? I built a minimum repro repo here: https://github.com/flaquir4/MinimumReprosushma nayak
09/21/2021, 4:43 PMignoreUnknownKeys = true
. Still get the error
ERROR - Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.
My json config -
Json {
isLenient = true
ignoreUnknownKeys = true
prettyPrint = true
}
Scott Kruse
09/21/2021, 7:50 PMmkrussel
09/21/2021, 8:40 PM/var/folders/qt/q46m5kx100j30g9hdl4rzf_h0000gn/T/16722905496877169974.m:1:9: fatal error: could not build module 'PangeaMapView'
Does Kotlin not support outputs from Xcode 13?
Are there any logs with more detailed information about the failure?
I'm on Kotlin 1.5.21 to work with Jetpack Compose.MarkRS
09/22/2021, 8:44 AMNicolas Verinaud
09/22/2021, 10:59 AMinterface CanRetrieveAuthorizationToken {
suspend fun getToken(): String
}
The corresponding protocol :
public protocol CanRetrieveAuthorizationToken {
/**
@note This method converts instances of CancellationException to errors.
Other uncaught Kotlin exceptions are fatal.
*/
func getToken(completionHandler: @escaping (String?, Error?) -> Void)
}
Justin
09/22/2021, 5:44 PMtheme
, which is a global appearance setting (you can think of it sort of like light/dark mode) that is only known at runtime.
In other words, this library needs to return everything from Color.primary
to FloatingActionButton()
(for example) based on the runtime-determined theme
of the app.
The theme doesn't change across the app lifecycle (i.e. we know right at init what the theme will be and it's a constant for the rest of that app instance's existence), which is helpful.
What I'm struggling with is where this theme
setting should live. All of the components in this design system library will need to be able to read this value to work correctly, so I can imagine having it be a global var that consumers can set on the library itself.
But when I attempt to build something like this:
interface Theme {
companion object {
var value: Theme = DefaultTheme()
}
}
class DefaultTheme(...): DefaultTheme {...}
...I see the following warning in the console:
w: Theme.kt: With old Native GC, variable in singleton without @ThreadLocal can't be changed after initialization
And I'd generally like to avoid stored mutable state with my K/N libraries if at all possible.
Would love to hear peoples' thoughts on the most idiomatic/safest approach to this!Jim
09/22/2021, 8:44 PM@JsName
and @JVMName
for native? Accessing the resulting classes from c++ is pretty unpleasant <http://kotlin.com|kotlin.com>.jim.blah.Blah
. If there isn’t I’m considering putting a shim in my native source set at the top right under kotlin so at least it would be kotlin.Blah
. Am I missing something here? Thanks!hallvard
09/22/2021, 8:57 PMexpect
declaration, since actual
functions cannot have default argument values. I have the @JvmOverloads
annotation in the actual implementation (Idea warns me it has no effect since there are no default arguments), and also tried to include it in the expect implementation (no warning from Idea), but to no avail. So my test doesn't compile and cannot run ... What did I miss?Gene Cahill
09/23/2021, 5:34 PMsaket
09/24/2021, 4:18 AMJAVA_HOME
variable. It seems like Xcode doesn’t source any shell profile during its build process causing JAVA_HOME
to resolve to null
. I checked this by adding this to my `build.gradle`:
println("JAVA_HOME = ${System.getenv("JAVA_HOME")}")
Folks who’re using AGP 7.0, have any of you run into this before?Michal Klimczak
09/24/2021, 8:16 AMgradle :shared:assembleSharedDebugXCFramework
. This gradle comand is run as a Build Phase in xcode and the framework is embedded via framework search paths.
Reproducing issue:
1. Change sth in shared module code.
2. Run build in xcode (takes a lot of time because xcframework is fully rebuilt).
3. The change is applied, everything fine. ✅
4. Run build in xcode without changing anything (quick, the xcframework is not rebuilt fully). This step is crucial, without it the changes are applied just fine.
5. Change sth in shared module code again.
6. Run build in xcode (takes a lot of time because xcframework is fully rebuilt).
7. The change is not applied ‼️
8. Run build in xcode without changing anything (quick, the xcframework is not rebuilt fully).
9. Only now the change is applied. ✅
I would rather say it's an xcode issue, but not sure. It's like in pt.7 the xcode built the framework but somehow didn't pick it yet. Only the next time. I think I had sth similar with regular frameworks and packForXcode
but not 100% sure.FadiBouteraa
09/24/2021, 12:48 PMivano
09/24/2021, 7:06 PMRobert
09/25/2021, 7:36 AMThis version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2020.3.1 or newer.
avinash sai pavan munnangi
09/26/2021, 9:33 AMRohan Maity
09/26/2021, 11:20 AMandroid, iOS and Web
For the web app somehow my generated JS file is getting blocked
The resource was blocked due to MIME type ("text/html") mismatch (X-Content-Type-Options: nosniff).
I have just done the simple Hello world
only,
Its working on android and iOS
has anyone encountered the same issue ?
Any help here would be appreciated
More info in repliesrobjperez
09/27/2021, 11:10 AMException in thread "main" java.lang.Error: /var/folders/0d/4r7ddycs7msfghjht2w29hdw0000gq/T/12354154991012977801.m:1:9: fatal error: could not build module 'Foo'
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:192)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:68)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:14)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:531)
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)
in the interop task :sdk:cinteropFooIosArm64
It is very hard to get any clue with that error 😞Tarika Chawla
09/27/2021, 2:43 PMjimmyt
09/27/2021, 4:53 PMMarkRS
09/28/2021, 10:14 AMMarkRS
09/28/2021, 10:14 AMlouiscad
09/28/2021, 1:05 PMMarkRS
09/28/2021, 1:30 PMEtienne
10/27/2021, 10:15 PMMarkRS
10/28/2021, 10:14 AMEtienne
10/28/2021, 12:26 PMephemient
10/28/2021, 7:42 PM