Skip to content

Commit eec1a2b

Browse files
committed
Fix unused imports
1 parent bbb1860 commit eec1a2b

File tree

63 files changed

+215
-242
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+215
-242
lines changed

.idea/deploymentTargetDropDown.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
2+
23
@Suppress("DSL_SCOPE_VIOLATION")
34
plugins {
45
id("com.android.application")

app/src/main/java/com/oguzdogdu/wallies/core/BaseBottomSheetDialogFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ abstract class BaseBottomSheetDialogFragment<VB : ViewBinding>(private val bindi
4242
}
4343

4444
fun navigate(@IdRes id: Int, extras: Bundle?) {
45-
findNavController().navigateSafe(id,extras)
45+
findNavController().navigateSafe(id, extras)
4646
}
4747

4848
fun navigateBack(@IdRes destination: Int? = null) {

app/src/main/java/com/oguzdogdu/wallies/core/BaseFragment.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ import androidx.viewbinding.ViewBinding
1111
import com.oguzdogdu.wallies.util.navigateSafe
1212

1313
abstract class BaseFragment<VB : ViewBinding>(
14-
private val bindingInflater: (inflater: LayoutInflater) -> VB
14+
private val bindingInflater: (inflater: LayoutInflater) -> VB,
1515
) : Fragment(), Presenters {
1616

1717
private var _binding: VB? = null
1818
val binding: VB
1919
get() = _binding as VB
2020

2121
override fun onCreateView(
22-
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
22+
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?,
2323
): View? {
2424
_binding = bindingInflater.invoke(inflater)
2525
if (_binding == null) throw IllegalArgumentException("Binding cannot be null")
@@ -32,6 +32,7 @@ abstract class BaseFragment<VB : ViewBinding>(
3232
initViews()
3333
initListeners()
3434
}
35+
3536
override fun observeData() {
3637
}
3738

@@ -42,7 +43,7 @@ abstract class BaseFragment<VB : ViewBinding>(
4243
}
4344

4445
fun navigate(@IdRes id: Int, extras: Bundle?) {
45-
findNavController().navigateSafe(id,extras)
46+
findNavController().navigateSafe(id, extras)
4647
}
4748

4849
fun navigateBack(@IdRes destination: Int? = null) {

app/src/main/java/com/oguzdogdu/wallies/core/WalliesApp.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ import dagger.hilt.android.HiltAndroidApp
55

66

77
@HiltAndroidApp
8-
class WalliesApp : Application() {
9-
10-
}
8+
class WalliesApp : Application()

app/src/main/java/com/oguzdogdu/wallies/di/AppModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import dagger.hilt.components.SingletonComponent
1313
object AppModule {
1414
@Provides
1515
fun provideCheckConnection(
16-
@ApplicationContext context: Context
17-
) : CheckConnection {
16+
@ApplicationContext context: Context,
17+
): CheckConnection {
1818
return CheckConnection(context)
1919
}
2020
}

app/src/main/java/com/oguzdogdu/wallies/di/NetworkModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ object NetworkModule {
3131
@Provides
3232
@Singleton
3333
fun provideOkHttpClient(
34-
loggingInterceptor: HttpLoggingInterceptor
34+
loggingInterceptor: HttpLoggingInterceptor,
3535
): OkHttpClient {
3636
val builder = OkHttpClient.Builder().apply {
3737
addInterceptor(loggingInterceptor)

app/src/main/java/com/oguzdogdu/wallies/di/RepositoryModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import javax.inject.Singleton
1515
object RepositoryModule {
1616
@Provides
1717
@Singleton
18-
fun provideRepository(service: WallpaperService,dao: FavoriteDao): WallpaperRepository {
19-
return WallpaperRepositoryImpl(service,dao)
18+
fun provideRepository(service: WallpaperService, dao: FavoriteDao): WallpaperRepository {
19+
return WallpaperRepositoryImpl(service, dao)
2020
}
2121
}

app/src/main/java/com/oguzdogdu/wallies/presentation/collections/CollectionListAdapter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CollectionListAdapter :
2525
fun bind(wallpaper: WallpaperCollections) {
2626
binding.apply {
2727
textViewAuthorName.text = wallpaper.title
28-
imageViewPost.load(wallpaper.photo)
28+
imageViewPost.load(wallpaper.photo)
2929
binding.root.setOnClickListener {
3030
onItemClickListener?.let {
3131
it(wallpaper)
@@ -54,7 +54,7 @@ class CollectionListAdapter :
5454
object : DiffUtil.ItemCallback<WallpaperCollections>() {
5555
override fun areItemsTheSame(
5656
oldItem: WallpaperCollections,
57-
newItem: WallpaperCollections
57+
newItem: WallpaperCollections,
5858
) =
5959
oldItem.id == newItem.id
6060

app/src/main/java/com/oguzdogdu/wallies/presentation/collections/CollectionViewModel.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.oguzdogdu.wallies.presentation.collections
22

3-
import androidx.lifecycle.MutableLiveData
43
import androidx.lifecycle.ViewModel
54
import androidx.lifecycle.viewModelScope
65
import androidx.paging.cachedIn

0 commit comments

Comments
 (0)