| author | Da Risk <da_risk@geekorum.com> |
| Wed, 03 May 2023 17:19:52 -0400 | |
| changeset 20 | 92b4a71629e0 |
| parent 19 | 18c078fbc745 |
| child 22 | d0190e5504a6 |
| permissions | -rw-r--r-- |
| 14 | 1 |
/* |
2 |
* AboutOss is an utility library to retrieve and display |
|
3 |
* opensource licenses in Android applications. |
|
4 |
* |
|
5 |
* Copyright (C) 2023 by Frederic-Charles Barthelery. |
|
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 |
*/ |
|
22 |
plugins {
|
|
23 |
id("com.android.library")
|
|
24 |
kotlin("android")
|
|
25 |
id("com.geekorum.build.source-license-checker")
|
|
26 |
`maven-publish` |
|
27 |
} |
|
28 |
||
29 |
group = "com.geekorum.aboutoss" |
|
| 19 | 30 |
version = "0.1.0" |
| 14 | 31 |
|
32 |
android {
|
|
33 |
namespace = "com.geekorum.aboutoss.ui.material3" |
|
34 |
compileSdk = 33 |
|
35 |
||
36 |
defaultConfig {
|
|
37 |
minSdk = 24 |
|
38 |
||
39 |
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" |
|
40 |
consumerProguardFiles("consumer-rules.pro")
|
|
41 |
||
42 |
aarMetadata {
|
|
43 |
minCompileSdk = 24 |
|
44 |
} |
|
45 |
} |
|
46 |
||
47 |
buildTypes {
|
|
48 |
release {
|
|
49 |
isMinifyEnabled = false |
|
50 |
proguardFiles( |
|
51 |
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
52 |
"proguard-rules.pro" |
|
53 |
) |
|
54 |
} |
|
55 |
} |
|
56 |
compileOptions {
|
|
57 |
sourceCompatibility = JavaVersion.VERSION_1_8 |
|
58 |
targetCompatibility = JavaVersion.VERSION_1_8 |
|
59 |
} |
|
60 |
kotlinOptions {
|
|
61 |
jvmTarget = "1.8" |
|
62 |
} |
|
63 |
||
64 |
buildFeatures {
|
|
65 |
compose = true |
|
66 |
} |
|
67 |
||
68 |
composeOptions {
|
|
69 |
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get() |
|
70 |
} |
|
71 |
||
72 |
publishing {
|
|
73 |
singleVariant("release") {
|
|
74 |
withJavadocJar() |
|
75 |
withSourcesJar() |
|
76 |
} |
|
77 |
} |
|
78 |
} |
|
79 |
||
80 |
dependencies {
|
|
|
17
6ff6774c8121
ui: Make OpenSourceLicensesActivity open so users can override viewModel
Da Risk <da_risk@geekorum.com>
parents:
14
diff
changeset
|
81 |
api(project(":ui:common"))
|
| 14 | 82 |
implementation(platform(libs.androidx.compose.bom)) |
83 |
implementation(libs.androidx.compose.material3) |
|
84 |
implementation(libs.androidx.activity.compose) |
|
85 |
implementation(libs.androidx.navigation.compose) |
|
86 |
||
87 |
testImplementation(libs.junit) |
|
88 |
androidTestImplementation(libs.androidx.test.ext.junit) |
|
89 |
androidTestImplementation(libs.espresso.core) |
|
90 |
} |
|
91 |
||
92 |
publishing {
|
|
93 |
publications {
|
|
94 |
val pomConfiguration: (MavenPom).() -> Unit = {
|
|
95 |
name.set("ui-material3")
|
|
96 |
description.set("A library to retrieve and display opensource licenses in Android applications")
|
|
97 |
licenses {
|
|
98 |
license {
|
|
99 |
name.set("GPL-3.0-or-later")
|
|
100 |
url.set("https://www.gnu.org/licenses/gpl-3.0.html")
|
|
101 |
distribution.set("repo")
|
|
102 |
} |
|
103 |
} |
|
104 |
inceptionYear.set("2023")
|
|
105 |
} |
|
106 |
||
107 |
register<MavenPublication>("release") {
|
|
108 |
afterEvaluate {
|
|
109 |
from(components["release"]) |
|
110 |
} |
|
111 |
artifactId = "ui-material3" |
|
112 |
pom(pomConfiguration) |
|
113 |
} |
|
114 |
} |
|
115 |
} |