Skip to content

Commit 478068f

Browse files
committed
fixes v3
Signed-off-by: jakmro <kubamroz124@gmail.com>
1 parent 3cd171b commit 478068f

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

android/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ endif()
1919

2020
set(_DEPS cactus_engine cactus_graph cactus_kernels)
2121

22-
add_library(cactus_jni SHARED ${CMAKE_CURRENT_SOURCE_DIR}/../bindings/kotlin/cactus_jni.cpp)
22+
add_library(cactus_jni SHARED ${CMAKE_CURRENT_SOURCE_DIR}/cactus_jni.cpp)
2323

2424
set_target_properties(cactus_jni PROPERTIES
2525
OUTPUT_NAME cactus

bindings/flutter/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ cactus build --android
1414
<!-- --8<-- [start:integration] -->
1515
1. Copy `libcactus.so` to `jniLibs/arm64-v8a/` (Android)
1616
2. Add `cactus-ios.xcframework` to your Xcode project (iOS)
17-
3. Copy `cactus.dart` into your Dart source tree
18-
4. Add `ffi` to `pubspec.yaml`
17+
3. Add `cactus-macos.xcframework` to your Xcode project (macOS)
18+
4. Copy `cactus.dart` into your Dart source tree
19+
5. Add `ffi` to `pubspec.yaml`
1920
<!-- --8<-- [end:integration] -->
2021

2122
## Usage

bindings/kotlin/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
JNI bridge to `cactus_engine.h` for Android, with KMP support for iOS.
44

5+
The JNI bridge itself (`android/cactus_jni.cpp`, compiled into `libcactus.so`) is JVM-language-agnostic. Java consumers can use it by writing an equivalent `CactusJNI.java` with `native` declarations matching the signatures in `Cactus.kt` — same library, same `Java_com_cactus_CactusJNI_*` symbols.
6+
57
## Android Integration
68

79
<!-- --8<-- [start:install] -->

0 commit comments

Comments
 (0)