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

Change resources folder name

Open wakaztahir opened this issue 3 years ago • 4 comments

is there a way I could change the folder name MR to like common or something else in gradle kts

wakaztahir avatar Jan 27 '23 06:01 wakaztahir

@wakaztahir you can use multiplatformResourcesClassName attribute in gradle. Ie my config is as below

multiplatformResources {
    multiplatformResourcesPackage = Modules.res.packageName
    disableStaticFrameworkWarning = true
    multiplatformResourcesClassName = Modules.res.frameworkName
}

mustafaozhan avatar Jan 27 '23 12:01 mustafaozhan

I am not talking about generated class , I am talking about the folder in resources in common main which contains base

wakaztahir avatar Jan 27 '23 13:01 wakaztahir

That would be really nice

I am not talking about generated class , I am talking about the folder in resources in common main which contains base

YaminYazdanpanah avatar Feb 10 '23 13:02 YaminYazdanpanah

Yes, that would be nice.

At first, I understood that this was possible, according to the documentation:

resourcesSourceSets {
        getByName("jvmMain").srcDirs(
            File(projectDir, "customResources")
        )
    }  

Note: I replaced "jvmMain" with "commonMain", but no resources was found under a "customResources" directory

DenisGL avatar Jan 06 '25 19:01 DenisGL