-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
build.gradle
191 lines (163 loc) · 8.1 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
188
189
190
191
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.rootVersions = [
"kotlin" : '1.9.10',
"gradle" : '8.4.0-rc02',
"playServices" : "4.3.13",
"koin" : '3.5.6',
"navigation": '2.7.7',
"firebasePlugin": [
"crashlytics": "2.9.1",
"performance": "1.4.1"
],
"r8" : "3.3.75"
]
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$rootVersions.gradle"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$rootVersions.kotlin"
classpath "com.google.gms:google-services:$rootVersions.playServices"
classpath "com.google.firebase:firebase-crashlytics-gradle:$rootVersions.firebasePlugin.crashlytics"
classpath "com.google.firebase:perf-plugin:$rootVersions.firebasePlugin.performance"
classpath "io.insert-koin:koin-gradle-plugin:$rootVersions.koin"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$rootVersions.navigation"
classpath "com.android.tools:r8:$rootVersions.r8"
//it uses to publish 'common' module as library to JitPack.
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
// Gradle Doctor
// https://runningcode.github.io/gradle-doctor/
plugins {
id("com.osacky.doctor") version "0.8.1"
}
// Gradle Doctor all settings here https://runningcode.github.io/gradle-doctor/configuration/
doctor {
disallowMultipleDaemons = false
negativeAvoidanceThreshold = 500
warnWhenJetifierEnabled = true
javaHome {
ensureJavaHomeIsSet = true
ensureJavaHomeMatches = true
failOnError.set(true)
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
appVersionName = "1.0.0"
appVersionCode = 1
compileSdkVersion = 34
minSdkVersion = 23
targetSdkVersion = 34
versions = [
"common" : "1.1.2",
"appcompat" : '1.6.1',
"preference" : '1.2.1',
"material" : '1.11.0',
"fragment" : '1.6.2',
"activity" : '1.8.2',
"constraintLayout": '2.1.4',
"coreKtx" : '1.12.0',
"lifecycle" : '2.7.0',
"coroutines" : "1.8.0",
"firebase" : [
"bom": '32.8.1'
],
"rx" : [
"android": "2.1.1",
"kotlin" : "2.4.0"
],
"room" : '2.6.1',
"glide" : '4.16.0',
"lottie" : '6.4.0',
"retrofit" : "2.11.0",
"okhttp" : "4.12.0",
"jUnitExt" : '1.1.5',
"jUnit" : '4.13.2',
"testRunner" : '1.5.2',
"espressoCore" : '3.5.1',
"mockito" : '5.11.0',
"leakcanary" : '2.13'
]
deps = [
"appcompat" : "androidx.appcompat:appcompat:$versions.appcompat",
"preference" : "androidx.preference:preference:$versions.preference",
"material" : "com.google.android.material:material:$versions.material",
"constraintLayout" : "androidx.constraintlayout:constraintlayout:$versions.constraintLayout",
"coreKtx" : "androidx.core:core-ktx:$versions.coreKtx",
"activity" : "androidx.activity:activity-ktx:$versions.activity",
"fragment" : "androidx.fragment:fragment-ktx:$versions.fragment",
//common
"common" : "com.github.mobiledevpro:android-kotlin-mvvm-template:$versions.common",
//Coroutines
"coroutinesCore" : "org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.coroutines",
"coroutinesAndroid" : "org.jetbrains.kotlinx:kotlinx-coroutines-android:$versions.coroutines",
//Navigation
"navigationFragment" : "androidx.navigation:navigation-fragment-ktx:$rootVersions.navigation",
"navigationUi" : "androidx.navigation:navigation-ui-ktx:$rootVersions.navigation",
//Dynamic Feature support
"navigationDynamic" : "androidx.navigation:navigation-dynamic-features-fragment:$rootVersions.navigation",
//Firebase
"firebaseBom" : "com.google.firebase:firebase-bom:$versions.firebase.bom",
"firebasePerformance" : "com.google.firebase:firebase-perf-ktx",
"crashlytics" : "com.google.firebase:firebase-crashlytics-ktx",
"firebaseAnalytics" : "com.google.firebase:firebase-analytics-ktx",
//LifeCycle
"viewModel" : "androidx.lifecycle:lifecycle-viewmodel-ktx:$versions.lifecycle",
"liveData" : "androidx.lifecycle:lifecycle-livedata-ktx:$versions.lifecycle",
"saveState" : "androidx.lifecycle:lifecycle-viewmodel-savedstate:$versions.lifecycle",
"lifecycleService" : "androidx.lifecycle:lifecycle-service:$versions.lifecycle",
"lifecycleCompiler" : "androidx.lifecycle:lifecycle-compiler:$versions.lifecycle",
//Koin core features
"koinCore" : "io.insert-koin:koin-core:$rootVersions.koin",
//Koin main features for Android (Scope,ViewModel ...)
"koinAndroid" : "io.insert-koin:koin-android:$rootVersions.koin",
//Rx
"rxAndroid" : "io.reactivex.rxjava2:rxandroid:$versions.rx.android",
"rxKotlin" : "io.reactivex.rxjava2:rxkotlin:$versions.rx.kotlin",
//Room
"room" : "androidx.room:room-runtime:$versions.room",
"roomKtx" : "androidx.room:room-ktx:$versions.room",
"roomCompiler" : "androidx.room:room-compiler:$versions.room",
"roomRx" : "androidx.room:room-rxjava2:$versions.room",
//UI libs
"glide" : "com.github.bumptech.glide:glide:$versions.glide",
"glideCompiler" : "com.github.bumptech.glide:compiler:$versions.glide",
"lottie" : "com.airbnb.android:lottie:$versions.lottie",
//Network
"retrofit" : "com.squareup.retrofit2:retrofit:$versions.retrofit",
"retrofitGsonConverter" : "com.squareup.retrofit2:converter-gson:$versions.retrofit",
"retrofitRx" : "com.squareup.retrofit2:adapter-rxjava2:$versions.retrofit",
"okhttpLoggingInterceptor": "com.squareup.okhttp3:logging-interceptor:$versions.okhttp",
//testing
"leakcanaryDebug" : "com.squareup.leakcanary:leakcanary-android:$versions.leakcanary",
"testRunner" : "androidx.test:runner:$versions.testRunner",
"jUnitExt" : "androidx.test.ext:junit:$versions.jUnitExt",
"jUnit" : "junit:junit:$versions.jUnit",
"espressoCore" : "androidx.test.espresso:espresso-core:$versions.espressoCore",
"mockito" : "org.mockito:mockito-core:$versions.mockito",
"koinTest" : "io.insert-koin:koin-test:$rootVersions.koin",
"roomTesting" : "androidx.room:room-testing:$versions.room",
]
features = [
"chatCore": project(":feature:chat_core")
]
core = [
"navigation": project(":core:navigation"),
"utils" : project(":core:utils"),
"database" : project("core:database"),
"ui" : project("core:ui")
]
}