[sweet API][Kotlin] Add `JavaScriptObject.setProperty` (#17684)
# Why
Adds `setProperty` to the `JavaScriptObject`.
# How
- Adds a base interface to indicate if the derived class wrap a jsi
[sweet API][Kotlin] Add `JavaScriptObject.setProperty` (#17684)
# Why
Adds `setProperty` to the `JavaScriptObject`.
# How
- Adds a base interface to indicate if the derived class wrap a jsi::Value or jsi::Object.
- Adds a conversion between JNI and jsi objects based on the type traits.
- Hides raw JNI API in the `JavaScriptObject` using methods overload.
- Adds unit tests
# Test Plan
- unit tests ✅
show more ...
|