-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
80 lines (71 loc) · 2.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
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
buildscript {
ext.buildConfig = [
'compileSdk': 30,
'minSdk' : 21,
'targetSdk' : 30,
'buildTools': '30.0.3',
'version' : [
'major': 3,
'minor': 0,
'patch': 2,
'build': 0,
'code' : 75
],
]
ext.buildConfig.version['name'] = "${buildConfig.version.major}.${buildConfig.version.minor}.${buildConfig.version.patch}"
ext.isPlayStoreBuild = rootProject.properties['plainupnp.isPlayStoreBuild'].toBoolean()
repositories {
mavenCentral()
google()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath(libs.gradle.plugin.sqldelight)
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21'
classpath(libs.gradle.plugin.hilt)
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.17'
if (isPlayStoreBuild) {
classpath 'com.google.gms:google-services:4.3.8'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.6.1'
}
}
}
allprojects {
repositories {
google()
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
jcenter()
}
plugins.withType(com.android.build.gradle.BasePlugin).configureEach { plugin ->
plugin.extension.compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
tasks.withType(JavaCompile).configureEach { task ->
task.sourceCompatibility = JavaVersion.VERSION_11
task.targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType(org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile).configureEach { task ->
task.kotlinOptions {
jvmTarget = JavaVersion.VERSION_11
}
}
tasks.withType(org.jetbrains.kotlin.gradle.dsl.KotlinCompile).configureEach { task ->
task.kotlinOptions {
useIR = true
freeCompilerArgs += [
'-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi',
'-Xopt-in=kotlinx.coroutines.ObsoleteCoroutinesApi',
'-Xopt-in=kotlin.time.ExperimentalTime',
'-Xopt-in=kotlinx.coroutines.FlowPreview',
'-Xopt-in=kotlin.ExperimentalStdlibApi',
'-Xopt-in=androidx.compose.animation.ExperimentalAnimationApi',
'-Xopt-in=androidx.compose.material.ExperimentalMaterialApi'
]
}
}
}