Ayush Bansal
07/14/2022, 9:13 AMDavid Newell
07/14/2022, 12:13 PMJavier
07/14/2022, 1:01 PMxiaobailong24
07/14/2022, 3:31 PMMobile Dev.
07/14/2022, 10:50 PMuli
07/15/2022, 2:25 PMmbonnin
07/15/2022, 3:12 PMokio.Filesystem.SYSTEM
from commonMain
when I only have JVM and macOS targets?Anton Afanasev
07/15/2022, 3:30 PMvar onStateChanged: ((from: State, to: State) -> Unit)?
translated to:
@property void (^ _Nullable onStateChanged)(State *, State *) __attribute__((swift_name("onStateChanged")));
which makes this function signature problematic to read on iOS.
Are there any way to pass/enforce argument name on k\n?
PS. I mean that argument names from
and to
are ignored during kotlin to swift translation.Aditya Kurkure
07/16/2022, 9:06 AMcommonMain
and AndroidMain
the same way any normal multi module android library written in kotlin is compiled or are there any other changes that the multiplatform plugin adds?Sam
07/16/2022, 10:50 AMMendess
07/16/2022, 8:37 PMJavier
07/17/2022, 9:50 PMmingw
?Raymond Chan
07/18/2022, 10:12 AMkotlin.Result
on swift with generic? Seems generic is not recognized and when trying to get items on Swfit, Any?
is the return type.
In Kotlin
class SampleClazz {
fun funcThatReturnKotlinResult(): Result<Int> {
return Result.success(10)
}
}
In Swift, Int
generic is not being recognized:Arkadii Ivanov
07/18/2022, 12:12 PMTim Schraepen
07/18/2022, 6:27 PMCannot access class 'io.ktor.util.pipeline.PipelineContext'. Check your module classpath for missing or conflicting dependencies
On these lines:
//file:Server.kt
fun main() {
embeddedServer(Netty, 9090) {
routing {
get("/hello") {
this // <- does not compile
// call.respondText("Hello world") // <- does not compile either
}
}
}.start(wait = true)
}
The Gradle build works fine.
Seems like it's an issue where the modules have separate dependencies, but IntelliJ doesn't make the distinction (loads everything on to the classpath) which ends up in conflicting dependencies.
I've got Java 11 as the Project SDK (but neither 8 nor 17 don't work either), and I've got the latest Kotlin version (currently 221-1.7.10-release-333-IJ5591.52)eygraber
07/18/2022, 6:38 PMpublic sealed class Foo
public expect class Bar : Foo
When I define the actual class in the same package and module in a platform source set (e.g. jvmMain
):
public actual class Bar : Foo()
I get an error that says:
Inheritance of sealed classes or interfaces from different module is prohibited
Shubham Dwivedi
07/18/2022, 10:44 PMeygraber
07/19/2022, 4:57 AMiosArm64Test
but Gradle says that there is no task registered with that name. There are tasks registered for iosX64Test
and iosSimulatorArm64Test
. Is that expected?
I'm running this on Linux; would that affect the iosArm64Test
task from getting registered (and if so, why not the others)?Grégory Lureau
07/19/2022, 10:33 AMGillian Buijs
07/19/2022, 12:14 PMAli Khaleqi Yekta
07/19/2022, 6:35 PMandroidMain
)_; I'd be really happy to even get a clue of what to touch to make this work. I tried countless ways but nothing worked: https://stackoverflow.com/questions/73006307/gradle-sync-cannot-find-a-variant-matching-build-type-null-and-product-flavoeygraber
07/20/2022, 12:49 AMiosSimulatorArm64Test
and macosArm64Test
are getting skipped on a Mac m1 with an arm64 jdk. The X64 tasks are working.
Anyone know why they would get skipped?Norbi
07/20/2022, 11:04 AMSam
07/21/2022, 3:54 PMembedAndSignAppleFrameworkForXcode
in the build phase.
This happens when attempting to upload to the appstore (everything works locally)
The binary file '<http://iosApp.app/Frameworks/shared.framework/shared|iosApp.app/Frameworks/shared.framework/shared>' is not permitted. Your app can't contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles.
Davide Giuseppe Farella
07/22/2022, 8:34 AMapp
module Jvm+Android, but I’ve seen a very old problem on Android Studio, which is the “Unresolved reference” for components from multiplatform modules. It compiles, but it’s impossible to work in this way.
Any drawback in having an app
module that is KMM+Android only?Sanoj
07/22/2022, 2:17 PMembedAndSignAppleFrameworkForXcode
on circleCI.
Everything (including the firebase distribution) works fine locally.Tristan
07/24/2022, 5:26 PM1.7.0
I am getting troubles to get a JS project being served via jsBrowserDevelopmentRun
My browser is correctly opening my index.html
file, but not able to fetch the JS (404).
The gradle output is the following
> Task :kotlinNodeJsSetup UP-TO-DATE
> Task :kotlinNpmCachesSetup
> Task :kotlinRestoreYarnLock UP-TO-DATE
> Task :kotlinYarnSetup UP-TO-DATE
> Task :adView:jsPackageJson UP-TO-DATE
> Task :adView:jsTestPackageJson UP-TO-DATE
> Task :packageJsonUmbrella UP-TO-DATE
> Task :rootPackageJson UP-TO-DATE
> Task :kotlinNpmInstall UP-TO-DATE
> Task :kotlinStoreYarnLock UP-TO-DATE
> Task :adView:jsGenerateExternalsIntegrated SKIPPED
> Task :adView:compileKotlinJs UP-TO-DATE
> Task :adView:jsProcessResources UP-TO-DATE
> Task :adView:jsMainClasses UP-TO-DATE
> Task :adView:compileDevelopmentExecutableKotlinJs UP-TO-DATE
> Task :adView:jsDevelopmentExecutableCompileSync
> Task :adView:jsBrowserDevelopmentRun
Execution optimizations have been disabled for task ':adView:jsBrowserDevelopmentRun' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/Users/tristan/AndroidStudioProjects/Ads/build/js/packages/Ads-adView/kotlin/Ads-adView.js'. Reason: Task ':adView:jsBrowserDevelopmentRun' uses this output of task ':adView:jsDevelopmentExecutableCompileSync' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to <https://docs.gradle.org/7.4.2/userguide/validation_problems.html#implicit_dependency> for more details about this problem.
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: <http://localhost:8080/>
<i> [webpack-dev-server] On Your Network (IPv4): <http://10.0.0.3:8080/>
<i> [webpack-dev-server] On Your Network (IPv6): http://[fe80::1]:8080/
<i> [webpack-dev-server] Content not from webpack is served from '/Users/tristan/AndroidStudioProjects/Ads/adView/build/processedResources/js/main' directory
<i> [webpack-dev-middleware] wait until bundle finished: /
I am also joining the content of build
as a screenshot.
Are there any steps I missed?
Thanks a lot for your help.Shubham Singh
07/24/2022, 6:52 PMy9san9
07/25/2022, 3:15 AMmbonnin
07/25/2022, 8:50 AMmbonnin
07/25/2022, 8:50 AMMichael Paus
07/25/2022, 9:20 AMmbonnin
07/25/2022, 9:23 AMMarco Righini
07/25/2022, 9:35 AMMichael Paus
07/25/2022, 9:48 AMmbonnin
07/25/2022, 9:49 AMMichael Paus
07/25/2022, 9:50 AMmbonnin
07/25/2022, 9:50 AMMichael Paus
07/25/2022, 9:51 AMmbonnin
07/25/2022, 9:52 AMMichael Paus
07/25/2022, 9:53 AMmbonnin
07/25/2022, 10:17 AMMichael Paus
07/25/2022, 10:45 AMmbonnin
07/25/2022, 10:45 AMMichael Paus
07/25/2022, 11:58 AMRacka N
07/25/2022, 1:06 PMplatform
stuff that aren't getting resolved. Which I assume is because I'm on Windows.platform
inside main.macos.kt
and main.uikit.kt
. Everything else seems to work fine on my part.
Info about my machine:
IntelliJ IDEA 2022.2 RC (Community Edition)
Build #IC-222.3345.90, built on July 20, 2022
Runtime version: 17.0.3+7-b469.32 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 990M
Cores: 8
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
Non-Bundled Plugins:
wu.seal.tool.jsontokotlin (3.7.4)
net.antelle.intellij-xcode-dark-theme (1.2.4)
dev.polek.adbwifi (1.2.5)
com.intellij.plugins.expui (0.4)
org.jetbrains.plugins.hocon (2022.1.0)
club.nutsoft.Github3Theme (1.1.9)
Docker (222.3345.90)
com.squareup.sqldelight (1.5.3)
com.haulmont.jpab (2022.3.1-222)
androidx.compose.plugins.idea (222.3345.90)
Kotlin: 222-1.7.10-release-334-IJ3345.90
vanniktech
07/25/2022, 1:22 PMRacka N
07/25/2022, 1:38 PMandroidMain
but weirdly only some some compose dependencies. Like foundation
and material
don't work but runtime
works.
Also the project no longer has the issue with resolving commonMain
stuff as other dependencies and classes defined in commonMain
work as expected in androidMain
. This was broken in older versions of IntelliJ and AS but works in 2022.2 RC.
The attached screenshot would have been broken in older versions but works fine in IJ 2022.2 RC.
Might some other weird issue with the Gradle configuration.Michael Paus
07/26/2022, 12:44 PMmbonnin
07/26/2022, 12:45 PM