-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
88 lines (78 loc) · 2.59 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
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply from: 'buildsystem/ci.gradle'
apply from: 'buildsystem/dependencies.gradle'
buildscript {
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.41"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
android {
def globalConfiguration = rootProject.extensions.getByName("ext")
compileSdkVersion globalConfiguration["androidCompileSdkVersion"]
defaultConfig {
minSdkVersion globalConfiguration["androidMinSdkVersion"]
targetSdkVersion globalConfiguration["androidTargetSdkVersion"]
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
alpha {
debuggable false
}
beta {
debuggable false
}
release {
minifyEnabled true
}
buildTypes.each {
it.buildConfigField 'String', 'API_SECRET', API_SECRET
it.buildConfigField 'String', 'API_KEY', API_KEY
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation apiDependencies.kotlinJdk
// Networking
implementation apiDependencies.retrofit
implementation apiDependencies.retrofitScalars
implementation apiDependencies.gson
implementation apiDependencies.gsonConverter
implementation apiDependencies.loggingInterceptor
// Reactive programming
implementation apiDependencies.rxKotlin
implementation apiDependencies.rxJava
implementation apiDependencies.rxAndroid
implementation apiDependencies.retrofitRxJavaAdapter
// Encoding
implementation apiDependencies.apacheCommonsCodec
// Testing
testImplementation apiDependencies.junit
testImplementation apiDependencies.testCore
testImplementation apiDependencies.testRunner
testImplementation apiDependencies.mockito
androidTestImplementation apiDependencies.espresso
}