| author | Da Risk <da_risk@geekorum.com> | 
| Fri, 02 May 2025 18:29:03 -0400 | |
| changeset 72 | 746669e015f9 | 
| parent 68 | f6133d9381b2 | 
| child 74 | 57d9068de0ef | 
| permissions | -rw-r--r-- | 
| 12 | 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: 
33 
diff
changeset
 | 
5  | 
* Copyright (C) 2023-2025 by Frederic-Charles Barthelery.  | 
| 12 | 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  | 
*/  | 
|
| 
38
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
22  | 
import org.jetbrains.kotlin.gradle.dsl.JvmTarget  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
23  | 
|
| 0 | 24  | 
plugins {
 | 
25  | 
    id("com.android.library")
 | 
|
| 
38
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
26  | 
    kotlin("multiplatform")
 | 
| 
72
 
746669e015f9
build: cleanup libs.versions.toml
 
Da Risk <da_risk@geekorum.com> 
parents: 
68 
diff
changeset
 | 
27  | 
alias(libs.plugins.kotlin.compose)  | 
| 
 
746669e015f9
build: cleanup libs.versions.toml
 
Da Risk <da_risk@geekorum.com> 
parents: 
68 
diff
changeset
 | 
28  | 
alias(libs.plugins.jetbrains.compose.multiplatform)  | 
| 
 
746669e015f9
build: cleanup libs.versions.toml
 
Da Risk <da_risk@geekorum.com> 
parents: 
68 
diff
changeset
 | 
29  | 
alias(libs.plugins.kotlinx.serialization)  | 
| 0 | 30  | 
    id("com.geekorum.build.source-license-checker")
 | 
| 
68
 
f6133d9381b2
build: configure maven publishing using gradle maven publish plugin
 
Da Risk <da_risk@geekorum.com> 
parents: 
58 
diff
changeset
 | 
31  | 
    id("com.geekorum.build.maven-publish")
 | 
| 0 | 32  | 
}  | 
33  | 
||
| 
7
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
34  | 
group = "com.geekorum.aboutoss"  | 
| 19 | 35  | 
version = "0.1.0"  | 
| 
7
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
36  | 
|
| 
38
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
37  | 
kotlin {
 | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
38  | 
    androidTarget {
 | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
39  | 
        compilerOptions {
 | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
40  | 
jvmTarget.set(JvmTarget.JVM_17)  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
41  | 
}  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
42  | 
}  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
43  | 
|
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
44  | 
    jvm("desktop")
 | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
45  | 
|
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
46  | 
listOf(  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
47  | 
iosX64(),  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
48  | 
iosArm64(),  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
49  | 
iosSimulatorArm64(),  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
50  | 
    ).forEach { iosTarget ->
 | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
51  | 
        iosTarget.binaries.framework {
 | 
| 
41
 
59b612ba3644
ui:mateiral2: fix ios baseName
 
Da Risk <da_risk@geekorum.com> 
parents: 
39 
diff
changeset
 | 
52  | 
baseName = "aboutoss-ui-material"  | 
| 
38
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
53  | 
isStatic = true  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
54  | 
}  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
55  | 
}  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
56  | 
|
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
57  | 
    sourceSets {
 | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
58  | 
        commonMain.dependencies {
 | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
59  | 
            api(project(":ui:common"))
 | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
60  | 
            implementation(project(":core"))
 | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
61  | 
implementation(compose.material)  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
62  | 
implementation(compose.components.resources)  | 
| 
72
 
746669e015f9
build: cleanup libs.versions.toml
 
Da Risk <da_risk@geekorum.com> 
parents: 
68 
diff
changeset
 | 
63  | 
implementation(libs.jetbrains.compose.materialIconsCore)  | 
| 
 
746669e015f9
build: cleanup libs.versions.toml
 
Da Risk <da_risk@geekorum.com> 
parents: 
68 
diff
changeset
 | 
64  | 
implementation(libs.jetbrains.androidx.navigation.compose)  | 
| 
 
746669e015f9
build: cleanup libs.versions.toml
 
Da Risk <da_risk@geekorum.com> 
parents: 
68 
diff
changeset
 | 
65  | 
implementation(libs.jetbrains.androidx.lifecycle.viewModelCompose)  | 
| 
38
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
66  | 
}  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
67  | 
|
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
68  | 
        androidMain.dependencies {
 | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
69  | 
api(libs.androidx.activity)  | 
| 
39
 
b14d574cc2b1
ui:material2 extract OpenSourceDependenciesNavHost to common
 
Da Risk <da_risk@geekorum.com> 
parents: 
38 
diff
changeset
 | 
70  | 
implementation(dependencies.platform(libs.androidx.compose.bom))  | 
| 
 
b14d574cc2b1
ui:material2 extract OpenSourceDependenciesNavHost to common
 
Da Risk <da_risk@geekorum.com> 
parents: 
38 
diff
changeset
 | 
71  | 
implementation(libs.androidx.activity.compose)  | 
| 
38
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
72  | 
}  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
73  | 
}  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
74  | 
}  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
75  | 
|
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
76  | 
|
| 0 | 77  | 
android {
 | 
| 
4
 
3d88feb1156b
move ui activities to :ui:material2
 
Da Risk <da_risk@geekorum.com> 
parents: 
3 
diff
changeset
 | 
78  | 
namespace = "com.geekorum.aboutoss.ui.material"  | 
| 22 | 79  | 
compileSdk = 35  | 
| 0 | 80  | 
|
81  | 
    defaultConfig {
 | 
|
| 
6
 
67743d62eda9
build: set minSdkVersion to 24
 
Da Risk <da_risk@geekorum.com> 
parents: 
4 
diff
changeset
 | 
82  | 
minSdk = 24  | 
| 0 | 83  | 
|
84  | 
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"  | 
|
85  | 
        consumerProguardFiles("consumer-rules.pro")
 | 
|
| 
7
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
86  | 
|
| 
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
87  | 
        aarMetadata {
 | 
| 
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
88  | 
minCompileSdk = 24  | 
| 
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
89  | 
}  | 
| 0 | 90  | 
}  | 
91  | 
||
92  | 
    buildTypes {
 | 
|
93  | 
        release {
 | 
|
94  | 
isMinifyEnabled = false  | 
|
95  | 
proguardFiles(  | 
|
96  | 
                getDefaultProguardFile("proguard-android-optimize.txt"),
 | 
|
97  | 
"proguard-rules.pro"  | 
|
98  | 
)  | 
|
99  | 
}  | 
|
100  | 
}  | 
|
101  | 
    compileOptions {
 | 
|
| 
38
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
102  | 
sourceCompatibility = JavaVersion.VERSION_17  | 
| 
 
764faee147cc
ui:material2: convert to kotlin-multiplatform
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
103  | 
targetCompatibility = JavaVersion.VERSION_17  | 
| 0 | 104  | 
}  | 
| 
2
 
bedda51b88eb
ui: add OpenSourceLicensesActivity and composables
 
Da Risk <da_risk@geekorum.com> 
parents: 
0 
diff
changeset
 | 
105  | 
|
| 
 
bedda51b88eb
ui: add OpenSourceLicensesActivity and composables
 
Da Risk <da_risk@geekorum.com> 
parents: 
0 
diff
changeset
 | 
106  | 
    buildFeatures {
 | 
| 
 
bedda51b88eb
ui: add OpenSourceLicensesActivity and composables
 
Da Risk <da_risk@geekorum.com> 
parents: 
0 
diff
changeset
 | 
107  | 
compose = true  | 
| 
 
bedda51b88eb
ui: add OpenSourceLicensesActivity and composables
 
Da Risk <da_risk@geekorum.com> 
parents: 
0 
diff
changeset
 | 
108  | 
}  | 
| 
 
bedda51b88eb
ui: add OpenSourceLicensesActivity and composables
 
Da Risk <da_risk@geekorum.com> 
parents: 
0 
diff
changeset
 | 
109  | 
|
| 
7
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
110  | 
    publishing {
 | 
| 
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
111  | 
        singleVariant("release") {
 | 
| 
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
112  | 
withJavadocJar()  | 
| 
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
113  | 
withSourcesJar()  | 
| 
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
114  | 
}  | 
| 
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
115  | 
}  | 
| 0 | 116  | 
}  | 
117  | 
||
118  | 
dependencies {
 | 
|
119  | 
testImplementation(libs.junit)  | 
|
120  | 
androidTestImplementation(libs.androidx.test.ext.junit)  | 
|
121  | 
androidTestImplementation(libs.espresso.core)  | 
|
| 
7
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
122  | 
}  | 
| 
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
123  | 
|
| 
68
 
f6133d9381b2
build: configure maven publishing using gradle maven publish plugin
 
Da Risk <da_risk@geekorum.com> 
parents: 
58 
diff
changeset
 | 
124  | 
mavenPublishing {
 | 
| 
 
f6133d9381b2
build: configure maven publishing using gradle maven publish plugin
 
Da Risk <da_risk@geekorum.com> 
parents: 
58 
diff
changeset
 | 
125  | 
val artifactId = "ui-material"  | 
| 
 
f6133d9381b2
build: configure maven publishing using gradle maven publish plugin
 
Da Risk <da_risk@geekorum.com> 
parents: 
58 
diff
changeset
 | 
126  | 
coordinates(groupId = group.toString(), artifactId, version.toString())  | 
| 
 
f6133d9381b2
build: configure maven publishing using gradle maven publish plugin
 
Da Risk <da_risk@geekorum.com> 
parents: 
58 
diff
changeset
 | 
127  | 
    pom {
 | 
| 
 
f6133d9381b2
build: configure maven publishing using gradle maven publish plugin
 
Da Risk <da_risk@geekorum.com> 
parents: 
58 
diff
changeset
 | 
128  | 
name = artifactId  | 
| 
7
 
b3b2e88f441f
add README.md and maven publications
 
Da Risk <da_risk@geekorum.com> 
parents: 
6 
diff
changeset
 | 
129  | 
}  | 
| 
68
 
f6133d9381b2
build: configure maven publishing using gradle maven publish plugin
 
Da Risk <da_risk@geekorum.com> 
parents: 
58 
diff
changeset
 | 
130  | 
}  |