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

@ -5,9 +5,7 @@ plugins {
`lobsters-plugin`
}
repositories {
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
repositories { maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
// workaround for https://youtrack.jetbrains.com/issue/KT-43944
android {
@ -40,23 +38,11 @@ kotlin {
}
}
val jvmMain by getting {
dependencies {
implementation(compose.runtime)
}
}
val jvmMain by getting { dependencies { implementation(compose.runtime) } }
val androidTest by getting {
dependencies {
implementation(kotlin("test-junit"))
}
}
val androidTest by getting { dependencies { implementation(kotlin("test-junit")) } }
val jvmTest by getting {
dependencies {
implementation(kotlin("test-junit"))
}
}
val jvmTest by getting { dependencies { implementation(kotlin("test-junit")) } }
val commonTest by getting {
dependencies {
@ -68,9 +54,7 @@ kotlin {
}
android {
buildFeatures {
androidResources = true
}
buildFeatures { androidResources = true }
sourceSets {
named("main") {

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,
;
}