build.gradle.kts
author Da Risk <da_risk@geekorum.com>
Mon, 20 May 2019 15:08:22 -0700
changeset 162 f627eceb01b2
parent 161 a359009c33c3
child 181 5ba798c38149
permissions -rw-r--r--
Update appcompat and lifecycle
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     1
/**
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     2
 * Geekttrss is a RSS feed reader application on the Android Platform.
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     3
 *
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     4
 * Copyright (C) 2017-2018 by Frederic-Charles Barthelery.
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     5
 *
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     6
 * This file is part of Geekttrss.
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     7
 *
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     8
 * Geekttrss is free software: you can redistribute it and/or modify
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     9
 * it under the terms of the GNU General Public License as published by
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    10
 * the Free Software Foundation, either version 3 of the License, or
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    11
 * (at your option) any later version.
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    12
 *
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    13
 * Geekttrss is distributed in the hope that it will be useful,
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    16
 * GNU General Public License for more details.
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    17
 *
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    18
 * You should have received a copy of the GNU General Public License
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    19
 * along with Geekttrss.  If not, see <http://www.gnu.org/licenses/>.
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    20
 */
161
a359009c33c3 Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents: 147
diff changeset
    21
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
    22
import com.geekorum.build.setupGoogleContent
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    23
import java.net.URI
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    24
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    25
plugins {
114
573c45437ea9 Update to AGP 3.4 and genymotion plugin 1.4.2
Da Risk <da_risk@geekorum.com>
parents: 113
diff changeset
    26
    id("com.google.android.gms.oss-licenses-plugin") version "0.9.3.2" apply false
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    27
    id("com.google.gms.google-services") version "3.2.0" apply false
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    28
    id("io.fabric") version "1.25.4" apply false
113
32e2a09387f8 Update to kotlin-1.3.30
Da Risk <da_risk@geekorum.com>
parents: 101
diff changeset
    29
    kotlin("android") version "1.3.30" apply false
32e2a09387f8 Update to kotlin-1.3.30
Da Risk <da_risk@geekorum.com>
parents: 101
diff changeset
    30
    kotlin("kapt") version "1.3.30" apply false
32e2a09387f8 Update to kotlin-1.3.30
Da Risk <da_risk@geekorum.com>
parents: 101
diff changeset
    31
    id("kotlinx-serialization") version "1.3.30" apply false
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    32
}
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    33
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    34
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    35
// some extra properties
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    36
extra["compileSdkVersion"] = "android-28"
51
3e04fe4155ff Update to dagger 2.21
Da Risk <da_risk@geekorum.com>
parents: 50
diff changeset
    37
extra["daggerVersion"] = "2.21"
162
f627eceb01b2 Update appcompat and lifecycle
Da Risk <da_risk@geekorum.com>
parents: 161
diff changeset
    38
extra["lifecycleVersion"] = "2.2.0-alpha01"
147
52fd9f563f16 update to room 2.1.0-beta01
Da Risk <da_risk@geekorum.com>
parents: 122
diff changeset
    39
extra["roomVersion"] = "2.1.0-beta01"
113
32e2a09387f8 Update to kotlin-1.3.30
Da Risk <da_risk@geekorum.com>
parents: 101
diff changeset
    40
extra["kotlinVersion"] = "1.3.30"
122
c598826a4795 Update geekdroid and coroutines version
Da Risk <da_risk@geekorum.com>
parents: 114
diff changeset
    41
extra["coroutinesVersion"] = "1.2.1"
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    42
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    43
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    44
allprojects {
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    45
    repositories {
101
247d5b1c0324 build: use dependencies version alignment and filter content of google()
Da Risk <da_risk@geekorum.com>
parents: 60
diff changeset
    46
        google().setupGoogleContent()
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    47
        jcenter()
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    48
        // for kotlinx
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    49
        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
    50
        // for geekdroid
a359009c33c3 Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents: 147
diff changeset
    51
        flatDir {
a359009c33c3 Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents: 147
diff changeset
    52
            dirs(rootProject.files("libs"))
a359009c33c3 Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents: 147
diff changeset
    53
        }
a359009c33c3 Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents: 147
diff changeset
    54
    }
a359009c33c3 Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents: 147
diff changeset
    55
    dependencies {
a359009c33c3 Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents: 147
diff changeset
    56
        createComponentsPlatforms()
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    57
    }
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    58
}
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    59
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    60
tasks.register("clean", Delete::class.java) {
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    61
    delete(buildDir)
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    62
}