all: reformat with ktfmt google style

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-04-02 13:05:08 +05:30
parent 8448910628
commit db07a12be5
54 changed files with 496 additions and 656 deletions

View file

@ -6,11 +6,12 @@ import androidx.browser.customtabs.CustomTabsIntent
actual class UrlLauncher(private val context: Context) {
actual fun launch(url: String) {
val customTabsIntent = CustomTabsIntent.Builder()
.setShareState(CustomTabsIntent.SHARE_STATE_ON)
.setShowTitle(true)
.setColorScheme(CustomTabsIntent.COLOR_SCHEME_DARK)
.build()
val customTabsIntent =
CustomTabsIntent.Builder()
.setShareState(CustomTabsIntent.SHARE_STATE_ON)
.setShowTitle(true)
.setColorScheme(CustomTabsIntent.COLOR_SCHEME_DARK)
.build()
customTabsIntent.launchUrl(context, Uri.parse(url))
}
}

View file

@ -2,8 +2,6 @@ package dev.msfjarvis.lobsters.utils
import androidx.compose.runtime.Composable
@Composable
expect fun Strings.get(): String
@Composable expect fun Strings.get(): String
@Composable
expect fun Strings.get(fmt: Any): String
@Composable expect fun Strings.get(fmt: Any): String

View file

@ -13,5 +13,4 @@ enum class Strings {
SavedPosts,
SubmittedBy,
NewestPosts,
;
}