Koltin 2.1.0-Beta1 introduces a problem in our CMP...
# eap
b
Koltin 2.1.0-Beta1 introduces a problem in our CMP app. Sadly this is the one project, that is not open-source, so I cannot provide the context I'd with to provide. The latest beta has introduced a new issue with the Gradle Task graph:
Reason: Task 'sharedcheckSandboxAndWriteProtection' uses this output of task 'sharedsyncComposeResourcesForIos' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
youtrack 1
1
t
without a repro it is hard to say what could be wrong fyi @Timofey Solonin
b
We're working in that
There you go: https://github.com/a-sit-plus/signum/tree/tmp/K21Fail Import the
demoapp
project into Android Studio and try to run the iOS app
Any workaround would be appreciated, so we can also check, whether KT-71650 is fixed in 2.1.0
t
Hi. As a temporary workaround you can specify the dependency explicitly in the build script:
Copy code
tasks.named("syncComposeResourcesForIos") {
    dependsOn("checkSandboxAndWriteProtection")
}
Could you please see if using ObjCName is the solution you are looking for in KT-71650?
b
Thank you very much for reporting it (and sorry for the delayed response). I was uncertain whether something had simply changed or whether this really is a bug. It is a regression.
a
for history: KT-71675 checkSandboxAndWriteProtection collides with Compose's syncComposeResources
👍 1