| author | Da Risk <da_risk@geekorum.com> |
| Mon, 30 Sep 2019 17:17:16 -0700 | |
| changeset 498 | 1bbc2d7d66fb |
| parent 482 | 2a70627346a7 |
| child 521 | 2a5be03dd6bc |
| permissions | -rw-r--r-- |
| 181 | 1 |
/* |
| 0 | 2 |
* Geekttrss is a RSS feed reader application on the Android Platform. |
3 |
* |
|
| 181 | 4 |
* Copyright (C) 2017-2019 by Frederic-Charles Barthelery. |
| 0 | 5 |
* |
6 |
* This file is part of Geekttrss. |
|
7 |
* |
|
8 |
* Geekttrss is free software: you can redistribute it and/or modify |
|
9 |
* it under the terms of the GNU General Public License as published by |
|
10 |
* the Free Software Foundation, either version 3 of the License, or |
|
11 |
* (at your option) any later version. |
|
12 |
* |
|
13 |
* Geekttrss is distributed in the hope that it will be useful, |
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
* GNU General Public License for more details. |
|
17 |
* |
|
18 |
* You should have received a copy of the GNU General Public License |
|
19 |
* along with Geekttrss. If not, see <http://www.gnu.org/licenses/>. |
|
20 |
*/ |
|
|
364
968f44db1e96
Configure Java version globally
Da Risk <da_risk@geekorum.com>
parents:
363
diff
changeset
|
21 |
import com.android.build.gradle.BaseExtension |
|
968f44db1e96
Configure Java version globally
Da Risk <da_risk@geekorum.com>
parents:
363
diff
changeset
|
22 |
import com.geekorum.build.configureJavaVersion |
|
161
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
23 |
import com.geekorum.build.createComponentsPlatforms |
|
101
247d5b1c0324
build: use dependencies version alignment and filter content of google()
Da Risk <da_risk@geekorum.com>
parents:
60
diff
changeset
|
24 |
import com.geekorum.build.setupGoogleContent |
| 363 | 25 |
import org.jetbrains.kotlin.gradle.plugin.KaptExtension |
| 280 | 26 |
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| 0 | 27 |
import java.net.URI |
28 |
||
29 |
plugins {
|
|
|
228
00ff988c9fca
build: update to AGP 3.4.1 and update oss-license-plugin
Da Risk <da_risk@geekorum.com>
parents:
181
diff
changeset
|
30 |
id("com.google.android.gms.oss-licenses-plugin") version "0.9.5.1" apply false
|
| 0 | 31 |
id("com.google.gms.google-services") version "3.2.0" apply false
|
|
318
2fbcca748f78
build: update fabric gradle plugin
Da Risk <da_risk@geekorum.com>
parents:
296
diff
changeset
|
32 |
id("io.fabric") version "1.29.0" apply false
|
| 397 | 33 |
kotlin("android") version "1.3.50" apply false
|
34 |
kotlin("kapt") version "1.3.50" apply false
|
|
35 |
id("kotlinx-serialization") version "1.3.50" apply false
|
|
|
332
40e435d80c0c
build: add navigation safe args plugin
Da Risk <da_risk@geekorum.com>
parents:
318
diff
changeset
|
36 |
id("androidx.navigation.safeargs.kotlin") version "2.1.0-alpha06" apply false
|
| 0 | 37 |
} |
38 |
||
39 |
||
40 |
// some extra properties |
|
| 233 | 41 |
extra["compileSdkVersion"] = "android-29" |
| 363 | 42 |
extra["daggerVersion"] = "2.24" |
|
421
859638996c86
LoginActivity: fix a few warnings
Da Risk <da_risk@geekorum.com>
parents:
405
diff
changeset
|
43 |
extra["lifecycleVersion"] = "2.2.0-alpha03" |
| 0 | 44 |
|
45 |
||
46 |
allprojects {
|
|
47 |
repositories {
|
|
|
101
247d5b1c0324
build: use dependencies version alignment and filter content of google()
Da Risk <da_risk@geekorum.com>
parents:
60
diff
changeset
|
48 |
google().setupGoogleContent() |
| 0 | 49 |
jcenter() |
50 |
// for kotlinx |
|
51 |
maven { url = URI("https://kotlin.bintray.com/kotlinx") }
|
|
|
161
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
52 |
// for geekdroid |
|
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
53 |
flatDir {
|
|
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
54 |
dirs(rootProject.files("libs"))
|
|
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
55 |
} |
|
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
56 |
} |
|
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
57 |
dependencies {
|
|
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
58 |
createComponentsPlatforms() |
| 0 | 59 |
} |
| 280 | 60 |
|
61 |
tasks.withType<KotlinCompile> {
|
|
|
342
10640a083343
OnDemandModuleManager: use flow instead of channel when applicable
Da Risk <da_risk@geekorum.com>
parents:
341
diff
changeset
|
62 |
kotlinOptions {
|
|
10640a083343
OnDemandModuleManager: use flow instead of channel when applicable
Da Risk <da_risk@geekorum.com>
parents:
341
diff
changeset
|
63 |
jvmTarget = "1.8" |
|
482
2a70627346a7
InAppUpdateManager: allow to collect current update state
Da Risk <da_risk@geekorum.com>
parents:
421
diff
changeset
|
64 |
freeCompilerArgs = listOf("-Xuse-experimental=kotlin.Experimental", "-XXLanguage:+InlineClasses")
|
|
342
10640a083343
OnDemandModuleManager: use flow instead of channel when applicable
Da Risk <da_risk@geekorum.com>
parents:
341
diff
changeset
|
65 |
} |
| 280 | 66 |
} |
| 363 | 67 |
|
68 |
afterEvaluate {
|
|
69 |
extensions.findByType<KaptExtension>()?.arguments {
|
|
70 |
arg("dagger.formatGeneratedSource", "enabled")
|
|
71 |
} |
|
|
364
968f44db1e96
Configure Java version globally
Da Risk <da_risk@geekorum.com>
parents:
363
diff
changeset
|
72 |
extensions.findByType<BaseExtension>()?.apply {
|
|
968f44db1e96
Configure Java version globally
Da Risk <da_risk@geekorum.com>
parents:
363
diff
changeset
|
73 |
configureJavaVersion() |
|
968f44db1e96
Configure Java version globally
Da Risk <da_risk@geekorum.com>
parents:
363
diff
changeset
|
74 |
} |
| 363 | 75 |
} |
| 0 | 76 |
} |
77 |
||
78 |
tasks.register("clean", Delete::class.java) {
|
|
79 |
delete(buildDir) |
|
80 |
} |