forked from otwarty-wykop-mobilny/wykop-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·52 lines (48 loc) · 1.61 KB
/
build.gradle
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
import com.android.build.gradle.internal.tasks.databinding.DataBindingMergeDependencyArtifactsTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("com.starter.config")
id("com.starter.versioning")
id("com.gradleup.auto.manifest")
id("com.osacky.doctor") version("0.7.3")
id("com.starter.easylauncher") version("4.2.0") apply(false)
id "com.github.ben-manes.versions" version "0.41.0"
}
autoManifest {
packageName.set("io.github.wykopmobilny")
}
commonConfig {
javaFilesAllowed false
javaVersion JavaVersion.VERSION_11
}
allprojects {
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs +
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi" +
"-Xopt-in=kotlin.RequiresOptIn" +
"-Xopt-in=kotlin.time.ExperimentalTime" +
"-Xopt-in=kotlinx.coroutines.FlowPreview"
}
}
["com.android.library", "com.android.application"].forEach {
pluginManager.withPlugin(it) {
tasks.withType(DataBindingMergeDependencyArtifactsTask).configureEach {
outputs.cacheIf { false }
}
android.packagingOptions {
exclude 'META-INF/*.kotlin_module'
}
}
}
pluginManager.withPlugin("com.android.library") {
android.variantFilter {
ignore = buildType.name != "debug"
}
}
pluginManager.withPlugin("com.android.application") {
android.buildTypes.configureEach {
setMatchingFallbacks("debug")
}
}
}