https://kotlinlang.org
Join Slack
Hi I am trying to get security resource server working with Spring 3 and Kotlin and it’s proving dif...
o

Olufemi Adeojo

about 2 years ago
Hi I am trying to get security resource server working with Spring 3 and Kotlin and it’s proving difficult.
@Configuration
class SecurityConfig {

    @Bean
    fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
        http
            .csrf { obj: CsrfConfigurer<HttpSecurity> -> obj.disable() }
            .oauth2ResourceServer { oauth2: OAuth2ResourceServerConfigurer<HttpSecurity?> ->
                oauth2.jwt(
                    Customizer.withDefaults()
                )
            }
        return http.build()
    }
}
o
k
  • 2
  • 5
  • 678
Hi, What is preferable: Using russhwolf library or datastore library (in alpha for kmm) for storing...
f

Farid Benhaimoud

over 2 years ago
Hi, What is preferable: Using russhwolf library or datastore library (in alpha for kmm) for storing key value pairs??
f
c
+4
  • 6
  • 17
  • 678
Hello! Does ktor client have support for SOAP?
p

PHondogo

about 6 years ago
Hello! Does ktor client have support for SOAP?
p
s
m
  • 3
  • 3
  • 678
I need to profile a Kotlin application. What would be some recommended tooling for that? Not looking...
m

Marcin Wisniowski

about 2 years ago
I need to profile a Kotlin application. What would be some recommended tooling for that? Not looking for paid software.
🙌 1
m
j
+3
  • 5
  • 9
  • 676
I want to make dashed border like this to my button, for this I am drawing rectangle with dashed str...
e

Elnur Jeksenov

almost 5 years ago
I want to make dashed border like this to my button, for this I am drawing rectangle with dashed stroke, but there is obscure exception: “java.lang.NullPointerException: null cannot be cast to non-null type androidx.compose.ui.graphics.AndroidPathEffect”
Canvas(modifier = Modifier.fillMaxSize(), 
onDraw = {
                            drawRect(
                                size = Size(packFloats(200f, 50f)),
                                color = Color.Blue,
                                style = Stroke(width = 1f, pathEffect = PathEffect.dashPathEffect(floatArrayOf(10f, 10f), 0f))
                            )
}
)
Have you got any idea, why this exception is appearing?
e
k
+4
  • 6
  • 6
  • 676
In compose testing, how does one assert for text color? This <answer> works but seems slightly old a...
c

chatterInDaSkull

about 3 years ago
In compose testing, how does one assert for text color? This answer works but seems slightly old and can’t find somethign newer
c
o
  • 2
  • 1
  • 675
Does something like `@VisibleForTesting` exists in pure Kotlin? On Android we have `android.support....
j

jmfayard

about 6 years ago
Does something like
@VisibleForTesting
exists in pure Kotlin? On Android we have
android.support.annotation.VisibleForTesting
to change the visibility of properties and methods for unit tests.
j
t
+2
  • 4
  • 9
  • 674
Hi! Has anyone experienced a bug with JaCoCo reporting 0% coverage on multi module Android projects?...
a

Andre Theilacker

over 2 years ago
Hi! Has anyone experienced a bug with JaCoCo reporting 0% coverage on multi module Android projects? Details in thread
a
y
m
  • 3
  • 3
  • 673
Using Crashlytics with KMP and coroutines, the stack trace is completely lost, there's no way for us...
b

Benoît

over 4 years ago
Using Crashlytics with KMP and coroutines, the stack trace is completely lost, there's no way for us to what happened, we only know there was a crash in the
CoroutineExceptionHandler
Swift object Has anyone managed to fix this issue?
b
m
b
  • 3
  • 11
  • 673
When building my multiplatform app from Xcode I am suddenly getting the following error while buildi...
u

ubuntudroid

over 2 years ago
When building my multiplatform app from Xcode I am suddenly getting the following error while building the shared library:
/bin/sh -c /Users/ubuntudroid/Library/Developer/Xcode/DerivedData/Clear-exiyzzachjfrvmbualscrdesogez/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/shared.build/Script-46EB2E00010940.sh

                REPO_ROOT="$PODS_TARGET_SRCROOT"
                "$REPO_ROOT/../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework                     -Pkotlin.native.cocoapods.platform=$PLATFORM_NAME                     -Pkotlin.native.cocoapods.archs="$ARCHS"                     -Pkotlin.native.cocoapods.configuration="$CONFIGURATION"
> Task :buildSrc:compileKotlin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildSrc:compileKotlin'.
> Error while evaluating property 'compilerOptions.jvmTarget' of task ':buildSrc:compileKotlin'.
   > Failed to calculate the value of property 'jvmTarget'.
      > Unknown Kotlin JVM target: 20
How can I pin the JVM target for iOS builds of the shared library? Setting
export JAVA_HOME=/Users/ubuntudroid/Library/Java/JavaVirtualMachines/azul-17.0.7/Contents/Home
in the shared build step mentioned above works, but that obviously won’t work on any other than my machine including the CI. Can I somehow force JAVA_HOME for the build script to be the same like its set on the machine its running on?
u
j
b
  • 3
  • 15
  • 672
Previous868788Next

kotlinlang

A modern programming language that makes developers happier.

Powered by