-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.gradle
82 lines (70 loc) · 2.67 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.4.31'
repositories {
apply from: 'versions.gradle'
// apply from: 'viper/propertygen.gradle'
google()
mavenCentral()
jcenter()
/*maven {
url 'https://maven.fabric.io/public'
}*/
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.4.0'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8'
classpath 'com.google.gms:google-services:4.3.8'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
// Add the Crashlytics Gradle plugin.
// classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
// Add the Fabric Crashlytics plugin.
//classpath 'io.fabric.tools:gradle:1.31.2'
// classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
/* maven {
def mavenUrl, access, secret;
Properties properties = new Properties()
if (project.rootProject.file('local.properties').exists()) {
properties.load(project.rootProject.file('local.properties').newDataInputStream())
mavenUrl = properties.getProperty('MAVEN_AWS_URL')
access = properties.getProperty('ACCESS_KEY')
secret = properties.getProperty('SECRET_KEY')
} else {
mavenUrl = System.getenv('MAVEN_AWS_URL')
access = System.getenv('ACCESS_KEY')
secret = System.getenv('SECRET_KEY')
}
url mavenUrl
credentials(AwsCredentials) {
accessKey access
secretKey secret
}
}*/
}
}
subprojects {
project.configurations.all {
//Here we applied only version wise fix configuration for lifecycle library based on group name only
//You can add any forced configuration for the whole projects here
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'android.arch.lifecycle') {
details.useVersion versions.lifecycle
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}