-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
187 lines (150 loc) · 7.27 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
buildscript {
ext.versions = [
kotlin : '1.3.11',
androidSupport : '28.0.0-alpha3',
dagger : '2.17',
rxJava2 : '2.2.7',
rxBinding : '2.1.1',
retrofit : '2.4.0',
soraSdk : '0.3.10',
logger : '2.2.0',
gson : '2.8.5',
firebaseCore : '17.5.0',
firebaseMessaging : '19.0.1',
support : '1.0.0',
material : '1.2.1',
swipe : '1.1.0',
constraint : '1.1.3',
multidex : '2.0.0',
crashlytics : '17.2.1',
iroha : '5.1.2',
shimmer : '0.4.0',
novaCrypto : '0.1.9',
navigationFragment: '2.0.0-rc02',
zXing : '3.3.3',
zXingEmbedded : '3.5.0@aar',
birt : '2.9.0',
phoenix : '2.0.0',
navigation : '2.0.0-rc02',
roundedImage : '2.3.0',
picasso : '2.71828',
capital : '1.0.21-SNAPSHOT',
jUnit : '4.12',
mockito : '2.23.0',
robolectric : '4.1',
archCoreTest : '2.0.0',
archFragmentTest : '1.1.0-beta01',
rxPermissions : '0.10.2',
rxAndroid : '2.1.0',
archComponents : '2.2.0',
room : '2.2.0-alpha02',
googleAuthApiPhone: '17.1.0',
googleAuthApi : '17.0.0',
biometric : '1.0.1',
web3j : '4.2.0-android',
workerManager : '2.4.0'
]
ext {
appVersionCode = Integer.valueOf(System.env.BUILD_NUMBER ?: 32)
appVersionName = '1.6.3'
compileVersion = 29
minVersion = 21
targetVersion = 29
kotlinDep = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin"
androidDep = "androidx.appcompat:appcompat:$versions.support"
biometricDep = "androidx.biometric:biometric:$versions.biometric"
materialDep = "com.google.android.material:material:$versions.material"
cardViewDep = "androidx.cardview:cardview:$versions.support"
constraintDep = "androidx.constraintlayout:constraintlayout:$versions.constraint"
swipelayoutDep = "androidx.swiperefreshlayout:swiperefreshlayout:$versions.swipe"
workerManagerDep = "androidx.work:work-runtime-ktx:$versions.workerManager"
loggerDep = "com.orhanobut:logger:$versions.logger"
daggerDep = "com.google.dagger:dagger:$versions.dagger"
daggerKapt = "com.google.dagger:dagger-compiler:$versions.dagger"
lifecycleDep = "androidx.lifecycle:lifecycle-extensions:$versions.archComponents"
lifecycleKapt = "androidx.lifecycle:lifecycle-compiler:$versions.archComponents"
roomDep = "androidx.room:room-runtime:$versions.room"
rxRoomDep = "androidx.room:room-rxjava2:$versions.room"
roomKapt = "androidx.room:room-compiler:$versions.room"
rxDep = "io.reactivex.rxjava2:rxjava:$versions.rxJava2"
rxAndroidDep = "io.reactivex.rxjava2:rxandroid:$versions.rxAndroid"
irohaDep = "com.github.hyperledger.iroha-java:client:$versions.iroha"
soraDep = "com.github.soramitsu:sora-sdk:$versions.soraSdk"
gsonDep = "com.google.code.gson:gson:$versions.gson"
rxBindingDep = "com.jakewharton.rxbinding2:rxbinding:$versions.rxBinding"
firebaseCoreDep = "com.google.firebase:firebase-core:$versions.firebaseCore"
firebaseMessagingDep = "com.google.firebase:firebase-messaging:$versions.firebaseMessaging"
multidexDep = "androidx.multidex:multidex:$versions.multidex"
googleAnalyticsDep = "com.google.firebase:firebase-analytics-ktx:$versions.firebaseCore"
crashlyticsDep = "com.google.firebase:firebase-crashlytics-ktx:$versions.crashlytics"
shimmerDep = "com.facebook.shimmer:shimmer:$versions.shimmer"
novaCryptoDep = "io.github.novacrypto:BIP39:$versions.novaCrypto"
navigationFragmentDep = "androidx.navigation:navigation-fragment:$versions.navigationFragment"
navigationUiDep = "androidx.navigation:navigation-ui:$versions.navigationFragment"
zXingCoreDep = "com.google.zxing:core:$versions.zXing"
zXingEmbeddedDep = "com.journeyapps:zxing-android-embedded:$versions.zXingEmbedded"
retrofitDep = "com.squareup.retrofit2:retrofit:$versions.retrofit"
gsonConvertedDep = "com.squareup.retrofit2:converter-gson:$versions.retrofit"
rxCallAdapterDep = "com.squareup.retrofit2:adapter-rxjava2:$versions.retrofit"
birtDep = "org.eclipse.birt.runtime.3_7_1:org.apache.xerces:$versions.birt"
phoenixDep = "com.jakewharton:process-phoenix:$versions.phoenix"
roundedImageViewDep = "com.makeramen:roundedimageview:$versions.roundedImage"
picassoDep = "com.squareup.picasso:picasso:$versions.picasso"
rxPermissionsDep = "com.github.tbruyelle:rxpermissions:$versions.rxPermissions"
authApiPhoneDep = "com.google.android.gms:play-services-auth-api-phone:$versions.googleAuthApiPhone"
authGmsDep = "com.google.android.gms:play-services-auth:$versions.googleAuthApi"
web3j = "org.web3j:core:$versions.web3j"
jUnitDep = "junit:junit:$versions.jUnit"
mockitoDep = "org.mockito:mockito-inline:$versions.mockito"
robolectricDep = "org.robolectric:robolectric:$versions.robolectric"
robolectricMultidexDep = "org.robolectric:shadows-multidex:$versions.robolectric"
archCoreTestDep = "androidx.arch.core:core-testing:$versions.archCoreTest"
archFragmentTestDep = "androidx.fragment:fragment-testing:$versions.archFragmentTest"
kotlin_version = '1.3.71'
}
repositories {
google()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.1'
classpath 'com.google.firebase:firebase-appdistribution-gradle:2.0.1'
}
}
plugins {
id "org.sonarqube" version "2.7"
}
allprojects {
repositories {
maven {
url "https://nexus.iroha.tech/repository/maven-capital/"
credentials {
username = "aabdulmadzhidov"
password = "szgYTSO0hdJehWkQT06T"
}
}
google()
jcenter()
maven {
url "https://jitpack.io"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
configurations {
ktlint
}
dependencies {
ktlint 'com.github.shyiko:ktlint:0.31.0'
}
task ktlint(type: Exec, group: "verification") {
commandLine 'java', '-cp', configurations.ktlint.join(System.getProperty('path.separator')),
'com.github.shyiko.ktlint.Main',
"--reporter=html,artifact=me.cassiano:ktlint-html-reporter:0.2.0,output=${project.buildDir}/reports/checkstyle/ktlint.html",
"$project.rootDir/**/src/main/**/*.kt"
}