public class SwiftHeapObjectHolder implements AutoCloseable {
...
public static native void _releaseSwiftObject(long swiftObject);
}
but I don't see anything in the generated Swift file. If I just naively attempt to implement as an extension on JavaClass<SwiftHeapObjectHolder>, I get a load time error – weirdly it's looking for Java_com_padl_FlutterAndroid_SwiftHeapObjectHolder__1releaseSwiftObject. No idea where the 1 prefix came from. If I put that in the Swift method name, it at least loads OK:
Are static native methods supported?
I have (yes, related to #168) this:
but I don't see anything in the generated Swift file. If I just naively attempt to implement as an extension on
JavaClass<SwiftHeapObjectHolder>
, I get a load time error – weirdly it's looking forJava_com_padl_FlutterAndroid_SwiftHeapObjectHolder__1releaseSwiftObject
. No idea where the1
prefix came from. If I put that in the Swift method name, it at least loads OK: