-
Notifications
You must be signed in to change notification settings - Fork 3
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
draft: resources-ktx: Make Text compatible with compose #49
Conversation
d63d844
to
0a38d78
Compare
0a38d78
to
685ef79
Compare
bec1260
to
68ec3e3
Compare
68ec3e3
to
6378839
Compare
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.
👍
Check is Stable/Immutable needed |
@@ -0,0 +1 @@ | |||
<manifest /> |
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.
And this one
@sonulen, it would be great to add some notes about this change to CHANGELOG.md |
Also updated Readme Co-authored-by: Osip Fatkullin <[email protected]>
Also update changelog and readme
78367c0
to
5dbebb4
Compare
dependencies { | ||
api(jetbrains.kotlin.stdlib) | ||
api(androidx.annotation) | ||
api(projects.textvalue) |
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.
@osipxd this dependency is not nice.
and even if we delete the Replace's, it will still remain because of Fragment.getString(text: TextValue)
.
maybe make a textvalue-ktx module for views? 😔
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 think it's totaly OK
No longer relevant. |
Text
renamed toTextValue
to remove conflict withText
composableresources-ktx
andresources-common
get(Context)
replaced withget(Resources)
Resources.getString(TextValue)
functionstringResource(TextValue)
composable to get string in composable functionsTextValue(...)
to simplify text value creationBetter to review commit-by-commit.
Closes #47