-
Notifications
You must be signed in to change notification settings - Fork 27
/
build.gradle
151 lines (124 loc) · 4.62 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
plugins {
id "com.jraska.module.graph.assertion" version "1.2.0"
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
if (project.hasProperty("enable-performance-plugin")) {
apply plugin: 'com.google.firebase.firebase-perf'
}
apply plugin: 'io.fabric'
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.jraska.github.client"
minSdkVersion 21
targetSdkVersion 29
versionName '0.17.0'
versionCode 50
multiDexEnabled true
testInstrumentationRunner "com.jraska.github.client.TestRunner"
}
adbOptions {
installOptions "-g"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
signingConfigs {
debug {
storeFile file("debug.keystore")
storePassword "github-client"
keyAlias "github-client"
keyPassword "github-client"
}
release {
storeFile file("prod.keystore")
storePassword = System.getenv('GITHUB_CLIENT_STORE_PASS')
keyAlias "prod"
keyPassword System.getenv('GITHUB_CLIENT_KEY_PASS')
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
applicationIdSuffix '.dev'
versionNameSuffix '-dev'
}
release {
signingConfig signingConfigs.release
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
testOptions {
unitTests.returnDefaultValues = true
}
packagingOptions {
exclude 'META-INF/licenses/ASM'
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation project(':core')
implementation project(':core-android')
implementation project(':navigation')
implementation project(':lib:navigation-deeplink')
implementation project(':lib:identity')
implementation project(':lib:network-status')
implementation project(':feature:push')
implementation project(':feature:users')
implementation project(':feature:settings')
implementation project(':feature:about')
implementation project(':feature:shortcuts')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.browser:browser:1.2.0'
implementation 'androidx.core:core:1.2.0'
implementation 'androidx.vectordrawable:vectordrawable-animated:1.1.0'
implementation 'androidx.media:media:1.1.0'
implementation 'com.google.firebase:firebase-core:17.2.3'
implementation 'com.google.firebase:firebase-config:19.1.2'
implementation 'com.google.firebase:firebase-perf:19.0.5'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
implementation 'androidx.lifecycle:lifecycle-runtime:2.2.0'
implementation 'com.facebook.fresco:fresco:2.2.0'
implementation 'com.airbnb.android:epoxy:3.9.0'
kapt 'com.google.dagger:dagger-compiler:2.27'
implementation 'com.google.dagger:dagger:2.27'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.jakewharton.threetenabp:threetenabp:1.2.4'
implementation 'com.squareup.okhttp3:logging-interceptor:4.6.0'
testImplementation 'com.google.code.gson:gson:2.8.6'
testImplementation 'junit:junit:4.13'
testImplementation 'javax.inject:javax.inject:1'
testImplementation 'org.mockito:mockito-core:3.3.3'
testImplementation 'org.threeten:threetenbp:1.4.4' // to fix failures with three ten db
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
androidTestImplementation 'org.assertj:assertj-core:3.15.0'
androidTestImplementation 'org.mockito:mockito-core:3.3.3'
androidTestImplementation 'org.mockito:mockito-android:3.3.3'
androidTestImplementation 'com.airbnb.okreplay:okreplay:1.6.0'
androidTestImplementation 'com.airbnb.okreplay:espresso:1.6.0'
androidTestImplementation 'com.squareup.rx.idler:rx2-idler:0.9.1'
androidTestImplementation project(':core-testing')
}
apply plugin: 'com.jraska.module.graph.assertion'
moduleGraphAssert {
maxHeight = 4
moduleLayers = [":feature\\S*", ":lib\\S*", ":core\\S*"]
moduleLayersExclude = [":core-android -> :core"]
restricted = [":feature:\\S* -X> :not-wanted-module"]
}
apply plugin: 'com.google.gms.google-services'
repositories {
mavenCentral()
}