| author | Da Risk <da_risk@geekorum.com> |
| Tue, 29 Nov 2022 15:05:58 -0400 | |
| changeset 22 | ed6a07c575e6 |
| parent 21 | dc82b76f2a3f |
| child 23 | ab8851704ae7 |
| permissions | -rw-r--r-- |
|
6
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
1 |
/* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
2 |
* Geekdroid is a utility library for development on the Android |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
3 |
* Platform. |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
4 |
* |
| 20 | 5 |
* Copyright (C) 2017-2022 by Frederic-Charles Barthelery. |
|
6
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
6 |
* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
7 |
* This file is part of Geekdroid. |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
8 |
* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
9 |
* Geekdroid is free software: you can redistribute it and/or modify |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
10 |
* it under the terms of the GNU General Public License as published by |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
11 |
* the Free Software Foundation, either version 3 of the License, or |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
12 |
* (at your option) any later version. |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
13 |
* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
14 |
* Geekdroid is distributed in the hope that it will be useful, |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
17 |
* GNU General Public License for more details. |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
18 |
* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
19 |
* You should have received a copy of the GNU General Public License |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
20 |
* along with Geekdroid. If not, see <http://www.gnu.org/licenses/>. |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
21 |
*/ |
| 1 | 22 |
import com.geekorum.build.configureJavaVersion |
23 |
import com.geekorum.build.enforcedDaggerPlatform |
|
24 |
||
25 |
plugins {
|
|
26 |
id("com.android.library")
|
|
27 |
kotlin("android")
|
|
28 |
kotlin("kapt")
|
|
29 |
id("com.geekorum.build.android-tests")
|
|
30 |
id("com.geekorum.build.android-avdl")
|
|
| 2 | 31 |
`maven-publish` |
| 1 | 32 |
} |
33 |
||
34 |
val archivesBaseName by extra("geekdroid")
|
|
35 |
val artifactId by extra (archivesBaseName) |
|
36 |
||
37 |
android {
|
|
| 17 | 38 |
val compileSdkInt: Int by rootProject.extra |
39 |
compileSdk = compileSdkInt |
|
| 19 | 40 |
namespace = "com.geekorum.geekdroid" |
| 1 | 41 |
|
42 |
defaultConfig {
|
|
| 17 | 43 |
minSdk = 24 |
44 |
targetSdk = 29 |
|
| 1 | 45 |
} |
46 |
configureJavaVersion() |
|
47 |
||
48 |
buildTypes {
|
|
49 |
getByName("release") {
|
|
50 |
isMinifyEnabled = false |
|
51 |
proguardFiles(getDefaultProguardFile("proguard-android.txt"),
|
|
52 |
"proguard-rules.pro") |
|
53 |
} |
|
54 |
} |
|
55 |
||
| 17 | 56 |
lint {
|
| 19 | 57 |
abortOnError = false |
| 1 | 58 |
} |
59 |
||
60 |
dataBinding {
|
|
| 19 | 61 |
enable = true |
| 1 | 62 |
} |
63 |
||
64 |
} |
|
65 |
||
66 |
dependencies {
|
|
| 22 | 67 |
implementation("androidx.recyclerview:recyclerview:1.2.1")
|
68 |
implementation("androidx.appcompat:appcompat:1.5.1")
|
|
69 |
implementation("com.google.android.material:material:1.7.0")
|
|
70 |
api("androidx.constraintlayout:constraintlayout:2.1.4")
|
|
71 |
implementation("androidx.coordinatorlayout:coordinatorlayout:1.2.0")
|
|
72 |
implementation("androidx.annotation:annotation:1.5.0")
|
|
73 |
implementation("androidx.preference:preference:1.2.0")
|
|
74 |
implementation("androidx.core:core-ktx:1.9.0")
|
|
75 |
implementation("androidx.fragment:fragment-ktx:1.5.4")
|
|
| 1 | 76 |
|
77 |
implementation("com.squareup.picasso:picasso:2.5.2")
|
|
| 22 | 78 |
implementation("com.squareup.okhttp3:okhttp:4.10.0")
|
| 1 | 79 |
|
| 21 | 80 |
val daggerVersion = "2.44.1" |
| 1 | 81 |
implementation(enforcedDaggerPlatform(daggerVersion)) |
82 |
kapt(enforcedDaggerPlatform(daggerVersion)) |
|
83 |
implementation("com.google.dagger:dagger:$daggerVersion")
|
|
84 |
kapt("com.google.dagger:dagger-compiler:$daggerVersion")
|
|
85 |
||
86 |
implementation(enforcedPlatform(kotlin("bom")))
|
|
87 |
implementation(kotlin("stdlib-jdk8"))
|
|
88 |
||
89 |
implementation(enforcedPlatform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.3.5"))
|
|
90 |
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core")
|
|
91 |
||
| 22 | 92 |
implementation("androidx.lifecycle:lifecycle-livedata-core-ktx:2.5.1")
|
93 |
implementation("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1")
|
|
| 1 | 94 |
testImplementation("androidx.arch.core:core-testing:2.1.0")
|
95 |
||
| 22 | 96 |
implementation("androidx.room:room-runtime:2.4.3")
|
97 |
implementation("androidx.browser:browser:1.4.0")
|
|
98 |
implementation("androidx.work:work-runtime:2.7.1")
|
|
99 |
implementation("androidx.navigation:navigation-common-ktx:2.5.3")
|
|
100 |
implementation("androidx.navigation:navigation-fragment:2.5.3")
|
|
| 1 | 101 |
} |
102 |
||
103 |
||
104 |
apply {
|
|
105 |
from("$projectDir/../config/source-archive.gradle")
|
|
106 |
from("$projectDir/../config/android-maven-publication.gradle")
|
|
107 |
} |