mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 12:07:03 +05:30
all: reformat with ktfmt google style
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
8448910628
commit
db07a12be5
54 changed files with 496 additions and 656 deletions
|
@ -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") {
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -13,5 +13,4 @@ enum class Strings {
|
|||
SavedPosts,
|
||||
SubmittedBy,
|
||||
NewestPosts,
|
||||
;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue