djinni

What classes and methods do I have to use to call Java from C++?

纵饮孤独 提交于 2020-07-09 19:34:26
问题 I'm currently working with Djinni and would like to call Java methods from C++. I have the following interface description file: ExampleSO = interface +j { PerformAddition(a: i32, b: i32): i32; } It generates these files: src/main/cpp/ExampleSO.hpp : C++ ExampleSO class containing a virtual destructor and a virtual PerformAddition method. src/main/java/com/name/group/ExampleSO.java : Java ExampleSO abtract class containing a public abstract PerformAddition method. src/main/jni/NativeExampleSO

What classes and methods do I have to use to call Java from C++?

不打扰是莪最后的温柔 提交于 2020-07-09 19:31:46
问题 I'm currently working with Djinni and would like to call Java methods from C++. I have the following interface description file: ExampleSO = interface +j { PerformAddition(a: i32, b: i32): i32; } It generates these files: src/main/cpp/ExampleSO.hpp : C++ ExampleSO class containing a virtual destructor and a virtual PerformAddition method. src/main/java/com/name/group/ExampleSO.java : Java ExampleSO abtract class containing a public abstract PerformAddition method. src/main/jni/NativeExampleSO

What classes and methods do I have to use to call Java from C++?

半城伤御伤魂 提交于 2020-07-09 19:31:31
问题 I'm currently working with Djinni and would like to call Java methods from C++. I have the following interface description file: ExampleSO = interface +j { PerformAddition(a: i32, b: i32): i32; } It generates these files: src/main/cpp/ExampleSO.hpp : C++ ExampleSO class containing a virtual destructor and a virtual PerformAddition method. src/main/java/com/name/group/ExampleSO.java : Java ExampleSO abtract class containing a public abstract PerformAddition method. src/main/jni/NativeExampleSO

Modifying the autolayout engine from a background thread error, from C++

瘦欲@ 提交于 2019-12-11 23:26:27
问题 I get the following error in Xcode 7.1 when making a UI call from C++, through a two-way djinni architecture: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release. I am able to solve the problem in Objective-C with the solution given here: Getting a “This application is modifying the autolayout engine” error? dispatch_async(dispatch_get_main_queue(), ^{ // code here