From 5211a49efcae258574dbc0f9d03668d47fb3532c Mon Sep 17 00:00:00 2001 From: kl3jvi Date: Sun, 13 Nov 2022 18:29:46 +0100 Subject: [PATCH] tried new approach for the app --- .idea/compiler.xml | 7 +- .idea/gradle.xml | 1 + .idea/misc.xml | 2 +- app/build.gradle | 17 +- app/proguard-rules.pro | 2 +- .../kl3jvi/animity/ExampleInstrumentedTest.kt | 40 +- app/src/main/graphql/Query.graphql | 130 +------ .../data/mapper/FavoriteDataQueryConverter.kt | 11 +- .../data/mapper/HomeDataQueryConverter.kt | 1 + .../data/mapper/ProfileDataQueryConverter.kt | 40 +- .../data/mapper/SearchDataQueryConverter.kt | 22 +- .../data/model/ui_models/EpisodeModel.kt | 6 +- .../data/model/ui_models/ProfileData.kt | 6 + .../data/model/ui_models/ProfileRow.kt | 6 + .../data/repository/DetailsRepositoryImpl.kt | 46 +-- .../data/repository/HomeRepositoryImpl.kt | 2 +- .../data/repository/ProfileRepositoryImpl.kt | 9 +- .../kl3jvi/animity/di/PersistenceModule.kt | 9 + .../domain/repositories/ProfileRepository.kt | 2 +- .../animity/settings/PreferencesHolder.kt | 7 + .../com/kl3jvi/animity/settings/Settings.kt | 17 + .../animity/settings/SharedPreferences.kt | 130 +++++++ .../ui/activities/main/MainActivity.kt | 32 +- .../details/animeDetails/DetailsFragment.kt | 30 +- .../details/animeDetails/DetailsViewModel.kt | 1 - .../animity/ui/fragments/home/HomeFragment.kt | 5 +- .../profile/ProfileViewController.kt | 3 +- .../ui/fragments/profile/ProfileViewModel.kt | 5 +- .../ui/fragments/settings/SettingsFragment.kt | 22 +- .../com/kl3jvi/animity/utils/ActivityUtils.kt | 19 - .../java/com/kl3jvi/animity/utils/Context.kt | 7 + .../com/kl3jvi/animity/utils/Extensions.kt | 17 + .../com/kl3jvi/animity/utils/FragmentUtils.kt | 27 ++ app/src/main/res/layout/fragment_details.xml | 8 +- app/src/main/res/layout/item_profile_card.xml | 2 +- app/src/main/res/values/colors.xml | 1 + app/src/main/res/values/strings.xml | 4 + .../main/res/xml/network_security_config.xml | 2 +- app/src/main/res/xml/root_preferences.xml | 17 +- .../data/mapper/FavoriteMapperQueryTest.kt | 18 +- .../data/mapper/HomeDataQueryConverter.kt | 22 +- .../HomeRepositoryImplTest.kt | 28 +- .../com/kl3jvi/animity/util/HelperModels.kt | 362 +++++++++--------- build.gradle | 26 -- build.gradle.kts | 18 + buildSrc/build.gradle.kts | 7 + buildSrc/src/main/kotlin/Configuration.kt | 10 + gradle.properties | 2 +- gradle/libs.versions.toml | 357 +++++++++++++++++ scrapper/.gitignore | 1 + scrapper/build.gradle | 41 ++ scrapper/consumer-rules.pro | 0 scrapper/proguard-rules.pro | 21 + .../scrapper/ExampleInstrumentedTest.kt | 24 ++ scrapper/src/main/AndroidManifest.xml | 4 + .../com/kl3jvi/scrapper/parser/BaseParser.kt | 8 + .../scrapper/parser/EncryptionHelpers.kt | 6 + .../com/kl3jvi/scrapper/parser/GoGoParser.kt | 7 + .../com/kl3jvi/scrapper/ExampleUnitTest.kt | 17 + settings.gradle => settings.gradle.kts | 6 +- 60 files changed, 1127 insertions(+), 573 deletions(-) create mode 100644 app/src/main/java/com/kl3jvi/animity/data/model/ui_models/ProfileData.kt create mode 100644 app/src/main/java/com/kl3jvi/animity/data/model/ui_models/ProfileRow.kt create mode 100644 app/src/main/java/com/kl3jvi/animity/settings/PreferencesHolder.kt create mode 100644 app/src/main/java/com/kl3jvi/animity/settings/Settings.kt create mode 100644 app/src/main/java/com/kl3jvi/animity/settings/SharedPreferences.kt create mode 100644 app/src/main/java/com/kl3jvi/animity/utils/Context.kt create mode 100644 app/src/main/java/com/kl3jvi/animity/utils/Extensions.kt delete mode 100644 build.gradle create mode 100644 build.gradle.kts create mode 100644 buildSrc/build.gradle.kts create mode 100644 buildSrc/src/main/kotlin/Configuration.kt create mode 100644 gradle/libs.versions.toml create mode 100644 scrapper/.gitignore create mode 100644 scrapper/build.gradle create mode 100644 scrapper/consumer-rules.pro create mode 100644 scrapper/proguard-rules.pro create mode 100644 scrapper/src/androidTest/java/com/kl3jvi/scrapper/ExampleInstrumentedTest.kt create mode 100644 scrapper/src/main/AndroidManifest.xml create mode 100644 scrapper/src/main/java/com/kl3jvi/scrapper/parser/BaseParser.kt create mode 100644 scrapper/src/main/java/com/kl3jvi/scrapper/parser/EncryptionHelpers.kt create mode 100644 scrapper/src/main/java/com/kl3jvi/scrapper/parser/GoGoParser.kt create mode 100644 scrapper/src/test/java/com/kl3jvi/scrapper/ExampleUnitTest.kt rename settings.gradle => settings.gradle.kts (71%) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index b589d56e..f4496933 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,11 @@ - + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 7b46144d..f1727aa1 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -12,6 +12,7 @@ diff --git a/.idea/misc.xml b/.idea/misc.xml index abe4d809..67b94b24 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -134,7 +134,7 @@