-
Notifications
You must be signed in to change notification settings - Fork 59
/
expected_build_gradle.kts
187 lines (168 loc) · 5.36 KB
/
expected_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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
plugins {
id("com.android.application")
id("kotlin-android")
}
apply(plugin = ("kotlin-kapt"))
apply(plugin = ("kotlin-android-extensions"))
dependencies {
classpath("com.android.tools.build:gradle:3.4.0-alpha10")
classpath(kotlin("gradle-plugin", version = "$KOTLIN_VERSION"))
classpath("com.bmuschko:gradle-nexus-plugin:2.3.1")
classpath("com.github.ben-manes:gradle-versions-plugin:0.20.0")
}
// this should not be converted to block, like the first ones
apply(plugin = ("gms"))
plugins {
id("io.gitlab.arturbosch.detekt") version "1.0.0.RC8"
id("io.gitlab.arturbosch.detekt")
}
dependencies {
ext {
val test = "1.0.1"
}
val highdef = "1.1.0"
val testing = "1.0.2"
implementation(rootProject.deps.androidPagingComponent)
implementation(project(":customer-api")) // comment!
kapt(project(":epoxy-processor"))
implementation(":epoxy-annotations")
val ANDROIDX_APPCOMPAT = "1.0.0"
implementation("androidx.appcompat:appcompat:$ANDROIDX_APPCOMPAT")
testImplementation("com.randomDependency:1.0.0")
compileOnly(group = "commons-io", name = "commons-io", version = "2.6")
testCompileOnly(group = "org.apache.commons", name = "commons-math3", version = "3.6.1")
customFlavorImplementation "a.lib.com"
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.2")
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.21.0")
ksp("com.squareup.moshi:moshi-kotlin-codegen:1.14.0")
implementation("androidx.compose.ui:ui:1.3.2")
lintPublish(project(":my-lints"))
lintCheck(project(":my-lints"))
}
testImplementation(group = "junit", name = "junit", version = "4.12")
configurations.classpath {
exclude(group = "com.android.tools.external.lombok")
}
implementation(kotlin("stdlib"))
implementation(kotlin("stdlib"))
releaseImplementation(kotlin("stdlib"))
debugImplementation(kotlin("stdlib"))
classpath(kotlin("gradle-plugin", version = "$kotlin_version"))
classpath(kotlin("gradle-plugin", version = "1.3.20"))
implementation(kotlin("reflect"))
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit"))
include(":app", ":diffutils")
include(
":common",
":server",
":app", ":core", ":core-model", ":core-data", ":core-ui",
":shared", ":shared-scouting",
":feature-teams", ":feature-autoscout",
":feature-scouts", ":feature-templates", ":feature-settings",
":feature-exports"
)
androidExtensions {
isExperimental = true
}
allprojects {
repositories {
google()
jcenter()
maven("https://jitpack.io")
maven("https://maven.fabric.io/public")
maven("https://dl.bintray.com/kotlin/kotlin-eap")
}
}
compileSdkVersion(28)
defaultConfig {
applicationId = "com.bernaferrari.sdkmonitor"
minSdkVersion(21)
targetSdkVersion(28)
versionCode = 4
versionName = "0.4"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
named("release") {
multiDexEnabled = true
isDebuggable = false
isMinifyEnabled = true
isShrinkResources = true
setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"))
signingConfig = signingConfigs.getByName("release")
}
named("debug") {
isDebuggable = true
extra["alwaysUpdateBuildId"] = false
extra["enableCrashlytics"] = false
}
}
signingConfigs {
register("release") {
storeFile = file(RELEASE_STORE_FILE)
storePassword = RELEASE_STORE_PASSWORD
keyAlias = RELEASE_KEY_ALIAS
keyPassword = RELEASE_KEY_PASSWORD
}
}
kapt {
correctErrorTypes = true
}
android {
namespace = "com.bernaferrari.sdkmonitor"
lintOptions {
isAbortOnError = false
}
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
buildConfigField("boolean", "BETA", "false")
manifestPlaceholders.putAll(mapOf("appIcon" to "@drawable/ic_launcher", "appRoundIcon" to "@null", "googleMapsKey" to "aNonKey"))
vectorDrawables.useSupportLibrary = true
}
flavorDimensions("brand", "releaseType")
productFlavors {
create("prod") {
dimension = "releaseType"
resValue("string", "myFieldName", "@string/app_name")
manifestPlaceholders.putAll(mapOf("appLabel" to "@string/activity_label", "deepLink" to "@string/deepLink"))
}
}
variantFilter { // variant -> - TODO Manually replace 'variant ->' variable with this, and setIgnore(true) with ignore = true
setIgnore(false)
}
dexOptions {
javaMaxHeapSize = "4g"
jumboMode = true
}
dataBinding {
isEnabled = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.3.2"
}
buildFeatures {
aidl = false
compose = true
buildConfig = true
prefab = true
renderScript = true
resValues = true
shaders = true
dataBinding = false
viewBinding = true
}
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
sourceCompatibility = JavaVersion.VERSION_1_8
dataBinding {
isEnabled = true
}
tasks.register<Delete>("clean").configure {
delete(rootProject.buildDir)
}