Skip to content

Commit

Permalink
Update dependency com.facebook:ktfmt to v0.49 (#1367)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [com.facebook:ktfmt](https://github.com/facebook/ktfmt) |
dependencies | minor | `0.47` -> `0.49` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>facebook/ktfmt (com.facebook:ktfmt)</summary>

### [`v0.49`](https://github.com/facebook/ktfmt/releases/tag/v0.49)

#### Changelog

- Stop emitting multiple trailing commas in enum entry lists with
multiline items
([https://github.com/facebook/ktfmt/pull/458](https://github.com/facebook/ktfmt/pull/458))
– [@&#8203;nreid260](https://github.com/nreid260)

**Full Changelog**:
facebook/ktfmt@v0.48...v0.49

### [`v0.48`](https://github.com/facebook/ktfmt/releases/tag/v0.48):
0.48

Changelog:

- Migrated to Google Java Format 1.22.0
([https://github.com/facebook/ktfmt/pull/440](https://github.com/facebook/ktfmt/pull/440),
[https://github.com/facebook/ktfmt/pull/452](https://github.com/facebook/ktfmt/pull/452))
– [@&#8203;j-bahr](https://github.com/j-bahr),
[@&#8203;nreid260](https://github.com/nreid260)
- Added support for RangUntil (`..<`) operator
([https://github.com/facebook/ktfmt/pull/433](https://github.com/facebook/ktfmt/pull/433))
– [@&#8203;ArchdukeTim](https://github.com/ArchdukeTim)
- Trailing space issue on lambda blocks
([https://github.com/facebook/ktfmt/pull/426](https://github.com/facebook/ktfmt/pull/426))
– [@&#8203;fredyw](https://github.com/fredyw),
[@&#8203;hick209](https://github.com/hick209)
- Fix empty enum parse error
([https://github.com/facebook/ktfmt/pull/425](https://github.com/facebook/ktfmt/pull/425))
– [@&#8203;fredyw](https://github.com/fredyw)
- Preserving empty enums semicolons
([https://github.com/facebook/ktfmt/pull/434](https://github.com/facebook/ktfmt/pull/434))
– [@&#8203;nreid260](https://github.com/nreid260)
- Always use UTF8
([https://github.com/facebook/ktfmt/pull/437](https://github.com/facebook/ktfmt/pull/437))
– [@&#8203;nreid260](https://github.com/nreid260)
- IntelliJI DEA plugin update
([https://github.com/facebook/ktfmt/pull/420](https://github.com/facebook/ktfmt/pull/420))
– [@&#8203;greyhairredbear](https://github.com/greyhairredbear)
- Managing trailing commas in enums
([https://github.com/facebook/ktfmt/pull/449](https://github.com/facebook/ktfmt/pull/449))
– [@&#8203;nreid260](https://github.com/nreid260)
- Badges on README
([https://github.com/facebook/ktfmt/pull/448](https://github.com/facebook/ktfmt/pull/448),
[https://github.com/facebook/ktfmt/pull/453](https://github.com/facebook/ktfmt/pull/453))
–
[@&#8203;JavierSegoviaCordoba](https://github.com/JavierSegoviaCordoba),
[@&#8203;hick209](https://github.com/hick209)
- Emit parsing error for calls with multiple trailing lambdas
([https://github.com/facebook/ktfmt/pull/457](https://github.com/facebook/ktfmt/pull/457))
– [@&#8203;nreid260](https://github.com/nreid260)
- Removed duplicated line in editorconfig file
([https://github.com/facebook/ktfmt/pull/456](https://github.com/facebook/ktfmt/pull/456))
– [@&#8203;sabufung30](https://github.com/sabufung30)

Big thanks to all the contributors!

**Full Changelog**:
facebook/ktfmt@v0.47...v0.48

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjYuMCIsInVwZGF0ZWRJblZlciI6IjM3LjMyNi4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Co-authored-by: Zac Sweers <[email protected]>
  • Loading branch information
slack-oss-bot and ZacSweers authored Apr 28, 2024
1 parent 0e43c57 commit bbc2ddc
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,12 +650,12 @@ private fun TypeSpec.Builder.buildPresenterFactory(

private enum class FactoryType {
PRESENTER,
UI
UI,
}

private enum class InstantiationType {
FUNCTION,
CLASS
CLASS,
}

private enum class CodegenMode {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ class CircuitSymbolProcessorTest {

private enum class CodegenMode {
ANVIL,
HILT
HILT,
}

private fun assertGeneratedFile(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ public enum class OverlayState {
HIDDEN,

/** Indicates that an overlay is currently showing. */
SHOWING
SHOWING,
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ kotlin = "1.9.23"
kotlinpoet = "1.16.0"
kotlinx-coroutines = "1.8.0"
ksp = "1.9.23-1.0.20"
ktfmt = "0.47"
ktfmt = "0.49"
ktor = "2.3.10"
leakcanary = "2.14"
material-composeThemeAdapter = "1.2.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ expect object Platform {

enum class PlatformType {
JVM,
ANDROID
ANDROID,
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import kotlinx.datetime.Instant
interface TokenStorage {
/** Updates the current stored auth data. */
suspend fun updateAuthData(authData: AuthenticationData)

/** Returns the current auth data or null if none are stored. */
suspend fun getAuthData(): AuthenticationData?
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ package com.slack.circuit.star.db
enum class Size {
SMALL,
MEDIUM,
LARGE
LARGE,
}
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ internal fun OrderTacosUi(state: OrderTacosScreen.State, modifier: Modifier = Mo

internal enum class Direction(val icon: ImageVector, @StringRes val descriptionResId: Int) {
LEFT(Icons.AutoMirrored.Filled.ArrowBack, R.string.top_bar_back),
RIGHT(Icons.AutoMirrored.Filled.ArrowForward, R.string.top_bar_forward)
RIGHT(Icons.AutoMirrored.Filled.ArrowForward, R.string.top_bar_forward),
}

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data class Ingredient(
enum class Diet(@StringRes val codeResId: Int? = null) {
NONE,
VEGETARIAN(R.string.common_vegetarian),
VEGAN(R.string.common_vegan)
VEGAN(R.string.common_vegan),
}

typealias Cents = Int
Expand Down

0 comments on commit bbc2ddc

Please sign in to comment.