Skip to content

Commit

Permalink
optimise imports and add version catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamnanche committed Dec 29, 2024
1 parent 398acf2 commit 7646325
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,12 @@

package com.wirelessalien.android.bhagavadgita

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import androidx.test.platform.app.InstrumentationRegistry
import org.junit.Assert.*
import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ package com.wirelessalien.android.bhagavadgita.activity
import android.content.Context
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.wirelessalien.android.bhagavadgita.R
import com.wirelessalien.android.bhagavadgita.databinding.ActivityAboutGitaBinding
import com.wirelessalien.android.bhagavadgita.utils.Themes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@

package com.wirelessalien.android.bhagavadgita.activity

import android.content.Context
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import androidx.viewpager2.widget.ViewPager2
import com.google.android.material.tabs.TabLayout
import com.google.android.material.tabs.TabLayoutMediator
import com.wirelessalien.android.bhagavadgita.R
import com.wirelessalien.android.bhagavadgita.databinding.ActivityHanumanChalisaBinding
import com.wirelessalien.android.bhagavadgita.fragment.HanumanChalisaE
import com.wirelessalien.android.bhagavadgita.fragment.HanumanChalisaH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.os.VibrationAttributes
import android.os.VibrationEffect
import android.os.Vibrator
import android.util.Log
import android.view.GestureDetector
import android.view.HapticFeedbackConstants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.wirelessalien.android.bhagavadgita.R
import com.wirelessalien.android.bhagavadgita.adapter.TranslationAdapter
import com.wirelessalien.android.bhagavadgita.data.Translation
import com.wirelessalien.android.bhagavadgita.databinding.ActivityVerseTranslationBinding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ package com.wirelessalien.android.bhagavadgita.adapter

import android.content.Context
import android.content.Intent
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.wirelessalien.android.bhagavadgita.R
import com.wirelessalien.android.bhagavadgita.activity.ChapterDetailsActivity
import com.wirelessalien.android.bhagavadgita.data.Chapter
import com.wirelessalien.android.bhagavadgita.databinding.ChapterCardviewItemBinding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,14 @@ package com.wirelessalien.android.bhagavadgita.fragment

import android.app.Dialog
import android.content.Context
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.fragment.app.DialogFragment
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.wirelessalien.android.bhagavadgita.MainActivity
import com.wirelessalien.android.bhagavadgita.R
import com.wirelessalien.android.bhagavadgita.databinding.FragmentThemeBinding
import kotlin.properties.Delegates

class ThemeFragment : DialogFragment() {
private lateinit var binding: FragmentThemeBinding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.wirelessalien.android.bhagavadgita.utils

import android.content.Context
import androidx.appcompat.app.AppCompatDelegate
import androidx.core.content.ContentProviderCompat.requireContext
import com.wirelessalien.android.bhagavadgita.R

class Themes {
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/res/layout/activity_verse_translation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
-->

<!-- activity_translation_list.xml -->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@

package com.wirelessalien.android.bhagavadgita

import org.junit.Test

import org.junit.Assert.*
import org.junit.Test

/**
* Example local unit test, which will execute on the development machine (host).
Expand Down

0 comments on commit 7646325

Please sign in to comment.