moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

Getting gradle sync error when using with ios

Open Tlaster opened this issue 3 years ago • 3 comments

Get error when using with moko resources

> Failed to notify project evaluation listener.
   > Cannot change attributes of dependency configuration ':sample:common:iosArm64ApiElements' after it has been resolved
   > Cannot change attributes of dependency configuration ':sample:common:iosX64ApiElements' after it has been resolved

It happens when after adding moko resources, my gradle setup like this

plugins {
    kotlin("multiplatform")
    id("dev.icerock.mobile.multiplatform-resources") version "0.20.1"
}
kotlin {
    ios()
    sourceSets {
        val commonMain by getting
        val commonTest by getting
    }
}
multiplatformResources {
    multiplatformResourcesPackage = "moe.tlaster.common"
}

Gradle version: 7.4.2 Kotlin version: 1.6.21

Am I doing something wrong?

Tlaster avatar Jun 21 '22 10:06 Tlaster

can you create project where this bug reproduced and send here?

Alex009 avatar Jun 23 '22 07:06 Alex009

It's here https://github.com/Tlaster/moko-spotless-conflict I think it might have a conflict with spotless, I can not apply moko resource with spotless at the same time.

Tlaster avatar Jun 23 '22 12:06 Tlaster

@Tlaster thanks, your project helps. i found cause of error and fix will be in next release

Alex009 avatar Jul 08 '22 12:07 Alex009

Hi there! Noticed this fix went out back in July, and was hoping it would be possible to get a patch version published with the Spotless fix?

asarazan avatar Feb 10 '23 05:02 asarazan

will be released in 0.21.0

Alex009 avatar Mar 03 '23 05:03 Alex009