-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
132 lines (117 loc) 路 4.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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
repositories {
maven { url 'https://jitpack.io' }
}
apply from: 'jacoco.gradle'
android {
compileSdkVersion 30
defaultConfig {
applicationId 'app.envelop'
minSdkVersion 21
targetSdkVersion 30
versionCode 27
versionName '1.2.9'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
applicationIdSuffix '.debug'
testCoverageEnabled true
}
}
testOptions {
animationsDisabled = true
}
lintOptions {
checkAllWarnings true
warningsAsErrors true
abortOnError true
lintConfig file('lint.xml')
}
androidExtensions {
experimental = true
}
kapt {
correctErrorTypes = true
arguments {
arg("room.schemaLocation", "$projectDir/schemas".toString())
}
}
packagingOptions {
exclude 'META-INF/*'
}
compileOptions {
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-rx2:1.3.9'
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
implementation 'androidx.core:core-ktx:1.3.1'
implementation 'androidx.preference:preference-ktx:1.1.1'
implementation 'com.google.android.material:material:1.3.0-alpha02'
// Architecture Components
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.2.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.lifecycle:lifecycle-common-java8:2.2.0'
// Logging
implementation 'com.jakewharton.timber:timber:4.7.1'
// Serialization
implementation 'com.google.code.gson:gson:2.8.6'
// Blockstack
implementation 'com.github.blockstack:blockstack-android:0.5.0'
// Dependency Injection
implementation 'com.google.dagger:dagger:2.28.3'
kapt 'com.google.dagger:dagger-compiler:2.28.3'
// Database ORM
def room_version = '2.2.5'
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-rxjava2:$room_version"
kapt "androidx.room:room-compiler:$room_version"
// Rx
implementation 'io.reactivex.rxjava2:rxjava:2.2.19'
implementation 'io.reactivex.rxjava2:rxkotlin:2.4.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.trello.rxlifecycle3:rxlifecycle-android-lifecycle-kotlin:3.1.0'
implementation 'com.f2prateek.rx.preferences2:rx-preferences:2.0.0'
def rxbinding_version = '3.1.0'
implementation "com.jakewharton.rxbinding3:rxbinding-core:$rxbinding_version"
implementation "com.jakewharton.rxbinding3:rxbinding-appcompat:$rxbinding_version"
implementation "com.jakewharton.rxbinding3:rxbinding-material:$rxbinding_version"
implementation "com.jakewharton.rxbinding3:rxbinding-swiperefreshlayout:$rxbinding_version"
// Lists
implementation 'com.airbnb.android:epoxy:3.11.0'
kapt 'com.airbnb.android:epoxy-processor:3.11.0'
// Encryption
implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.58.0.0'
implementation 'com.madgag.spongycastle:bcpg-jdk15on:1.58.0.0'
// Testing
testImplementation 'junit:junit:4.13'
testImplementation 'org.mockito:mockito-inline:3.5.10'
testImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test:rules:1.3.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.3.0'
androidTestImplementation 'org.mockito:mockito-android:3.5.10'
androidTestImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0") {
// Workaround for Android API < 26:
// https://github.com/mockito/mockito/pull/2024
exclude group: "org.mockito", module: "mockito-core"
}
}