aboutsummaryrefslogtreecommitdiff
path: root/activity/build.gradle
blob: 243ef372b96458fb8ebd8e8fc1cfe2d54f4fe692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import static androidx.build.dependencies.DependenciesKt.*
import androidx.build.LibraryGroups
import androidx.build.LibraryVersions
import androidx.build.Publish

plugins {
    id("AndroidXPlugin")
    id("com.android.library")
    id("kotlin-android")
}

android {
    lintOptions {
        fatal("UnknownNullness")
    }
}

dependencies {
    api("androidx.annotation:annotation:1.1.0-rc01")
    api("androidx.core:core:1.1.0-rc01") {
        exclude group: 'androidx.annotation'
        exclude group: 'com.google.guava', module: 'listenablefuture'
    }
    api("androidx.lifecycle:lifecycle-runtime:2.1.0-beta01")
    api("androidx.lifecycle:lifecycle-viewmodel:2.1.0-beta01")
    api(project(":savedstate"))

    androidTestImplementation(KOTLIN_STDLIB)
    androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
    androidTestImplementation(ANDROIDX_TEST_CORE)
    androidTestImplementation(ANDROIDX_TEST_RUNNER)
    androidTestImplementation(ANDROIDX_TEST_RULES)
    androidTestImplementation(TRUTH)
    androidTestImplementation(ESPRESSO_CORE, libs.exclude_for_espresso)
    androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
    androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
}

androidx {
    name = "Activity"
    publish = Publish.SNAPSHOT_AND_RELEASE
    mavenVersion = LibraryVersions.ACTIVITY
    mavenGroup = LibraryGroups.ACTIVITY
    inceptionYear = "2018"
    description = "Provides the base Activity subclass and the relevant hooks to build a composable structure on top."
}