Skip to content

Commit

Permalink
Remove redundant property setting and replace println with logger
Browse files Browse the repository at this point in the history
Removed duplicate calls to set the "compose.interop.blending" system property in `main.kt` to streamline application setup. Replaced a `println` statement with a `logger.debug` call in `MediaPlayerLib.kt` to improve logging consistency and leverage the existing logging utility.
  • Loading branch information
kdroidFilter committed Jan 28, 2025
1 parent 3818078 commit d0faeb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.sun.jna.platform.win32.WinDef.BOOLByReference
import com.sun.jna.ptr.FloatByReference
import com.sun.jna.ptr.LongByReference
import com.sun.jna.win32.StdCallLibrary
import io.github.kdroidfilter.composemediaplayer.util.logger

internal interface MediaPlayerLib : StdCallLibrary {
companion object {
Expand All @@ -26,7 +27,7 @@ internal interface MediaPlayerLib : StdCallLibrary {
val INSTANCE: MediaPlayerLib by lazy {
try {
Native.load("simpleplayer", MediaPlayerLib::class.java).also {
println("MediaPlayerLib loaded successfully")
logger.debug{ "MediaPlayerLib loaded successfully" }
}
} catch (e: Exception) {
e.printStackTrace()
Expand Down
3 changes: 0 additions & 3 deletions sample/composeApp/src/jvmMain/kotlin/sample/app/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import androidx.compose.ui.window.application
import androidx.compose.ui.window.rememberWindowState

fun main() {
System.setProperty("compose.interop.blending", "true")

application {
System.setProperty("compose.interop.blending", "true")
val windowState = rememberWindowState()
Window(
onCloseRequest = ::exitApplication,
Expand Down

0 comments on commit d0faeb9

Please sign in to comment.