From 8ede9457fd21ac5e272e73f5ece1d4bc9c23faab Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Wed, 19 May 2021 10:07:23 +0200 Subject: Big update Restructuring the packages and adding a Constants.kt for the api URL. Also adding gson in Singletons.kt --- .../adjutor/aniki/presentation/view/HomePage.kt | 38 ------ .../aniki/presentation/view/MainActivity.kt | 15 --- .../view/activity/DetailSearchAnimeActivity.kt | 114 ++++++++++++++++++ .../view/activity/DetailSearchMangaActivity.kt | 130 +++++++++++++++++++++ .../view/activity/DetailTopAnimeActivity.kt | 104 +++++++++++++++++ .../view/activity/DetailTopMangaActivity.kt | 121 +++++++++++++++++++ .../presentation/view/activity/MainActivity.kt | 15 +++ .../view/adapter/SearchAnimeAdapter.kt | 83 +++++++++++++ .../view/adapter/SearchMangaAdapter.kt | 85 ++++++++++++++ .../presentation/view/adapter/TopAnimeAdapter.kt | 82 +++++++++++++ .../presentation/view/adapter/TopMangaAdapter.kt | 83 +++++++++++++ .../view/anime/DetailSearchAnimeActivity.kt | 114 ------------------ .../view/anime/DetailTopAnimeActivity.kt | 104 ----------------- .../presentation/view/anime/SearchAnimeAdapter.kt | 82 ------------- .../presentation/view/anime/SearchAnimePage.kt | 99 ---------------- .../presentation/view/anime/TopAnimeAdapter.kt | 81 ------------- .../aniki/presentation/view/anime/TopAnimePage.kt | 87 -------------- .../aniki/presentation/view/fragment/HomePage.kt | 38 ++++++ .../view/fragment/SearchAnimeFragment.kt | 101 ++++++++++++++++ .../view/fragment/SearchMangaFragment.kt | 102 ++++++++++++++++ .../presentation/view/fragment/TopAnimeFragment.kt | 88 ++++++++++++++ .../presentation/view/fragment/TopMangaFragment.kt | 88 ++++++++++++++ .../view/manga/DetailSearchMangaActivity.kt | 130 --------------------- .../view/manga/DetailTopMangaActivity.kt | 121 ------------------- .../presentation/view/manga/SearchMangaAdapter.kt | 84 ------------- .../presentation/view/manga/SearchMangaPage.kt | 101 ---------------- .../presentation/view/manga/TopMangaAdapter.kt | 82 ------------- .../aniki/presentation/view/manga/TopMangaPage.kt | 87 -------------- 28 files changed, 1234 insertions(+), 1225 deletions(-) delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/MainActivity.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailSearchAnimeActivity.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailSearchMangaActivity.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailTopAnimeActivity.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/DetailTopMangaActivity.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/activity/MainActivity.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/SearchAnimeAdapter.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/SearchMangaAdapter.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/TopAnimeAdapter.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/adapter/TopMangaAdapter.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailSearchAnimeActivity.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/DetailTopAnimeActivity.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimeAdapter.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/SearchAnimePage.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimeAdapter.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/anime/TopAnimePage.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/HomePage.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/SearchAnimeFragment.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/SearchMangaFragment.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopAnimeFragment.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopMangaFragment.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailSearchMangaActivity.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/DetailTopMangaActivity.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaAdapter.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/SearchMangaPage.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaAdapter.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/presentation/view/manga/TopMangaPage.kt (limited to 'app/src/main/java/xyz/adjutor/aniki/presentation/view') diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt deleted file mode 100644 index f2abca1..0000000 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/HomePage.kt +++ /dev/null @@ -1,38 +0,0 @@ -package xyz.adjutor.aniki.presentation.view - -import android.os.Bundle -import android.view.LayoutInflater -import android.view.View -import android.view.ViewGroup -import android.widget.Button -import androidx.fragment.app.Fragment -import androidx.navigation.fragment.findNavController -import xyz.adjutor.aniki.R - -class HomePage : Fragment() { - - override fun onCreateView( - inflater: LayoutInflater, container: ViewGroup?, - savedInstanceState: Bundle? - ): View? { - // Inflate the layout for this fragment - return inflater.inflate(R.layout.home_page, container, false) - } - - override fun onViewCreated(view: View, savedInstanceState: Bundle?) { - super.onViewCreated(view, savedInstanceState) - - view.findViewById