Hi, I have got a question regarding sharing strin...
# compose-ios
f
Hi, I have got a question regarding sharing strings.xml in a compose-ios project. When using the moko-resources lib I get this block for setup.
Copy code
cocoapods {
        ....
        // this is important part
        extraSpecAttributes["resources"] =
            "['src/commonMain/resources/**', 'src/iosMain/resources/**']"
        // if you don't have anything inside iosMain/resources than you can have:
        // extraSpecAttributes["resources"] = "['src/commonMain/resources/**']"
        // I left it in just as a reminder that it's possible and how to do it
    }
But I am using regular framework. and it does not recognize extraSpecAttributes in this block. Any body can help me out?
Copy code
listOf(
        iosX64(),
        iosArm64(),
        iosSimulatorArm64()
    ).forEach {
        it.binaries.framework {
            baseName = "Shared"
            isStatic = true
            extraSpecAttributes["resources"] = "['src/commonMain/resources/**']"

        }
    }
Thnx in advance.
👍 1
d
extraSpecAttributes["resources"]
will be deprecated in version Compose 1.5.0-beta01 So, you can remove it no dependent to Moko librarie
🙌 1
1
a
Will this allow inheriting resources from other Gradle modules?
d
For now, it works good with 1 module. In future we will expand it to multimodule too.
a
❤️