@@ -47,148 +47,4 @@ ext {
4747 mockwebserver = " 3.4.1"
4848 testng = " 6.9.6"
4949
50-
51- def modules = [
52- data : ' :data' ,
53- domain : ' :domain'
54- ]
55-
56- // /
57- // / Module Dependencies
58- // /
59-
60- def supportAnnotationsExclude = {
61- exclude group : ' com.android.support' , module : ' support-annotations'
62- }
63-
64-
65- def foundationDependencies = [
66- constraintLayout : [group : ' androidx.constraintlayout' , name : ' constraintlayout' , version : constraintLayout],
67- androidLegacy : [group : ' androidx.legacy' , name : ' legacy-support-v4' , version : androidLegacy],
68- lifecycleViewModel : [group : ' androidx.lifecycle' , name : ' lifecycle-viewmodel-ktx' , version : lifecycle_version],
69- lifecycleExtensions : [group : ' androidx.lifecycle' , name : ' lifecycle-extensions' , version : lifecycle_version],
70- lottie : [group : ' com.airbnb.android' , name : ' lottie' , version : lottie],
71- koin : [group : ' org.koin' , name : ' koin-android' , version : koin],
72- navfragment : [group : ' androidx.navigation' , name : ' navigation-fragment-ktx' , version : nav_version],
73- navUI : [group : ' androidx.navigation' , name : ' navigation-ui-ktx' , version : nav_version],
74- transitions : [group : ' androidx.transition' , name : ' transition' , version : transitions],
75- timber : [group : ' com.jakewharton.timber' , name : ' timber' , version : timber],
76- multidex : [group : ' androidx.multidex' , name : ' multidex' , version : multidex_version],
77-
78-
79- ]
80-
81- def androidNetworking = [
82- retrofit : [group : ' com.squareup.retrofit2' , name : ' retrofit' , version : retrofit_version],
83- gsonRetrofit : [group : ' com.squareup.retrofit2' , name : ' converter-gson' , version : gson_version],
84- okHttp : [group : ' com.squareup.okhttp3' , name : ' okhttp' , version : okhttp_version],
85- okHttpLogging : [group : ' com.squareup.okhttp3' , name : ' logging-interceptor' , version : okhttp_version_loggin],
86- rxAndroid : [group : ' io.reactivex.rxjava2' , name : ' rxandroid' , version : rxAndroid],
87- rxJava : [group : ' io.reactivex.rxjava2' , name : ' rxjava' , version : rxJava],
88- rxkotlin : [group : ' io.reactivex.rxjava2' , name : ' rxkotlin' , version : rxKotlin],
89- rxBinding : [group : ' com.jakewharton.rxbinding3' , name : ' rxbinding' , version : rxBinding],
90- retrofitRx : [group : ' com.squareup.retrofit2' , name : ' adapter-rxjava2' , version : rxAdapter]
91- ]
92- def imageDownloading = [
93- glide : [group : ' com.github.bumptech.glide' , name : ' glide' , version : glide],
94- glideAnnotation : [group : ' com.github.bumptech.glide' , name : ' compiler' , version : glide],
95-
96- ]
97-
98- def testDependencies = [
99- lifecycleTesting : [group : ' androidx.arch.core' , name : ' core-testing' , version : lifecycle_version],
100- runner : [group : ' androidx.test' , name : ' runner' , version : runnerVersion],
101- espresso : [group : ' androidx.test.espresso' , name : ' espresso-core' , version : espresso_version],
102- junit : [group : ' junit' , name : ' junit' , version : junit_version],
103- testRules : [group : ' androidx.test' , name : ' rules' , version : rules_version],
104- espressoIdling : [group : ' androidx.test.espresso' , name : ' espresso-idling-resource' , version : espresso_version],
105- junitExt : [group : ' androidx.test.ext' , name : ' junit' , version : androidx_junit_version],
106- espressoIntent : [group : ' androidx.test.espresso' , name : ' espresso-intents' , version : espresso_version],
107- espressoWeb : [group : ' androidx.test.espresso' , name : ' espresso-web' , version : espresso_version],
108- truth : [group : ' com.google.truth' , name : ' truth' , version : truth_version],
109- koinTest : [group : ' org.koin' , name : ' koin-test' , version : kointeste],
110- mockTest : [group : ' io.mockk' , name : ' mockk' , version : mockk],
111- mockitoKotlin : [group : ' com.nhaarman.mockitokotlin2' , name : ' mockito-kotlin' , version : mockitokotlin],
112- mockWebServer : [group : ' com.squareup.okhttp3' , name : ' mockwebserver' , version : mockwebserver],
113- testing : [group : ' org.testng' , name : ' testng' , version : testng],
114- mockitoCore : [group : ' org.mockito' , name : ' mockito-core' , version : mockitoCore],
115-
116- ]
117-
118- appNetworkingModule = [
119- [configuration : " implementation" , dependency : androidNetworking. retrofit],
120- [configuration : " implementation" , dependency : androidNetworking. gsonRetrofit],
121- [configuration : " implementation" , dependency : androidNetworking. okHttpLogging],
122- [configuration : " implementation" , dependency : androidNetworking. rxAndroid],
123- [configuration : " implementation" , dependency : androidNetworking. rxJava],
124- [configuration : " implementation" , dependency : androidNetworking. rxkotlin],
125- [configuration : " implementation" , dependency : androidNetworking. rxBinding],
126- [configuration : " implementation" , dependency : androidNetworking. retrofitRx],
127- ]
128-
129- appFoundationModule = [
130-
131- [configuration : " implementation" , dependency : foundationDependencies. kotlin],
132- [configuration : " implementation" , dependency : foundationDependencies. appCompat],
133- [configuration : " implementation" , dependency : foundationDependencies. core],
134- [configuration : " implementation" , dependency : foundationDependencies. materialDesign],
135- [configuration : " implementation" , dependency : foundationDependencies. constraintLayout],
136- [configuration : " implementation" , dependency : foundationDependencies. androidLegacy],
137- [configuration : " implementation" , dependency : foundationDependencies. lifecycleViewModel],
138- [configuration : " implementation" , dependency : foundationDependencies. lifecycleExtensions],
139- [configuration : " implementation" , dependency : foundationDependencies. lottie],
140- [configuration : " implementation" , dependency : foundationDependencies. koin],
141- [configuration : " implementation" , dependency : foundationDependencies. navfragment],
142- [configuration : " implementation" , dependency : foundationDependencies. navUI],
143- [configuration : " implementation" , dependency : foundationDependencies. transitions],
144- [configuration : " implementation" , dependency : foundationDependencies. timber],
145- [configuration : " implementation" , dependency : foundationDependencies. multidex],
146-
147- /**
148- * Image Downloading
149- */
150- [configuration : " implementation" , dependency : imageDownloading. glide],
151- [configuration : " annotationProcessor" , dependency : imageDownloading. glideAnnotation],
152- ]
153- appTestingModule = [
154- [configuration : " androidTestImplementation" , dependency : testDependencies. espresso,
155- options : supportAnnotationsExclude],
156- [configuration : " testImplementation" , dependency : testDependencies. junit,
157- options : supportAnnotationsExclude],
158- [configuration : " testImplementation" , dependency : testDependencies. lifecycleTesting,
159- options : supportAnnotationsExclude],
160- [configuration : " androidTestImplementation" , dependency : testDependencies. runner,
161- options : supportAnnotationsExclude],
162- [configuration : " androidTestImplementation" , dependency : testDependencies. testRules,
163- options : supportAnnotationsExclude],
164- [configuration : " implementation" , dependency : testDependencies. espressoIdling,
165- options : supportAnnotationsExclude],
166- [configuration : " androidTestImplementation" , dependency : testDependencies. junitExt,
167- options : supportAnnotationsExclude],
168- [configuration : " androidTestImplementation" , dependency : testDependencies. espressoIntent,
169- options : supportAnnotationsExclude],
170- [configuration : " androidTestImplementation" , dependency : testDependencies. espressoWeb,
171- options : supportAnnotationsExclude],
172- [configuration : " testImplementation" , dependency : testDependencies. truth,
173- options : supportAnnotationsExclude],
174- [configuration : " androidTestImplementation" , dependency : testDependencies. mockWebServer,
175- options : supportAnnotationsExclude],
176- [configuration : " testImplementation" , dependency : testDependencies. koinTest,
177- options : supportAnnotationsExclude],
178- [configuration : " testImplementation" , dependency : testDependencies. mockTest,
179- options : supportAnnotationsExclude],
180- [configuration : " testImplementation" , dependency : testDependencies. mockitoKotlin,
181- options : supportAnnotationsExclude],
182- [configuration : " testImplementation" , dependency : testDependencies. testing,
183- options : supportAnnotationsExclude],
184- [configuration : " testImplementation" , dependency : testDependencies. mockitoCore,
185- options : supportAnnotationsExclude],
186- ]
187-
188- appModuleDependencies = [
189-
190- // // Modules
191- // [configuration: "compile", dependency: project(modules.data)],
192- // [configuration: "compile", dependency: project(modules.domain)],
193- ]
19450}
0 commit comments