From fa849021bf137fc4b245a8c0e7a2a8fc46d574df Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 19 Feb 2021 14:00:42 +0100 Subject: Cleaning. Removing some useless files. Adding comments. Updating the home page. --- app/build.gradle | 8 +++ app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt | 31 ---------- app/src/main/java/xyz/adjutor/aniki/HomePage.kt | 11 ---- .../main/java/xyz/adjutor/aniki/MainActivity.kt | 6 -- .../main/java/xyz/adjutor/aniki/MangaAdapter.kt | 69 ---------------------- app/src/main/java/xyz/adjutor/aniki/NewsPage.kt | 32 ---------- app/src/main/java/xyz/adjutor/aniki/TopManga.kt | 1 + .../main/java/xyz/adjutor/aniki/TopMangaAdapter.kt | 69 ++++++++++++++++++++++ .../main/java/xyz/adjutor/aniki/TopMangaPage.kt | 4 +- app/src/main/res/layout/activity_main.xml | 9 --- app/src/main/res/layout/article_page.xml | 29 --------- app/src/main/res/layout/home_page.xml | 26 +------- app/src/main/res/layout/news_page.xml | 29 --------- 13 files changed, 83 insertions(+), 241 deletions(-) delete mode 100644 app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/MangaAdapter.kt delete mode 100644 app/src/main/java/xyz/adjutor/aniki/NewsPage.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/TopMangaAdapter.kt delete mode 100644 app/src/main/res/layout/article_page.xml delete mode 100644 app/src/main/res/layout/news_page.xml (limited to 'app') diff --git a/app/build.gradle b/app/build.gradle index 79284ac..4a23638 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -51,4 +51,12 @@ dependencies { implementation 'com.squareup.retrofit2:retrofit:2.6.0' implementation 'com.squareup.retrofit2:converter-gson:2.6.0' + // Required for local unit tests (JUnit 4 framework) + testImplementation 'junit:junit:4.13.2' + + // Required for instrumented tests + androidTestImplementation 'com.android.support:support-annotations:28.0.0' + androidTestImplementation 'com.android.support.test:runner:1.0.2' + + } \ No newline at end of file diff --git a/app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt b/app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt deleted file mode 100644 index 4579c69..0000000 --- a/app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt +++ /dev/null @@ -1,31 +0,0 @@ -package xyz.adjutor.aniki - -import android.os.Bundle -import androidx.fragment.app.Fragment -import android.view.LayoutInflater -import android.view.View -import android.view.ViewGroup -import android.widget.Button -import androidx.navigation.fragment.findNavController - -/** - * A simple [Fragment] subclass as the second destination in the navigation. - */ -class ArticlePage : Fragment() { - - override fun onCreateView( - inflater: LayoutInflater, container: ViewGroup?, - savedInstanceState: Bundle? - ): View? { - // Inflate the layout for this fragment - return inflater.inflate(R.layout.article_page, container, false) - } - - override fun onViewCreated(view: View, savedInstanceState: Bundle?) { - super.onViewCreated(view, savedInstanceState) - - view.findViewById