Skip to content

Commit 050ba48

Browse files
committed
spotless ktlint
1 parent aebf663 commit 050ba48

File tree

12 files changed

+25
-33
lines changed

12 files changed

+25
-33
lines changed

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ object PluginVersions {
2626
const val navigationSafeArgs = "2.3.1"
2727
const val googleServices = "4.3.4"
2828
const val crashlytics = "2.4.1"
29-
const val spotless = "5.11.1"
29+
const val spotless = "5.12.4"
3030
}
3131

3232
object Plugins {

navigation/build.gradle.kts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
plugins {
2-
`comic-app-plugin`
3-
`android-library`
4-
id("kotlin-kapt")
5-
id("androidx.navigation.safeargs.kotlin")
2+
`comic-app-plugin`
3+
`android-library`
4+
id("kotlin-kapt")
5+
id("androidx.navigation.safeargs.kotlin")
66
}
77

88
comicApp { parcelize = true }
99

1010
dependencies {
11-
implementation(deps.androidX.navigation.fragment)
12-
implementation(deps.timber)
11+
implementation(deps.androidX.navigation.fragment)
12+
implementation(deps.timber)
1313

14-
testImplementation("junit:junit:4.13")
15-
androidTestImplementation("androidx.test.ext:junit:1.1.2")
16-
androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
17-
}
14+
testImplementation("junit:junit:4.13")
15+
androidTestImplementation("androidx.test.ext:junit:1.1.2")
16+
androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
17+
}

navigation/src/androidTest/java/com/hoc/comicapp/navigation/ExampleInstrumentedTest.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package com.hoc.comicapp.navigation
22

3-
import androidx.test.platform.app.InstrumentationRegistry
43
import androidx.test.ext.junit.runners.AndroidJUnit4
5-
4+
import androidx.test.platform.app.InstrumentationRegistry
5+
import org.junit.Assert.assertEquals
66
import org.junit.Test
77
import org.junit.runner.RunWith
88

9-
import org.junit.Assert.*
10-
119
/**
1210
* Instrumented test, which will execute on an Android device.
1311
*
@@ -21,4 +19,4 @@ class ExampleInstrumentedTest {
2119
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
2220
assertEquals("com.hoc.comicapp.navigation.test", appContext.packageName)
2321
}
24-
}
22+
}

navigation/src/main/java/com/hoc/comicapp/navigation/AppNavigator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ class AppNavigator(
3131
Timber.e(e, "Execute navigation command error: $e")
3232
}
3333
}
34-
}
34+
}

navigation/src/main/java/com/hoc/comicapp/navigation/ComicArg.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ object Arguments {
1616
val remoteThumbnail: String,
1717
) : Parcelable
1818

19-
2019
/**
2120
* Argument to pass to [com.hoc.comicapp.ui.category_detail.CategoryDetailFragment]
2221
*/
@@ -40,4 +39,3 @@ object Arguments {
4039
val comicLink: String,
4140
) : Parcelable
4241
}
43-
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package com.hoc.comicapp.navigation
22

3+
import org.junit.Assert.assertEquals
34
import org.junit.Test
45

5-
import org.junit.Assert.*
6-
76
/**
87
* Example local unit test, which will execute on the development machine (host).
98
*
@@ -14,4 +13,4 @@ class ExampleUnitTest {
1413
fun addition_isCorrect() {
1514
assertEquals(4, 2 + 2)
1615
}
17-
}
16+
}

utils/src/main/java/com/hoc/comicapp/utils/EitherExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ suspend inline fun <A, B, C, L, R> parZipEither(
2727
combiner(a.await(), b.await(), c.await())
2828
}
2929
}
30-
}
30+
}

utils/src/main/java/com/hoc/comicapp/utils/Exts.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ inline fun Context.uriFromResourceId(@AnyRes resId: Int): Uri? {
5555
val res = this@uriFromResourceId.resources
5656
Uri.parse(
5757
ContentResolver.SCHEME_ANDROID_RESOURCE +
58-
"://" + res.getResourcePackageName(resId) +
59-
'/' + res.getResourceTypeName(resId) +
60-
'/' + res.getResourceEntryName(resId)
58+
"://" + res.getResourcePackageName(resId) +
59+
'/' + res.getResourceTypeName(resId) +
60+
'/' + res.getResourceEntryName(resId)
6161
)
6262
}.getOrNull()
6363
}
@@ -82,7 +82,6 @@ inline fun Context.toast(
8282
if (short) Toast.LENGTH_SHORT else Toast.LENGTH_LONG
8383
).apply { show() }!!
8484

85-
8685
@SuppressLint("Recycle")
8786
inline fun Context.themeInterpolator(@AttrRes attr: Int): Interpolator {
8887
return AnimationUtils.loadInterpolator(
@@ -93,7 +92,6 @@ inline fun Context.themeInterpolator(@AttrRes attr: Int): Interpolator {
9392
)
9493
}
9594

96-
9795
@Suppress("unused")
9896
inline val Any?.unit
9997
get() = Unit
@@ -111,4 +109,4 @@ inline fun Fragment.startPostponedEnterTransitionWhenDrawn() {
111109
(requireView().parent as? ViewGroup)?.doOnPreDraw {
112110
startPostponedEnterTransition()
113111
}
114-
}
112+
}

utils/src/main/java/com/hoc/comicapp/utils/Firebase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ fun Query.snapshots(): Observable<QuerySnapshot> {
4040
Timber.d("Remove snapshot listener $this")
4141
}
4242
}
43-
}
43+
}

utils/src/main/java/com/hoc/comicapp/utils/RxBindings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ internal class MaterialSearchViewObservable(private val view: MaterialSearchView
9999

100100
override fun onDispose() = view.setOnQueryTextListener(null)
101101
}
102-
}
102+
}

0 commit comments

Comments
 (0)