| author | Da Risk <da_risk@geekorum.com> |
| Wed, 06 Oct 2021 15:22:05 -0400 | |
| changeset 17 | e395df7aa39f |
| parent 15 | fc8b8638d5e3 |
| child 19 | 91a3ad3b1b9c |
| 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 |
* |
|
99ad8c14fec2
Add missing source license headers
Da Risk <da_risk@geekorum.com>
parents:
3
diff
changeset
|
5 |
* Copyright (C) 2017-2020 by Frederic-Charles Barthelery. |
|
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 |
|
| 1 | 40 |
|
41 |
defaultConfig {
|
|
| 17 | 42 |
minSdk = 24 |
43 |
targetSdk = 29 |
|
| 1 | 44 |
} |
45 |
configureJavaVersion() |
|
46 |
||
47 |
buildTypes {
|
|
48 |
getByName("release") {
|
|
49 |
isMinifyEnabled = false |
|
50 |
proguardFiles(getDefaultProguardFile("proguard-android.txt"),
|
|
51 |
"proguard-rules.pro") |
|
52 |
} |
|
53 |
} |
|
54 |
||
| 17 | 55 |
lint {
|
| 1 | 56 |
isAbortOnError = false |
57 |
} |
|
58 |
||
59 |
dataBinding {
|
|
60 |
isEnabled = true |
|
61 |
} |
|
62 |
||
63 |
} |
|
64 |
||
65 |
dependencies {
|
|
66 |
implementation("androidx.recyclerview:recyclerview:1.1.0")
|
|
67 |
implementation("androidx.appcompat:appcompat:1.1.0")
|
|
68 |
implementation("com.google.android.material:material:1.1.0")
|
|
69 |
implementation("androidx.constraintlayout:constraintlayout:1.1.3")
|
|
70 |
implementation("androidx.coordinatorlayout:coordinatorlayout:1.1.0")
|
|
71 |
implementation("androidx.annotation:annotation:1.1.0")
|
|
| 15 | 72 |
implementation("androidx.preference:preference:1.1.1")
|
73 |
implementation("androidx.core:core-ktx:1.3.1")
|
|
74 |
implementation("androidx.fragment:fragment-ktx:1.2.5")
|
|
| 1 | 75 |
|
76 |
implementation("com.squareup.picasso:picasso:2.5.2")
|
|
| 15 | 77 |
implementation("com.squareup.okhttp3:okhttp:4.6.0")
|
| 1 | 78 |
|
| 15 | 79 |
val daggerVersion = "2.28.3" |
| 1 | 80 |
implementation(enforcedDaggerPlatform(daggerVersion)) |
81 |
kapt(enforcedDaggerPlatform(daggerVersion)) |
|
82 |
implementation("com.google.dagger:dagger:$daggerVersion")
|
|
83 |
kapt("com.google.dagger:dagger-compiler:$daggerVersion")
|
|
84 |
compileOnly("com.squareup.inject:assisted-inject-annotations-dagger2:0.5.2")
|
|
85 |
kapt("com.squareup.inject:assisted-inject-processor-dagger2:0.5.2")
|
|
86 |
||
87 |
implementation(enforcedPlatform(kotlin("bom")))
|
|
88 |
implementation(kotlin("stdlib-jdk8"))
|
|
89 |
||
90 |
implementation(enforcedPlatform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.3.5"))
|
|
91 |
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core")
|
|
92 |
||
93 |
implementation("androidx.lifecycle:lifecycle-livedata-core-ktx:2.2.0")
|
|
94 |
implementation("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.2.0")
|
|
95 |
testImplementation("androidx.arch.core:core-testing:2.1.0")
|
|
96 |
||
| 15 | 97 |
implementation("androidx.room:room-runtime:2.2.5")
|
| 1 | 98 |
implementation("androidx.browser:browser:1.2.0")
|
| 15 | 99 |
implementation("androidx.work:work-runtime:2.4.0")
|
100 |
implementation("androidx.navigation:navigation-common-ktx:2.3.0")
|
|
101 |
implementation("androidx.navigation:navigation-fragment:2.3.0")
|
|
| 1 | 102 |
} |
103 |
||
104 |
||
105 |
apply {
|
|
106 |
from("$projectDir/../config/source-archive.gradle")
|
|
107 |
from("$projectDir/../config/android-maven-publication.gradle")
|
|
108 |
} |