Skip to content

Commit

Permalink
fix: Fix build for Android because of Worklet usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Apr 20, 2024
1 parent e124c00 commit 9fcb61a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ jsi::Value VisionCameraProxy::get(jsi::Runtime& runtime, const jsi::PropNameID&
return this->initFrameProcessorPlugin(runtime, pluginName, options);
});
} else if (name == "workletContext") {
#if VISION_CAMERA_ENABLE_FRAME_PROCESSORS
std::shared_ptr<RNWorklet::JsiWorkletContext> context = _javaProxy->cthis()->getWorkletContext();
return jsi::Object::createFromHostObject(runtime, context);
#endif
}

return jsi::Value::undefined();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import android.content.pm.PackageManager
import android.location.Location
import android.location.LocationListener
import android.location.LocationManager
import android.location.LocationRequest
import android.util.Log
import androidx.core.content.ContextCompat

Expand Down

0 comments on commit 9fcb61a

Please sign in to comment.