From 24d6de7a791fcfb351ad9c6b8b2079937a45acc1 Mon Sep 17 00:00:00 2001 From: Akashkamble Date: Thu, 2 Jul 2020 15:35:41 +0530 Subject: [PATCH] Extracted data module. --- .idea/gradle.xml | 1 + app/build.gradle | 26 +++------ app/src/main/AndroidManifest.xml | 2 +- .../akash/newzz_compose/NewzzApplication.kt | 22 ++++++++ .../java/com/akash/newzz_compose/di/module.kt | 8 +-- .../ui/articlelist/ArticleListScreen.kt | 4 +- .../newzz_compose/viewmodel/NewzzViewModel.kt | 6 +- data/.gitignore | 1 + data/build.gradle | 56 +++++++++++++++++++ data/consumer-rules.pro | 0 data/proguard-rules.pro | 21 +++++++ .../newzz/data/ExampleInstrumentedTest.kt | 22 ++++++++ data/src/main/AndroidManifest.xml | 6 ++ .../com/akash/newzz/data/BaseApplication.kt | 18 ++---- .../java/com/akash/newzz/data}/Constants.kt | 2 +- .../main/java/com/akash/newzz/data}/Result.kt | 4 +- .../newzz/data/apiservice/NewzzApiService.kt | 25 ++++----- .../newzz}/data/repository/NewsRepository.kt | 6 +- .../data/repository/NewsRepositoryImpl.kt | 17 +++--- .../akash/newzz}/data/response/NewsArticle.kt | 2 +- .../akash/newzz}/data/response/NewsError.kt | 2 +- .../newzz}/data/response/NewsResponse.kt | 2 +- .../akash/newzz}/data/response/NewsSource.kt | 2 +- .../com/akash/newzz/data/ExampleUnitTest.kt | 16 ++++++ settings.gradle | 1 + 25 files changed, 200 insertions(+), 72 deletions(-) create mode 100644 app/src/main/java/com/akash/newzz_compose/NewzzApplication.kt create mode 100644 data/.gitignore create mode 100644 data/build.gradle create mode 100644 data/consumer-rules.pro create mode 100644 data/proguard-rules.pro create mode 100644 data/src/androidTest/java/com/akash/newzz/data/ExampleInstrumentedTest.kt create mode 100644 data/src/main/AndroidManifest.xml rename app/src/main/java/com/akash/newzz_compose/NewsApplication.kt => data/src/main/java/com/akash/newzz/data/BaseApplication.kt (54%) rename {app/src/main/java/com/akash/newzz_compose => data/src/main/java/com/akash/newzz/data}/Constants.kt (83%) rename {app/src/main/java/com/akash/newzz_compose/utils => data/src/main/java/com/akash/newzz/data}/Result.kt (73%) rename app/src/main/java/com/akash/newzz_compose/data/apiservice/NewsApiService.kt => data/src/main/java/com/akash/newzz/data/apiservice/NewzzApiService.kt (85%) rename {app/src/main/java/com/akash/newzz_compose => data/src/main/java/com/akash/newzz}/data/repository/NewsRepository.kt (52%) rename {app/src/main/java/com/akash/newzz_compose => data/src/main/java/com/akash/newzz}/data/repository/NewsRepositoryImpl.kt (79%) rename {app/src/main/java/com/akash/newzz_compose => data/src/main/java/com/akash/newzz}/data/response/NewsArticle.kt (87%) rename {app/src/main/java/com/akash/newzz_compose => data/src/main/java/com/akash/newzz}/data/response/NewsError.kt (82%) rename {app/src/main/java/com/akash/newzz_compose => data/src/main/java/com/akash/newzz}/data/response/NewsResponse.kt (83%) rename {app/src/main/java/com/akash/newzz_compose => data/src/main/java/com/akash/newzz}/data/response/NewsSource.kt (77%) create mode 100644 data/src/test/java/com/akash/newzz/data/ExampleUnitTest.kt diff --git a/.idea/gradle.xml b/.idea/gradle.xml index ac6b0ae..6cba290 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -12,6 +12,7 @@