| author | Da Risk <da_risk@geekorum.com> |
| Mon, 04 May 2026 23:44:20 -0400 | |
| changeset 116 | 7e40819b3fe2 |
| parent 114 | ab226603d0f5 |
| permissions | -rw-r--r-- |
| 15 | 1 |
/* |
2 |
* AboutOss is an utility library to retrieve and display |
|
3 |
* opensource licenses in Android applications. |
|
4 |
* |
|
|
34
ce299aacc068
build: update license headers
Da Risk <da_risk@geekorum.com>
parents:
31
diff
changeset
|
5 |
* Copyright (C) 2023-2025 by Frederic-Charles Barthelery. |
| 15 | 6 |
* |
7 |
* This file is part of AboutOss. |
|
8 |
* |
|
9 |
* AboutOss is free software: you can redistribute it and/or modify |
|
10 |
* it under the terms of the GNU General Public License as published by |
|
11 |
* the Free Software Foundation, either version 3 of the License, or |
|
12 |
* (at your option) any later version. |
|
13 |
* |
|
14 |
* AboutOss is distributed in the hope that it will be useful, |
|
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
17 |
* GNU General Public License for more details. |
|
18 |
* |
|
19 |
* You should have received a copy of the GNU General Public License |
|
20 |
* along with AboutOss. If not, see <http://www.gnu.org/licenses/>. |
|
21 |
*/ |
|
|
44
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
22 |
import org.jetbrains.kotlin.gradle.dsl.JvmTarget |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
23 |
|
| 15 | 24 |
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
|
25 |
plugins {
|
|
|
114
ab226603d0f5
build: convert to AGP 9.2.0 and latest kotlin multiplatform
Da Risk <da_risk@geekorum.com>
parents:
102
diff
changeset
|
26 |
id("com.geekorum.build.conventions.mpp-library-with-android")
|
| 15 | 27 |
id("com.geekorum.build.source-license-checker")
|
|
72
746669e015f9
build: cleanup libs.versions.toml
Da Risk <da_risk@geekorum.com>
parents:
66
diff
changeset
|
28 |
alias(libs.plugins.kotlin.compose) |
|
746669e015f9
build: cleanup libs.versions.toml
Da Risk <da_risk@geekorum.com>
parents:
66
diff
changeset
|
29 |
alias(libs.plugins.jetbrains.compose.multiplatform) |
|
746669e015f9
build: cleanup libs.versions.toml
Da Risk <da_risk@geekorum.com>
parents:
66
diff
changeset
|
30 |
alias(libs.plugins.kotlinx.serialization) |
|
18
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
31 |
} |
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
32 |
|
| 15 | 33 |
|
|
44
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
34 |
kotlin {
|
|
114
ab226603d0f5
build: convert to AGP 9.2.0 and latest kotlin multiplatform
Da Risk <da_risk@geekorum.com>
parents:
102
diff
changeset
|
35 |
android {
|
|
ab226603d0f5
build: convert to AGP 9.2.0 and latest kotlin multiplatform
Da Risk <da_risk@geekorum.com>
parents:
102
diff
changeset
|
36 |
namespace = "com.geekorum.aboutoss.sampleapp" |
|
ab226603d0f5
build: convert to AGP 9.2.0 and latest kotlin multiplatform
Da Risk <da_risk@geekorum.com>
parents:
102
diff
changeset
|
37 |
androidResources {
|
|
ab226603d0f5
build: convert to AGP 9.2.0 and latest kotlin multiplatform
Da Risk <da_risk@geekorum.com>
parents:
102
diff
changeset
|
38 |
enable = true |
|
ab226603d0f5
build: convert to AGP 9.2.0 and latest kotlin multiplatform
Da Risk <da_risk@geekorum.com>
parents:
102
diff
changeset
|
39 |
} |
|
44
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
40 |
compilerOptions {
|
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
41 |
jvmTarget.set(JvmTarget.JVM_17) |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
42 |
} |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
43 |
} |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
44 |
|
|
47
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
45 |
jvm("desktop") {
|
|
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
46 |
mainRun {
|
|
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
47 |
mainClass = "com.geekorum.aboutoss.sampleapp.MainKt" |
|
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
48 |
} |
|
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
49 |
} |
|
44
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
50 |
|
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
51 |
listOf( |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
52 |
iosX64(), |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
53 |
iosArm64(), |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
54 |
iosSimulatorArm64(), |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
55 |
).forEach { iosTarget ->
|
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
56 |
iosTarget.binaries.framework {
|
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
57 |
baseName = "aboutoss-sample-app" |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
58 |
isStatic = true |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
59 |
} |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
60 |
} |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
61 |
|
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
62 |
sourceSets {
|
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
63 |
commonMain.dependencies {
|
|
114
ab226603d0f5
build: convert to AGP 9.2.0 and latest kotlin multiplatform
Da Risk <da_risk@geekorum.com>
parents:
102
diff
changeset
|
64 |
api(project(":core"))
|
|
ab226603d0f5
build: convert to AGP 9.2.0 and latest kotlin multiplatform
Da Risk <da_risk@geekorum.com>
parents:
102
diff
changeset
|
65 |
api(project(":ui:common"))
|
|
ab226603d0f5
build: convert to AGP 9.2.0 and latest kotlin multiplatform
Da Risk <da_risk@geekorum.com>
parents:
102
diff
changeset
|
66 |
api(project(":ui:material2"))
|
|
ab226603d0f5
build: convert to AGP 9.2.0 and latest kotlin multiplatform
Da Risk <da_risk@geekorum.com>
parents:
102
diff
changeset
|
67 |
api(project(":ui:material3"))
|
|
44
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
68 |
implementation(compose.material3) |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
69 |
implementation(compose.components.resources) |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
70 |
implementation(compose.components.uiToolingPreview) |
|
72
746669e015f9
build: cleanup libs.versions.toml
Da Risk <da_risk@geekorum.com>
parents:
66
diff
changeset
|
71 |
implementation(libs.jetbrains.androidx.lifecycle.viewModelCompose) |
|
44
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
72 |
} |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
73 |
|
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
74 |
androidMain.dependencies {
|
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
75 |
api(libs.androidx.activity) |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
76 |
implementation(dependencies.enforcedPlatform(libs.androidx.compose.bom)) |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
77 |
implementation(libs.androidx.activity.compose) |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
78 |
implementation(libs.geekdroid) |
|
47
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
79 |
} |
|
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
80 |
|
|
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
81 |
val desktopMain by getting {
|
|
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
82 |
dependencies {
|
|
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
83 |
implementation(compose.desktop.currentOs) |
|
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
84 |
implementation(libs.kotlinx.coroutines.swing) |
|
246422783c0c
sample: extract base of sample to common. start implementing desktop
Da Risk <da_risk@geekorum.com>
parents:
44
diff
changeset
|
85 |
} |
|
44
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
86 |
} |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
87 |
} |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
88 |
} |
|
7732a7112b93
sample: start conversion to a kotlin multiplatform project
Da Risk <da_risk@geekorum.com>
parents:
34
diff
changeset
|
89 |