-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
74 lines (66 loc) · 2.25 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.4.10'
ext.android_tools_gradle = '3.5.1'
ext.screen_shot_plugin = '0.11.0'
ext.dokka_version_plugin = '1.4.20'
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$android_tools_gradle"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.facebook.testing.screenshot:plugin:$screen_shot_plugin"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.google.gms:google-services:4.3.4'
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version_plugin"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://www.jitpack.io" }
def githubProperties = new Properties()
def githubFile = rootProject.file("github_credentials.properties")
if (githubFile.exists()) {
githubProperties.load(new FileInputStream(githubFile))
}
maven {
name = "natds-commons"
url = uri("https://maven.pkg.github.com/natura-cosmeticos/natds-commons")
credentials {
username = githubProperties['github.username'] ?: System.getenv("GITHUB_USERNAME")
password = githubProperties['github.password'] ?: System.getenv("GITHUB_API_KEY")
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
// Sdk and tools
minSdkVersion = 21
targetSdkVersion = 30
compileSdkVersion = 30
buildToolsVersion = '29.0.2'
// App dependencies
constraintLayout = '1.1.3'
junitVersion = '4.12'
junitExtVersion = '1.1.0'
espressoVersion = '3.1.1'
ktlintVersion = '0.35.0'
androidXTestVersion = '1.2.0'
testCoreKtxVersion = "1.2.0"
androidxJunitVersion = "1.1.1"
truthVersion = '1.2.0'
robolectricVersion = '4.3.1'
materialVersion = '1.1.0'
espressoIntentsVersion = '3.1.0'
mockKVersion = '1.10.0'
coreKTXVersion = '1.3.0'
iconsVersion = '0.1.0'
}