-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
105 lines (91 loc) · 3.23 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
apply plugin: "de.fayard.buildSrcVersions"
buildscript {
ext {
kotlin_version = '1.3.71'
}
repositories {
google()
jcenter()
gradlePluginPortal()
}
dependencies {
classpath Libs.com_android_tools_build_gradle
classpath Libs.kotlin_gradle_plugin
classpath Libs.de_fayard_buildsrcversions_gradle_plugin
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects {
afterEvaluate { project ->
if (project.plugins.findPlugin('android') ?: project.plugins.findPlugin('android-library')) {
android {
compileSdkVersion Config.compileSdkVersion
buildToolsVersion Config.buildToolsVersion
compileOptions {
sourceCompatibility Config.javaVersion
targetCompatibility Config.javaVersion
}
kotlinOptions {
jvmTarget = Config.javaVersion
}
defaultConfig {
minSdkVersion Config.mindSdkVersion
targetSdkVersion Config.targetSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
signingConfigs {
release {
//Correct to set signing key is :
//to use local properties or environment variable or common build gradle file
storeFile file("signing/signing_key.jks")
storePassword '123456789'
keyAlias 'Rates'
keyPassword '123456789'
}
}
buildTypes {
debug {
debuggable true
minifyEnabled false
}
release {
minifyEnabled true
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
flavorDimensions("endpoint")
productFlavors {
dev {
dimension "endpoint"
buildConfigField 'String', 'BASE_URL', '"https://hiring.revolut.codes"'
}
prod {
dimension "endpoint"
buildConfigField 'String', 'BASE_URL', '"https://hiring.revolut.codes"'
}
}
variantFilter { variant ->
if (variant.buildType.name == 'release'
&& variant.getFlavors().get(0).name == 'dev') {
variant.setIgnore(true)
}
}
}
}
dependencies {
implementation Libs.kotlin_stdlib_jdk7
}
}
}