| author | Da Risk <da_risk@geekorum.com> |
| Fri, 15 Feb 2019 11:08:28 -0800 | |
| changeset 89 | 902947e3ee23 |
| parent 14 | 84a27546e309 |
| child 114 | 573c45437ea9 |
| permissions | -rw-r--r-- |
| 0 | 1 |
/** |
2 |
* Geekttrss is a RSS feed reader application on the Android Platform. |
|
3 |
* |
|
4 |
* Copyright (C) 2017-2018 by Frederic-Charles Barthelery. |
|
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 |
*/ |
|
21 |
||
22 |
import org.gradle.api.internal.DynamicObjectAware |
|
23 |
import kotlin.reflect.KProperty |
|
24 |
import java.net.URI |
|
25 |
||
26 |
pluginManagement {
|
|
27 |
repositories {
|
|
28 |
gradlePluginPortal() |
|
29 |
jcenter() |
|
30 |
maven {
|
|
31 |
// Workaround for bug https://github.com/gradle/kotlin-dsl/issues/1186 |
|
32 |
// we publish oss-licenses-plugin 0.9.3.1 |
|
33 |
url = URI("https://raw.githubusercontent.com/fbarthelery/play-services-plugins/master/repo/")
|
|
34 |
} |
|
35 |
google() |
|
36 |
maven {
|
|
37 |
url = URI("https://maven.fabric.io/public")
|
|
38 |
} |
|
39 |
} |
|
40 |
resolutionStrategy {
|
|
41 |
eachPlugin {
|
|
42 |
val id = requested.id.id |
|
43 |
when {
|
|
44 |
id == "com.google.android.gms.oss-licenses-plugin" -> useModule("com.google.android.gms:oss-licenses-plugin:${requested.version}")
|
|
45 |
id == "com.google.gms.google-services" -> useModule("com.google.gms:google-services:${requested.version}")
|
|
46 |
id.startsWith("com.android.") -> useModule("com.android.tools.build:gradle:${requested.version}")
|
|
47 |
id == "com.github.triplet.play" -> useModule("com.github.triplet.gradle:play-publisher:${requested.version}")
|
|
48 |
id == "io.fabric" -> useModule("io.fabric.tools:gradle:${requested.version}")
|
|
49 |
id == "kotlinx-serialization" -> useModule("org.jetbrains.kotlin:kotlin-serialization:${requested.version}")
|
|
50 |
} |
|
51 |
} |
|
52 |
} |
|
53 |
} |
|
54 |
||
55 |
// build cache settings for ci |
|
56 |
apply {
|
|
57 |
from("$rootDir/config/ci-buildcache.gradle")
|
|
58 |
} |
|
59 |
||
60 |
include(":app")
|
|
61 |
||
62 |
val GEEKDROID_PROJECT_DIR: String? by settings |
|
63 |
GEEKDROID_PROJECT_DIR?.let {
|
|
64 |
includeBuild(it) {
|
|
65 |
dependencySubstitution {
|
|
66 |
substitute(module("com.geekorum:geekdroid")).with(project(":library"))
|
|
|
14
84a27546e309
google variant: log to crashlytics
Da Risk <da_risk@geekorum.com>
parents:
0
diff
changeset
|
67 |
substitute(module("com.geekorum:geekdroid-firebase")).with(project(":geekdroid-firebase"))
|
| 0 | 68 |
} |
69 |
} |
|
70 |
} |