diff --git a/pkgs/jnigen/example/in_app_java/lib/android_utils.dart b/pkgs/jnigen/example/in_app_java/lib/android_utils.dart index 8a0e58a87..8eba9cc8e 100644 --- a/pkgs/jnigen/example/in_app_java/lib/android_utils.dart +++ b/pkgs/jnigen/example/in_app_java/lib/android_utils.dart @@ -3210,9 +3210,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> } static final _new3 = jniLookup< - ffi - .NativeFunction)>>( - "HashMap__new3") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("HashMap__new3") .asFunction)>(); /// from: public void (java.util.Map map) @@ -3232,9 +3231,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> } static final _size = jniLookup< - ffi - .NativeFunction)>>( - "HashMap__size") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("HashMap__size") .asFunction)>(); /// from: public int size() @@ -3336,9 +3334,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> } static final _clear = jniLookup< - ffi - .NativeFunction)>>( - "HashMap__clear") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("HashMap__clear") .asFunction)>(); /// from: public void clear() @@ -3362,9 +3359,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> } static final _keySet = jniLookup< - ffi - .NativeFunction)>>( - "HashMap__keySet") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("HashMap__keySet") .asFunction)>(); /// from: public java.util.Set keySet() @@ -3374,9 +3370,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> } static final _values = jniLookup< - ffi - .NativeFunction)>>( - "HashMap__values") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("HashMap__values") .asFunction)>(); /// from: public java.util.Collection values() @@ -3614,9 +3609,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> } static final _clone = jniLookup< - ffi - .NativeFunction)>>( - "HashMap__clone") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("HashMap__clone") .asFunction)>(); /// from: public java.lang.Object clone() diff --git a/pkgs/jnigen/test/jackson_core_test/third_party/c_based/dart_bindings/com/fasterxml/jackson/core/JsonToken.dart b/pkgs/jnigen/test/jackson_core_test/third_party/c_based/dart_bindings/com/fasterxml/jackson/core/JsonToken.dart index bab355e9a..4d80a8f75 100644 --- a/pkgs/jnigen/test/jackson_core_test/third_party/c_based/dart_bindings/com/fasterxml/jackson/core/JsonToken.dart +++ b/pkgs/jnigen/test/jackson_core_test/third_party/c_based/dart_bindings/com/fasterxml/jackson/core/JsonToken.dart @@ -80,9 +80,8 @@ class JsonToken extends jni.JObject { } static final _id = jniLookup< - ffi - .NativeFunction)>>( - "JsonToken__id") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("JsonToken__id") .asFunction)>(); /// from: public final int id() diff --git a/pkgs/jnigen/test/simple_package_test/c_based/dart_bindings/simple_package.dart b/pkgs/jnigen/test/simple_package_test/c_based/dart_bindings/simple_package.dart index 7327fcfbf..c4f64a18c 100644 --- a/pkgs/jnigen/test/simple_package_test/c_based/dart_bindings/simple_package.dart +++ b/pkgs/jnigen/test/simple_package_test/c_based/dart_bindings/simple_package.dart @@ -52,9 +52,8 @@ class Color extends jni.JObject { } static final _valueOf = jniLookup< - ffi - .NativeFunction)>>( - "Color__valueOf") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("Color__valueOf") .asFunction)>(); /// from: static public com.github.dart_lang.jnigen.simple_package.Color valueOf(java.lang.String name) @@ -671,9 +670,8 @@ class Example extends jni.JObject { } static final _addAll = jniLookup< - ffi - .NativeFunction)>>( - "Example__addAll") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("Example__addAll") .asFunction)>(); /// from: static public int addAll(int[] arr) @@ -2918,9 +2916,8 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { } static final _of1 = jniLookup< - ffi - .NativeFunction)>>( - "MyStack__of1") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("MyStack__of1") .asFunction)>(); /// from: static public com.github.dart_lang.jnigen.generics.MyStack of(T obj) @@ -2973,9 +2970,8 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { } static final _pop = jniLookup< - ffi - .NativeFunction)>>( - "MyStack__pop") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("MyStack__pop") .asFunction)>(); /// from: public T pop() @@ -2985,9 +2981,8 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { } static final _size = jniLookup< - ffi - .NativeFunction)>>( - "MyStack__size") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("MyStack__size") .asFunction)>(); /// from: public int size() @@ -3664,9 +3659,8 @@ class MyRunnable extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $MyRunnableType(); static final _run = jniLookup< - ffi - .NativeFunction)>>( - "MyRunnable__run") + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>("MyRunnable__run") .asFunction)>(); /// from: public abstract void run()