forked from RedMadRobot/debug-panel-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
81 lines (62 loc) · 1.98 KB
/
build.gradle.kts
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
plugins {
id(Plugins.Android.libraryPlagin)
kotlin(Plugins.Kotlin.androidPlugin)
kotlin(Plugins.Kotlin.androidExtensions)
kotlin(Plugins.Kotlin.kapt)
id("publishPlugin")
}
description = "Debug panel common components"
android {
compileSdk = Project.COMPILE_SDK
defaultConfig {
minSdk = Project.MIN_SDK
targetSdk = Project.TARGET_SDK
consumerProguardFile("consumer-rules.pro")
}
buildTypes {
getByName(Project.BuildTypes.release) {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile(Project.Proguard.androidOptimizedRules),
Project.Proguard.projectRules
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += "-Xexplicit-api=strict"
}
java.sourceSets.create("src.main.kotlin")
buildFeatures {
viewBinding = true
}
}
dependencies {
api(Dependencies.kotlin.stdlib)
api(Dependencies.okhttp)
api(Dependencies.androidx.app_compat)
api(Dependencies.androidx.design)
api(Dependencies.androidx.constraint_layout)
api(Dependencies.coroutines_android)
api(Dependencies.lifecycle.runtime)
api(Dependencies.lifecycle.extensions)
api(Dependencies.lifecycle.lifecycle_livedata)
api(Dependencies.lifecycle.lifecycle_livedata_core)
api(Dependencies.lifecycle.lifecycle_view_model)
api(Dependencies.room.runtime)
api(Dependencies.room.ktx)
api(Dependencies.tools.android_ktx)
api(Dependencies.ui.items_adapter)
api(Dependencies.feature_toggles.flipper)
api(Dependencies.debugging.timber)
// implementation fileTree (dir: 'libs', include: ['*.jar'])
kapt(Dependencies.room.compiler)
}
tasks.register("wrapper", Wrapper::class) {
setGradleVersion( "7.0.0")
}
tasks.register("prepareKotlinBuildScriptModel") {}