forked from ologe/canaree-music-player
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
73 lines (61 loc) · 2.02 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '1.3.50'
google_services = '4.3.2'
fabric = '1.31.0'
firebase_perf_plugin = '1.3.1'
}
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.gms:google-services:$google_services"
classpath "io.fabric.tools:gradle:$fabric"
classpath "com.google.firebase:perf-plugin:$firebase_perf_plugin"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
// maven { url "https://dl.bintray.com/drummer-aidan/maven/" }
}
gradle.projectsEvaluated { // TODO remove after coroutines became stable
tasks.withType(org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile).all {
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlinx.coroutines.FlowPreview"]
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"]
kotlinOptions.jvmTarget = "1.8"
}
}
afterEvaluate {
extensions.findByName('kapt')?.arguments {
arg("dagger.fastInit", "enabled")
arg("dagger.formatGeneratedSource", "disabled")
// arg("dagger.fullBindingGraphValidation", "ERROR")
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
// Sdk and tools
minSdkVersion = 21
targetSdkVersion = 29
compileSdkVersion = 29
buildToolsVersion = '29.0.2'
/* version code
999 - for old compatibility
27 - android version
X.xxx - X major version, xxx minor version
*/
versionCode = 999_29_3_2_03
versionName = '3.2.3'
}
apply from: 'dependencies.gradle'