Skip to content

Commit

Permalink
Revert "Add documentation for line wrapping (#20)" (#193)
Browse files Browse the repository at this point in the history
This reverts commit 5f81946.
  • Loading branch information
gmazzo authored Nov 19, 2024
1 parent 2266672 commit 2bffb9e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,25 +172,6 @@ buildConfig {
}
```

## Values greater than 100 characters
In some cases, such as embedded public certs, your build config values may exceed 100 characters in length and will become subject to line wrapping by the [Kotlin Poet](https://square.github.io/kotlinpoet/#spaces-wrap-by-default) output. If you need to workaround this behavior, you can explicitly control or prevent line wrapping by replacing spaces with a `·` character.

```kotlin
val alphabet = (65..90)
.map { it.toChar() }
.joinToString(separator = "")

buildConfigField("Example", alphabet)
```

will generate `BuildConfig.kt`:
```kotlin
object BuildConfig {
const val Example: String =
"A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z"
}
```

## Advanced
### Generate constants for 'test' sourceSet (or any)
If you add in your `build.gradle.kts`:
Expand Down

0 comments on commit 2bffb9e

Please sign in to comment.