Skip to content

Commit

Permalink
Remove unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ocramr committed Apr 27, 2021
1 parent 612850a commit 9c8481f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
8 changes: 2 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,13 @@ dependencies {
implementation "androidx.constraintlayout:constraintlayout:$constraint_layout"
implementation "androidx.cardview:cardview:$cardview"
implementation "com.google.android.material:material:$material"
implementation "androidx.legacy:legacy-preference-v14:$preferencev14"
// implementation "androidx.legacy:legacy-preference-v14:$preferencev14"

// Architecture components
// room
implementation "androidx.room:room-runtime:$roomVersion"
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
// implementation 'androidx.legacy:legacy-support-v4:1.0.0'
kapt "androidx.room:room-compiler:$roomVersion"
implementation "androidx.room:room-ktx:$roomVersion"

Expand Down Expand Up @@ -121,7 +120,4 @@ dependencies {
// Koin AndroidX ViewModel feature
implementation "org.koin:koin-androidx-viewmodel:$koin_version"

// android debug database
debugImplementation "com.amitshekhar.android:debug-db:$debugdb"

}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class DictionaryInteractorImpl(private val dictionaryRepository: DictionaryRepos
}

override suspend fun removeDictionary(id: Int): Boolean {
var removed = false
var removed: Boolean
withContext(Dispatchers.IO) {
removed = dictionaryRepository.removeDictionary(id) > 0
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class SearchHelpFragmentStateAdapter(fragment: Fragment) : FragmentStateAdapter(
return fragmentProviders[position].createFragment()
}

public fun getTitle(position: Int): String {
return fragmentProviders[position]?.title
fun getTitle(position: Int): String {
return fragmentProviders[position].title
}
}

Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<item name="colorPrimary">@color/primary_color</item>
<item name="colorPrimaryDark">@color/primary_dark_color</item>
<item name="colorAccent">@color/accent_color</item>
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
</style>

<style name="ThemeOverlay.Qichwa" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
Expand Down

0 comments on commit 9c8481f

Please sign in to comment.