-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Gradle Plugin DSL to change the generated Res class name #5296
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
Conversation
|
Requires 2 approvals, as this is new API in Gradle plugin |
| abstract val packageName: Property<String> | ||
|
|
||
| @get:Input | ||
| abstract val resClassName: Property<String> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we name it just className? To be consistent with packageName and to avoid double wording in resources { res... =
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, because it changes the Res class name only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the consistency I'll rename it to nameOfResClass
|
Please, also fix the new failing check. |
99d2ff0 to
ec241c1
Compare
Gradle Plugin DSL to change the generated Res class name:
```kotlin
compose.resources {
nameOfResClass = "MyRes"
}
```
Fixes [CMP-7341](https://youtrack.jetbrains.com/issue/CMP-7341) Support
generating custom resource class name
## Testing
Integration tests.
## Release Notes
### Features - Resources
- Gradle Plugin DSL to change the generated Res class name
Co-authored-by: Omico <me@omico.icu>
(cherry picked from commit 3c531dd)
Gradle Plugin DSL to change the generated Res class name:
```kotlin
compose.resources {
nameOfResClass = "MyRes"
}
```
Fixes [CMP-7341](https://youtrack.jetbrains.com/issue/CMP-7341) Support
generating custom resource class name
## Testing
Integration tests.
## Release Notes
### Features - Resources
- Gradle Plugin DSL to change the generated Res class name
Co-authored-by: Omico <me@omico.icu>
(cherry picked from commit 3c531dd)
Gradle Plugin DSL to change the generated Res class name:
compose.resources { nameOfResClass = "MyRes" }Fixes CMP-7341 Support generating custom resource class name
Testing
Integration tests.
Release Notes
Features - Resources
Resclass name