Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support generating custom resource class name #5195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Omico
Copy link
Contributor

@Omico Omico commented Dec 30, 2024

Assume we have two modules, as shown below.

On app module

app/build.gradle.kts

dependencies {
    implementation(project(":core"))
}

On core module

core/build.gradle.kts

compose {
    resources {
        publicResClass = true
    }
}

core/src/kotlin/CoreRes.kt

typealias CoreRes = Res

Now we cannot use CoreRes.strings.xxx like Res.strings.xxx.

So, we need to add the ability to let users define custom resource class name.

Usage:

compose {
    resources {
        resClassName = "CoreRes"
    }
}

@Omico Omico changed the title Support generated custom resources class name Support generating custom resource class name Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant