-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
78 lines (68 loc) · 2.28 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: 'jacoco/project.gradle'
buildscript {
ext.kotlin_version = '1.5.10'
ext.android_tools_gradle = '4.2.0'
ext.screen_shot_plugin = '0.14.0'
ext.dokka_version_plugin = '1.5.31'
ext.lintVersion = '27.2.1'
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$android_tools_gradle"
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.10'
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version_plugin"
}
}
allprojects {
repositories {
google()
mavenCentral()
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 = 34
compileSdkVersion = 31
buildToolsVersion = '30.0.3'
// App dependencies
constraintLayout = '2.1.2'
junitVersion = '4.13.2'
junitExtVersion = '1.1.0'
espressoVersion = '3.4.0'
ktlintVersion = '0.43.0'
androidXTestVersion = '1.4.0'
testCoreKtxVersion = "1.4.0"
androidxJunitVersion = "1.1.3"
truthVersion = '1.4.0'
robolectricVersion = '4.6.1'
materialVersion = '1.4.0'
espressoIntentsVersion = '3.4.0'
mockKVersion = '1.10.0'
coreKTXVersion = '1.3.0'
coilVersion = "1.3.2"
composeVersion = "1.0.0"
}