-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
64 lines (57 loc) · 2.22 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
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath libs.android.gradle
classpath libs.kotlin.gradle
classpath libs.kotlinova.gradle
classpath libs.google.playServices.gradle
classpath libs.google.firebase.crashlytics.gradle
classpath libs.versionsPlugin.gradle
classpath libs.unmock.gradle
classpath libs.androidx.hilt.gradle
}
}
allprojects {
repositories {
maven { url "https://jitpack.io" }
mavenCentral()
google()
}
}
allprojects {
apply plugin: "com.github.ben-manes.versions"
tasks.named("dependencyUpdates").configure {
rejectVersionIf {
!it.currentVersion.contains("alpha") &&
!it.currentVersion.contains("beta") &&
!it.currentVersion.contains("RC") &&
!it.currentVersion.contains("rc") &&
!it.currentVersion.contains("M") &&
(
it.candidate.version.contains("alpha") ||
it.candidate.version.contains("beta") ||
it.candidate.version.contains("RC") ||
it.candidate.version.contains("rc") ||
it.candidate.version.contains("M")
)
}
reportfileName = "versions"
outputFormatter = "json"
}
afterEvaluate { project ->
def keystoreProperties = rootProject.file('keystore.properties')
def debugConfig = 'debug'
if (project.plugins.findPlugin("com.android.base") != null && keystoreProperties.exists() && android.signingConfigs.hasProperty(debugConfig)) {
def props = new Properties()
props.load(new FileInputStream(keystoreProperties))
android.signingConfigs[debugConfig].storeFile = file(props['storeFile'])
android.signingConfigs[debugConfig].storePassword = props['storePassword']
android.signingConfigs[debugConfig].keyAlias = props['keyAlias']
android.signingConfigs[debugConfig].keyPassword = props['keyPassword']
}
}
}