Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
79 lines (74 loc) · 2.5 KB
/
Copy pathbuild.gradle
File metadata and controls
79 lines (74 loc) · 2.5 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = "1.5.31"
graphql_version="2.5.5"
dagger_version="2.38.1"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.apollographql.apollo:apollo-gradle-plugin:$graphql_version"
classpath 'com.google.gms:google-services:4.3.10' // Google Services plugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.firebase:firebase-appdistribution-gradle:3.0.2'
}
}
plugins {
id "net.thauvin.erik.gradle.semver" version "1.0.4"
id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlin_version"
}
def sdkProps = new Properties()
file("./sdk/sdk.properties").withInputStream { sdkProps.load(it) }
allprojects {
repositories {
google()
mavenCentral()
maven {
name = "RealifeTech SDK Artifactory"
url = uri("https://maven.pkg.github.com/realifetech/android-sdk")
credentials {
Properties properties = new Properties()
File propertiesFile = project.rootProject.file('local.properties')
if (propertiesFile.exists()) {
properties.load(propertiesFile.newDataInputStream())
}
username = properties?.getProperty("gpr.user") ?: System.getenv("GITHUB_USER")
password = properties?.getProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
}
subprojects {
apply from: "$project.rootDir/tools/script-jacoco.gradle"
}
ext {
// compilation versions
compileSdkVersion = 31
minSdkVersion = 24
targetSdkVersion = 31
room_version = "2.4.2"
mockito_version = '2.23.0'
mockito_kotlin_version="3.2.0"
mockito_inline_version="3.11.2"
mockk_version="1.12.0"
material_version="1.4.0"
constraint_version="2.1.0"
junit_version="4.13.2"
coroutines_version="1.4.1"
kotlin_json="1.3.0"
sdk_version = sdkProps.getProperty("sdk.semver")
compose_version = '1.0.5'
glideVersion = '4.13.0'
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task echoVersion(type: Exec) {
commandLine 'echo', "${-> project.version}"
}