-
Notifications
You must be signed in to change notification settings - Fork 354
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
Add support for bullets in changes file #6389
Add support for bullets in changes file #6389
Conversation
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.
Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Pururun)
android/app/src/main/kotlin/net/mullvad/mullvadvpn/util/StringExtensions.kt
line 16 at r1 (raw file):
Html.fromHtml(this, HtmlCompat.FROM_HTML_MODE_LEGACY).toString() fun List<String>.trim() = map { it.trim() }
I suggest renaming to trimAll
Code quote:
trim
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.
Reviewable status: 1 of 3 files reviewed, 1 unresolved discussion (waiting on @albin-mullvad)
android/app/src/main/kotlin/net/mullvad/mullvadvpn/util/StringExtensions.kt
line 16 at r1 (raw file):
Previously, albin-mullvad wrote…
I suggest renaming to
trimAll
Done.
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.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
238a5db
to
1f5651f
Compare
a3f1331
to
bb8dfd7
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.
Reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Pururun)
android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/ChangelogRepository.kt
line 29 at r3 (raw file):
.getChangelog() .split(BULLET_POINT_CHAR) .map { it.split(NEWLINE_CHAR).trimAll().fastJoinToString(SPACE_STRING).trim() }
Not sure what we feel about fastJoinToString
it comes from the compose.ui.util
package, do we see a good purpose to have it? Or should we just use the normal joinToString?
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Rawa)
android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/ChangelogRepository.kt
line 29 at r3 (raw file):
Previously, Rawa (David Göransson) wrote…
Not sure what we feel about
fastJoinToString
it comes from thecompose.ui.util
package, do we see a good purpose to have it? Or should we just use the normal joinToString?
No it was just me that was confused and though it was part of some kotlin library instead of compose. Changed it to joinToString
bb8dfd7
to
3bc7618
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.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
3bc7618
to
25777ab
Compare
This change is