-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
94 lines (83 loc) · 3.09 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Top-level build file for adding configuration options common to all sub-projects/modules.
//file:noinspection GroovyAssignabilityCheck
//file:noinspection GrUnresolvedAccess
buildscript {
ext {
// sdk versions
compile_sdk_version = 34
build_tools_version = "30.0.3"
min_sdk_version = 21
target_sdk_version = 34
/* to check the latest version @see
[
https://play.google.com/console/u/0/developers/6867856033872987263/app/4974045020812963921/releases/overview
]
*/
version_code = 21
version_name = "1.1.1"
}
repositories {
// Google's Maven repository
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"
// Google Services plugin (required for firebase)
classpath 'com.google.gms:google-services:4.3.15'
// firebase
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.5'
classpath 'com.google.firebase:perf-plugin:1.4.2'
classpath 'com.google.firebase:firebase-appdistribution-gradle:4.0.0'
}
}
ext {
getParam = { key ->
def value = System.getenv(key) ?: project.findProperty("env.$key")
return value
}
DATABASE_NAME = getParam("DATABASE_SONGS")
SIGNING_KEY_DEBUG_PATH = getParam("SIGNING_KEY_DEBUG_PATH")
SIGNING_KEY_DEBUG_PASSWORD = getParam("SIGNING_KEY_DEBUG_PASSWORD")
SIGNING_KEY_DEBUG_KEY = getParam("SIGNING_KEY_DEBUG_KEY")
SIGNING_KEY_DEBUG_KEY_PASSWORD = getParam("SIGNING_KEY_DEBUG_KEY_PASSWORD")
SIGNING_KEY_RELEASE_PATH = getParam("SIGNING_KEY_RELEASE_PATH")
SIGNING_KEY_RELEASE_PASSWORD = getParam("SIGNING_KEY_RELEASE_PASSWORD")
SIGNING_KEY_RELEASE_KEY = getParam("SIGNING_KEY_RELEASE_KEY")
SIGNING_KEY_RELEASE_KEY_PASSWORD = getParam("SIGNING_KEY_RELEASE_KEY_PASSWORD")
}
subprojects {
afterEvaluate {
dependencies {
// dependency injection (Dagger Hilt)
//noinspection GrUnresolvedAccess
annotationProcessor "com.google.dagger:hilt-android-compiler:$hiltVersion"
annotationProcessor "androidx.hilt:hilt-compiler:$hiltAndroidXVersion"
implementation "com.google.dagger:hilt-core:$hiltVersion"
// Asynchronous programming (Reactive Extensions)
implementation "io.reactivex.rxjava3:rxandroid:$rxAndroidVersion"
implementation "com.github.akarnokd:rxjava3-bridge:$rxAndroidVersion"
implementation "io.reactivex.rxjava3:rxjava:$rxJavaVersion"
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile).tap {
configureEach {
options.compilerArgs << '-Xmaxerrs' << '500'
}
}
}
}
allprojects {
repositories {
// Google's Maven repository
google()
mavenCentral()
}
}
tasks.register('clean') {
delete rootProject.buildDir
}