You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkgs/jni/README.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,3 +21,13 @@ Apart from being the base library for code generated by `jnigen` this can also b
21
21
The test/ directory contains files with comments explaining the basics of this module, and the example/ directory contains a flutter example which also touches some Android-specifics.
22
22
23
23
Using this library assumes some familiarity with JNI - it's threading model and object references, among other things.
24
+
25
+
## Migrating to 0.8.0
26
+
27
+
Check the [changelog](https://github.com/dart-lang/native/blob/main/pkgs/jni/CHANGELOG.md#080-wip).
28
+
29
+
The API for standalone use of `package:jni` (without `package:jnigen`) has
30
+
changed to use `JClass.forName` for finding classes. Find the methods and fields
31
+
by accessing them from the retrieved `JClass`. For example find an instance
32
+
method with a name and a signature using `jClass.instanceMethodId`. Then you can
33
+
`call` the resulting `JInstanceMethodId` to call the instance method.
Copy file name to clipboardExpand all lines: pkgs/jnigen/README.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -282,6 +282,10 @@ However there are 2 caveats to this caveat.
282
282
283
283
The JAR files (`$SDK_ROOT/platforms/android-$VERSION/android.jar`) can be used instead. But compiled JARs do not include JavaDoc and method parameter names. This JAR is automatically included by Gradle when `android_sdk_config` >> `add_gradle_deps` is specified.
284
284
285
+
## Migrating to 0.8.0
286
+
287
+
Check [`jni`'s changelog](https://github.com/dart-lang/native/blob/main/pkgs/jni/CHANGELOG.md#080-wip) and [`jnigen`'s changelog](https://github.com/dart-lang/native/blob/main/pkgs/jnigen/CHANGELOG.md#080-wip).
0 commit comments