Migrate YogaLogger to Kotlin (#1834)

Summary:
Migrate com.facebook.yoga.YogaLogger to Kotlin.

Pull Request resolved: https://github.com/facebook/yoga/pull/1834

Test Plan:
RN
```sh
yarn android
yarn test-android
```

Yoga
```sh
./gradlew :yoga:assembleDebug
```

Reviewed By: rshest

Differential Revision: D79897742

Pulled By: cortinico

fbshipit-source-id: 79b926a7abadce9038fc55ad0f608e92bc77a55a
This commit is contained in:
Mateo Guzmán
2025-08-11 08:47:34 -07:00
committed by Facebook GitHub Bot
parent 8bf7a34d02
commit da5ba7f7c6

View File

@@ -5,16 +5,15 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
package com.facebook.yoga; package com.facebook.yoga
import com.facebook.yoga.annotations.DoNotStrip; import com.facebook.yoga.annotations.DoNotStrip
/** /**
* Interface for receiving logs from native layer. Use by setting YogaNode.setLogger(myLogger); * Interface for receiving logs from native layer. Use by setting YogaNode.setLogger(myLogger); See
* See YogaLogLevel for the different log levels. * YogaLogLevel for the different log levels.
*/ */
@DoNotStrip @DoNotStrip
public interface YogaLogger { public fun interface YogaLogger {
@DoNotStrip @DoNotStrip public fun log(level: YogaLogLevel, message: String)
void log(YogaLogLevel level, String message);
} }