| author | Da Risk <da_risk@geekorum.com> |
| Wed, 12 Mar 2025 19:49:58 -0400 | |
| changeset 24 | f07de07b90c4 |
| parent 23 | 5bba9369df0f |
| child 31 | 47d50ee6f31f |
| permissions | -rw-r--r-- |
| 15 | 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 |
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
|
|
23 |
plugins {
|
|
24 |
id("com.android.application")
|
|
25 |
id("org.jetbrains.kotlin.android")
|
|
26 |
id("com.geekorum.build.source-license-checker")
|
|
|
23
5bba9369df0f
build: update to kotlin 2.1.10
Da Risk <da_risk@geekorum.com>
parents:
22
diff
changeset
|
27 |
alias(libs.plugins.org.jetbrains.kotlin.compose.compiler) |
|
18
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
28 |
alias(libs.plugins.google.gms.oss.license) |
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
29 |
} |
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
30 |
|
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
31 |
// workaround bug https://issuetracker.google.com/issues/275534543 |
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
32 |
buildscript {
|
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
33 |
dependencies {
|
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
34 |
classpath("com.android.tools.build:gradle:8.0.0")
|
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
35 |
} |
| 15 | 36 |
} |
37 |
||
38 |
android {
|
|
39 |
namespace = "com.geekorum.aboutoss.sampleapp" |
|
| 22 | 40 |
compileSdk = 35 |
| 15 | 41 |
|
42 |
defaultConfig {
|
|
43 |
applicationId = "com.geekorum.aboutoss.sampleapp" |
|
44 |
minSdk = 24 |
|
45 |
targetSdk = 33 |
|
46 |
versionCode = 1 |
|
47 |
versionName = "1.0" |
|
48 |
||
49 |
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" |
|
50 |
vectorDrawables {
|
|
51 |
useSupportLibrary = true |
|
52 |
} |
|
53 |
} |
|
54 |
||
55 |
buildTypes {
|
|
56 |
release {
|
|
57 |
isMinifyEnabled = false |
|
58 |
proguardFiles( |
|
59 |
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
60 |
"proguard-rules.pro" |
|
61 |
) |
|
62 |
} |
|
63 |
} |
|
64 |
compileOptions {
|
|
65 |
sourceCompatibility = JavaVersion.VERSION_1_8 |
|
66 |
targetCompatibility = JavaVersion.VERSION_1_8 |
|
67 |
} |
|
68 |
kotlinOptions {
|
|
69 |
jvmTarget = "1.8" |
|
70 |
} |
|
71 |
buildFeatures {
|
|
72 |
compose = true |
|
|
18
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
73 |
buildConfig = true |
| 15 | 74 |
} |
75 |
packaging {
|
|
76 |
resources {
|
|
77 |
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
78 |
} |
|
79 |
} |
|
80 |
} |
|
81 |
||
82 |
dependencies {
|
|
|
18
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
83 |
implementation(project(":core"))
|
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
84 |
implementation(project(":ui:common"))
|
| 15 | 85 |
implementation(project(":ui:material2"))
|
86 |
implementation(project(":ui:material3"))
|
|
87 |
||
|
18
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
88 |
implementation(libs.geekdroid) {
|
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
89 |
//TODO get rid of dagger platform in geekdroid |
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
90 |
exclude("com.google.dagger", "dagger-platform")
|
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
91 |
} |
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
92 |
|
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
93 |
|
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
94 |
implementation(libs.androidx.lifecycle.viewmodel) |
|
ac393491d2eb
sample: complete sample application
Da Risk <da_risk@geekorum.com>
parents:
15
diff
changeset
|
95 |
implementation(libs.androidx.lifecycle.viewmodel.compose) |
| 15 | 96 |
implementation(libs.androidx.activity.compose) |
97 |
implementation(platform(libs.androidx.compose.bom)) |
|
98 |
implementation(libs.androidx.compose.ui) |
|
99 |
implementation(libs.androidx.compose.ui.graphics) |
|
100 |
implementation(libs.androidx.compose.ui.tooling.preview) |
|
101 |
implementation(libs.androidx.compose.material3) |
|
102 |
testImplementation(libs.junit) |
|
103 |
androidTestImplementation(libs.androidx.test.ext.junit) |
|
104 |
androidTestImplementation(libs.espresso.core) |
|
105 |
androidTestImplementation(platform(libs.androidx.compose.bom)) |
|
106 |
androidTestImplementation(libs.androidx.compose.ui.test.junit4) |
|
107 |
debugImplementation(libs.androidx.compose.ui.tooling) |
|
108 |
debugImplementation(libs.androidx.compose.ui.test.manifest) |
|
109 |
} |