Skip to content

Commit f8ec46b

Browse files
Merge pull request #67 from SimonSchubert/jules_wip_17832790256258923177
Jules wip 17832790256258923177
2 parents 9b225e3 + 9c5d000 commit f8ec46b

File tree

6 files changed

+31
-48
lines changed

6 files changed

+31
-48
lines changed

android/build.gradle.kts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
plugins {
2-
id("com.android.application")
3-
kotlin("android")
2+
alias(libs.plugins.android.application)
3+
alias(libs.plugins.kotlin.android)
44
alias(libs.plugins.compose.compiler)
55
}
66

77
group = "com.inspiredandroid.linuxcommandbibliotheca"
88

9-
repositories {
10-
mavenCentral()
11-
}
12-
139
dependencies {
1410
implementation(project(":common"))
1511
implementation(libs.androidx.activity.compose)
@@ -79,10 +75,6 @@ android {
7975
abortOnError = false
8076
}
8177
namespace = "com.inspiredandroid.linuxcommandbibliotheca"
82-
83-
composeOptions {
84-
kotlinCompilerExtensionVersion = libs.versions.kotlin.get()
85-
}
8678
}
8779

8880
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {

android/src/main/java/com/inspiredandroid/linuxcommandbibliotheca/ui/screens/basicgroups/BasicGroupsScreen.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ fun BasicGroupsScreen(
5656
) { basicGroup ->
5757
BasicGroupColumn(
5858
basicGroup = basicGroup,
59-
// Assuming isGroupCollapsed(id) == true means content is hidden
6059
isExpanded = !viewModel.isGroupCollapsed(basicGroup.id),
6160
onToggleCollapse = { viewModel.toggleCollapse(basicGroup.id) },
6261
onNavigate = onNavigate,
@@ -101,7 +100,6 @@ private fun ExpandedGroupContent(basicGroup: BasicGroup, onNavigate: (String) ->
101100
val commands = remember(basicGroup.id) {
102101
databaseHelper.getBasicCommands(basicGroup.id).toImmutableList()
103102
}
104-
// Consider adding some padding or a Column wrapper if needed for layout consistency
105103
commands.forEach { basicCommand ->
106104
CommandView(
107105
command = basicCommand.command,

build.gradle.kts

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,18 @@
11
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
22

33
plugins {
4-
id("com.github.ben-manes.versions") version "0.52.0"
5-
alias(libs.plugins.compose.compiler) apply false
4+
alias(libs.plugins.ben.manes.versions) apply false
65
alias(libs.plugins.spotless)
7-
}
8-
9-
buildscript {
10-
repositories {
11-
gradlePluginPortal()
12-
google()
13-
mavenCentral()
14-
}
15-
dependencies {
16-
classpath(libs.kotlin.gradle.plugin)
17-
classpath(libs.gradle)
18-
classpath(libs.gradle.plugin)
19-
}
6+
alias(libs.plugins.kotlin.multiplatform) apply false
7+
alias(libs.plugins.kotlin.android) apply false
8+
alias(libs.plugins.android.application) apply false
9+
alias(libs.plugins.android.library) apply false
10+
alias(libs.plugins.sqldelight) apply false
11+
alias(libs.plugins.compose.compiler) apply false
2012
}
2113

2214
group = "com.inspiredandroid"
2315

24-
allprojects {
25-
repositories {
26-
google()
27-
mavenCentral()
28-
}
29-
}
30-
3116
tasks.withType<DependencyUpdatesTask> {
3217
rejectVersionIf {
3318
isNonStable(candidate.version)

common/build.gradle.kts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
22

3-
repositories {
4-
google()
5-
}
6-
73
plugins {
8-
kotlin("multiplatform")
9-
id("com.android.library")
10-
id("app.cash.sqldelight")
4+
alias(libs.plugins.kotlin.multiplatform)
5+
alias(libs.plugins.android.library)
6+
alias(libs.plugins.sqldelight)
117
}
128

139
group = "com.linuxcommandlibrary"

gradle/libs.versions.toml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
[versions]
2+
agp = "8.10.1"
23
appVersion = "3.3.12"
34
androidVersionCode = "106"
45
kotlin = "2.1.21"
5-
kotlinGradlePlugin = "2.1.21"
66
accompanistAppcompatTheme = "0.36.0"
77
activityCompose = "1.10.1"
88
foundation = "1.8.2"
9-
gradle = "8.10.1"
109
json = "20250517"
1110
koinCore = "4.0.4"
1211
kotlinxCoroutinesCore = "1.10.2"
@@ -19,7 +18,8 @@ preference = "1.2.1"
1918
sqldelight = "2.1.0"
2019
uiToolingPreview = "1.8.2"
2120
spotless = "7.0.4"
22-
kotlinxCollectionsImmutable = "0.3.7"
21+
kotlinxCollectionsImmutable = "0.4.0"
22+
benManesVersions = "0.52.0"
2323

2424

2525
[libraries]
@@ -36,21 +36,24 @@ androidx-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4", versi
3636
androidx-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest", version.ref = "uiToolingPreview" }
3737
androidx-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "uiToolingPreview" }
3838
androidx-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "uiToolingPreview" }
39-
gradle = { module = "com.android.tools.build:gradle", version.ref = "gradle" }
4039
json = { module = "org.json:json", version.ref = "json" }
4140
koin-android = { module = "io.insert-koin:koin-android", version.ref = "koinCore" }
4241
koin-androidx-compose = { module = "io.insert-koin:koin-androidx-compose", version.ref = "koinCore" }
4342
koin-core = { module = "io.insert-koin:koin-core", version.ref = "koinCore" }
44-
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinGradlePlugin" }
4543
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinxCoroutinesCore" }
4644
kotlinx-html-jvm = { module = "org.jetbrains.kotlinx:kotlinx-html-jvm", version.ref = "kotlinxHtmlJvm" }
47-
gradle-plugin = { module = "app.cash.sqldelight:gradle-plugin", version.ref = "sqldelight" }
4845
runtime = { module = "app.cash.sqldelight:runtime", version.ref = "sqldelight" }
4946
sqldelight-android-driver = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }
5047
sqldelight-sqlite-driver = { module = "app.cash.sqldelight:sqlite-driver", version.ref = "sqldelight" }
5148
kotlinx-collections-immutable = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version.ref = "kotlinxCollectionsImmutable" }
5249

5350

5451
[plugins]
52+
android-application = { id = "com.android.application", version.ref = "agp" }
53+
android-library = { id = "com.android.library", version.ref = "agp" }
54+
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
55+
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
56+
sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight" }
5557
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
56-
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
58+
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
59+
ben-manes-versions = { id = "com.github.ben-manes.versions", version.ref = "benManesVersions" }

settings.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ pluginManagement {
55
mavenCentral()
66
}
77
}
8+
9+
dependencyResolutionManagement {
10+
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) // Enforce centralized repositories
11+
repositories {
12+
google()
13+
mavenCentral()
14+
}
15+
}
16+
817
rootProject.name = "Linux Command Library"
918

1019
include(":android", ":common", ":desktop", ":cli")

0 commit comments

Comments
 (0)