Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Reformat with the latest version of dart format (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinYousefi authored Nov 16, 2023
1 parent 34038d7 commit d9ceda7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 39 deletions.
30 changes: 12 additions & 18 deletions jnigen/example/in_app_java/lib/android_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3210,9 +3210,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject>
}

static final _new3 = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"HashMap__new3")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("HashMap__new3")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: public void <init>(java.util.Map map)
Expand All @@ -3232,9 +3231,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject>
}

static final _size = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"HashMap__size")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("HashMap__size")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: public int size()
Expand Down Expand Up @@ -3336,9 +3334,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject>
}

static final _clear = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"HashMap__clear")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("HashMap__clear")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: public void clear()
Expand All @@ -3362,9 +3359,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject>
}

static final _keySet = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"HashMap__keySet")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("HashMap__keySet")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: public java.util.Set keySet()
Expand All @@ -3374,9 +3370,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject>
}

static final _values = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"HashMap__values")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("HashMap__values")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: public java.util.Collection values()
Expand Down Expand Up @@ -3614,9 +3609,8 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject>
}

static final _clone = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"HashMap__clone")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("HashMap__clone")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: public java.lang.Object clone()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ class JsonToken extends jni.JObject {
}

static final _id = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"JsonToken__id")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("JsonToken__id")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: public final int id()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ class Color extends jni.JObject {
}

static final _valueOf = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"Color__valueOf")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("Color__valueOf")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: static public com.github.dart_lang.jnigen.simple_package.Color valueOf(java.lang.String name)
Expand Down Expand Up @@ -671,9 +670,8 @@ class Example extends jni.JObject {
}

static final _addAll = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"Example__addAll")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("Example__addAll")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: static public int addAll(int[] arr)
Expand Down Expand Up @@ -2918,9 +2916,8 @@ class MyStack<$T extends jni.JObject> extends jni.JObject {
}

static final _of1 = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"MyStack__of1")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("MyStack__of1")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: static public com.github.dart_lang.jnigen.generics.MyStack<T> of(T obj)
Expand Down Expand Up @@ -2973,9 +2970,8 @@ class MyStack<$T extends jni.JObject> extends jni.JObject {
}

static final _pop = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"MyStack__pop")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("MyStack__pop")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: public T pop()
Expand All @@ -2985,9 +2981,8 @@ class MyStack<$T extends jni.JObject> extends jni.JObject {
}

static final _size = jniLookup<
ffi
.NativeFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"MyStack__size")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("MyStack__size")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: public int size()
Expand Down Expand Up @@ -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<jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
"MyRunnable__run")
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>)>>("MyRunnable__run")
.asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();

/// from: public abstract void run()
Expand Down

0 comments on commit d9ceda7

Please sign in to comment.