Skip to content

Commit 01e74bf

Browse files
committed
Update readme and fix spottless
1 parent cf19cdc commit 01e74bf

6 files changed

Lines changed: 17 additions & 15 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ Clear and reset the terminal, List of recent commands, Close a frozen window/app
5252

5353
### Tests
5454

55-
Android Jetpack Compose screen tests: [ComposeTests.kt](android/src/androidTest/java/com/inspiredandroid/linuxcommandbibliotheca/ComposeTests.kt)
56-
5755
Android Jetpack Compose deeplinking tests: [ComposeDeeplinkTests.kt](android/src/androidTest/java/com/inspiredandroid/linuxcommandbibliotheca/ComposeDeeplinkTests.kt)
5856

59-
Common code unit tests: [CommonTests.kt](common/src/commonTest/kotlin/CommonTests.kt)
57+
Common unit tests: [CommonTests.kt](common/src/commonTest/kotlin/CommonTests.kt)
58+
59+
Desktop unit tests: [DesktopTests.kt](common/src/desktopTest/kotlin/DesktopTests.kt)
6060

6161
### Licensing
6262

cli/src/main/kotlin/com/linuxcommandlibrary/cli/ConsoleApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private fun showIntro() {
3131
println(" _ _ _____ _____ ____ _____ __ __")
3232
println("| |__ | || () )| () ) / () \\ | () )\\ \\/ /")
3333
println("|____||_||_()_)|_|\\_\\/__/\\__\\|_|\\_\\ |__|")
34-
println("Version: ${Version.appVersion}")
34+
println("Version: ${Version.APP_VERSION}")
3535
}
3636

3737
private fun showStartMenu() {

common/build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ kotlin {
2222
listOf(
2323
iosX64(),
2424
iosArm64(),
25-
iosSimulatorArm64()
25+
iosSimulatorArm64(),
2626
).forEach {
2727
it.binaries.framework {
2828
baseName = "common"
@@ -76,16 +76,17 @@ val generateVersionFile by tasks.registering {
7676
|package com.linuxcommandlibrary.shared
7777
|
7878
|object Version {
79-
| const val appVersion = "$appVersion"
79+
| const val APP_VERSION = "$appVersion"
8080
|}
81-
|""".trimMargin()
81+
|
82+
""".trimMargin(),
8283
)
8384
println("Generated Version.kt with version $appVersion")
8485
}
8586
}
8687

8788
// Make compilation depend on version generation
88-
tasks.matching { it.name.contains("compileKotlin") || it.name.contains("Kotlin") && it.name.contains("compile") }.configureEach {
89+
tasks.matching { it.name.contains("compileKotlin") || (it.name.contains("Kotlin") && it.name.contains("compile")) }.configureEach {
8990
dependsOn(generateVersionFile)
9091
}
9192

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package com.linuxcommandlibrary.shared
22

33
object Version {
4-
const val appVersion = "3.5.5"
4+
const val APP_VERSION = "3.5.5"
55
}

composeApp/build.gradle.kts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ kotlin {
2525
listOf(
2626
iosX64(),
2727
iosArm64(),
28-
iosSimulatorArm64()
28+
iosSimulatorArm64(),
2929
).forEach {
3030
it.binaries.framework {
3131
baseName = "ComposeApp"
@@ -109,10 +109,11 @@ tasks.register("updateIosVersion") {
109109
if (infoPlistFile.exists()) {
110110
var content = infoPlistFile.readText()
111111
// Update CFBundleShortVersionString
112-
content = content.replace(
113-
Regex("<key>CFBundleShortVersionString</key>\\s*<string>[^<]*</string>"),
114-
"<key>CFBundleShortVersionString</key>\n\t<string>$appVersion</string>"
115-
)
112+
content =
113+
content.replace(
114+
Regex("<key>CFBundleShortVersionString</key>\\s*<string>[^<]*</string>"),
115+
"<key>CFBundleShortVersionString</key>\n\t<string>$appVersion</string>",
116+
)
116117
infoPlistFile.writeText(content)
117118
println("Updated iOS Info.plist with version $appVersion")
118119
}

composeApp/src/commonMain/kotlin/com/linuxcommandlibrary/app/ui/screens/Dialogs.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fun AppInfoDialog(
8787
}
8888
}
8989
Text(
90-
"Version: ${Version.appVersion}",
90+
"Version: ${Version.APP_VERSION}",
9191
style = MaterialTheme.typography.caption,
9292
modifier = Modifier.padding(8.dp),
9393
)

0 commit comments

Comments
 (0)