Skip to content

Commit e63c6ac

Browse files
Update readme
1 parent 442d3d7 commit e63c6ac

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

pkgs/jni/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,13 @@ Apart from being the base library for code generated by `jnigen` this can also b
2121
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.
2222

2323
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.

pkgs/jnigen/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## 0.8.0-wip
22

3+
- **Breaking Change** ([#981](https://github.com/dart-lang/native/issues/981)):
4+
- `fromRef` is now `fromReference`, and it gets a `JReference` instead of a
5+
`Pointer<Void>`.
6+
- Check out the internal changes to `JObject` in
7+
[`package:jni`'s changelog](https://github.com/dart-lang/native/blob/main/pkgs/jni/CHANGELOG.md#080-wip).
38
- **Breaking Change**: The generated impl class for interfaces is now an
49
`interface`.
510
- **Breaking Change** ([#792](https://github.com/dart-lang/native/issues/792)]):

pkgs/jnigen/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ However there are 2 caveats to this caveat.
282282

283283
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.
284284

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).
288+
285289
## Contributing
286290
See the wiki for architecture-related documents.
287291

0 commit comments

Comments
 (0)