Slackbot
09/23/2022, 9:38 AMcoolcat
09/23/2022, 3:56 PMExecution failed for task ':shared:podGenIOS'.
> 'pod install' command failed with an exception:
Cannot run program "pod" (in directory "/Users/.../shared/build/cocoapods/synthetic/IOS"): error=2, No such file or directory
Full command: pod install
Possible reason: CocoaPods is not installed
Please check that CocoaPods v1.10 or above is installed.
To check CocoaPods version type 'pod --version' in the terminal
To install CocoaPods execute 'sudo gem install cocoapods'
Needless to say Cocoapods working fine from the command line.eygraber
09/25/2022, 8:39 PMremoveEldestEntry
of a LinkedHashMap
?Martin Štrambach
09/26/2022, 11:10 AMclass MyClass {
...
companion object {
fun companionFun()
}
}
When we generate ObjC code out of this example it creates one interface for MyClass
and another one for MyClass.Companion
.
Then, in Swift we use it as MyClass.companion.companionFun()
. The issue is companion
nor companionFun
aren’t static because companion
is a singleton object.
Is there a way how to generate Swift static functions for Kotlin functions without the need of second interface?
I found one feature ticket which would potentially solve this issue but it is without any activity for a long time. https://youtrack.jetbrains.com/issue/KT-44862Robert Wijas
09/26/2022, 12:09 PMLandry Norris
09/26/2022, 1:14 PMsvenjacobs
09/27/2022, 5:48 AM@Preview
annotation. Although I added the compose.preview
dependency
val commonMain by getting {
dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.ui)
implementation(compose.uiTooling)
implementation(compose.preview) // <--- see here
}
}
the androidx.compose.ui.tooling.preview.Preview
annotation is not found in the classpath of the code placed in commonMain
. What am I doing wrong?
JetBrains Compose 1.2.0-beta01
, Android Studio Electric Eel Beta 1Kevin Zhang
09/27/2022, 7:53 AMfrom\into in the bootJar task
copy js files into the target directory:
tasks.getByName<BootJar>("bootJar") {
val webpackTask = tasks.getByName<KotlinWebpack>("reactBrowserDevelopmentWebpack")
dependsOn(webpackTask) // make sure JS gets compiled first
from(File(webpackTask.destinationDirectory, webpackTask.outputFileName)){
into("BOOT-INF/classes/static/js/src")
}
archiveBaseName.set("${project.name}-with-dependencies")
mainClass.set("com.kevin.FullStackApplicationKt")
archiveClassifier.set("boot")
}
Friedger
09/29/2022, 4:02 PMMeherdatta Chepuri
09/29/2022, 7:09 PMPiotr Prus
09/29/2022, 10:41 PMMike Digman
09/30/2022, 1:30 AMImageBitmap
. I'm aware of ImageComposeScene
in Compose Desktop and the various Android View
mechanisms that uses the the backing canvas. Is there anything cross-platform?Tijl
09/30/2022, 9:31 AMred
, blue
etcKartik Prakash
09/30/2022, 4:30 PMReason: AMDeviceSecureInstallApplicationBundle failed with err = -402620375(The code signature version is no longer supported.)
diesieben07
09/30/2022, 6:56 PMkotlinOptions.freeCompilerArgs += listOf("-Xcontext-receivers")
in the JVM compilation. But I don't know how to do it for the common module, since it does not seem to have a compilation. The IDE keeps reporting "The feature "context receivers" is experimental and should be enabled explicitly" in common code.Kirill Zhukov
10/01/2022, 12:15 AM.def
file and link binaries or something, is there Gradle plugin or examples on how to do that? (relatively new to KMM as well as Native ecosystem)Gillian Buijs
10/01/2022, 11:20 AMEugene Maksymenko
10/02/2022, 8:42 PMArun Joseph
10/03/2022, 7:32 PMhfhbd
10/04/2022, 3:45 PMSmorg
10/04/2022, 7:29 PMKartik Prakash
10/05/2022, 1:42 AMld: '/shared/build/cocoapods/synthetic/IOS/build/Release-iphoneos/FirebaseCrashlytics/FirebaseCrashlytics.framework/FirebaseCrashlytics' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/shared/build/cocoapods/synthetic/IOS/build/Release-iphoneos/FirebaseCrashlytics/FirebaseCrashlytics.framework/FirebaseCrashlytics' for architecture arm64
Has anyone seen this issue or know a workaround?zt
10/05/2022, 3:47 AMFoso
10/05/2022, 11:03 AMGreg
10/05/2022, 5:54 PMTolriq
10/06/2022, 6:38 AMSarav Ramaswamy
10/06/2022, 9:36 PMdarkmoon_uk
10/07/2022, 8:51 AMpackForXcode
/`buildForXcode` task implemented - has it been deprecated?zt
10/08/2022, 4:21 AMAdam Cooper
10/08/2022, 7:26 PMrouting {
static("scripts") {
... // Serve JavaScript files from this endpoint
}
}
But instead of just writing JavaScript, I'd prefer to write Kotlin which is then compiled to JavaScript, and serve those generated files.
I found the full-stack tutorial in the docs, but the server is written in JavaScript and serves a full React application. I am serving a mostly-static webapp with a little bit of JavaScript.Adam Cooper
10/08/2022, 7:26 PMrouting {
static("scripts") {
... // Serve JavaScript files from this endpoint
}
}
But instead of just writing JavaScript, I'd prefer to write Kotlin which is then compiled to JavaScript, and serve those generated files.
I found the full-stack tutorial in the docs, but the server is written in JavaScript and serves a full React application. I am serving a mostly-static webapp with a little bit of JavaScript.jw
10/08/2022, 9:53 PMAdam Cooper
10/08/2022, 10:05 PMhead {
script(type = ScriptType.textJavaScript, src = "/static/scripts/adamcooper-sh.js") {}
}
which does download the script successfully, so that's good. But I am unsure how to load functions from the script.
button(classes = "fa fa-copy wordleCopyButton") {
onClick =
"copyToClipboard(document.getElementById('$solutionID'));"
}
The copyToClipboard
function comes from my compiled JS. It throws a ReferenceError
because it can't find the reference.jw
10/08/2022, 11:17 PMglobalThis
so they're available as top-level functions like you've written there.Adam Cooper
10/08/2022, 11:21 PM