hooks breaking changes

pub

15 curated breaking changes across major versions of hooks. Use this as a migration checklist before bumping dependencies.

15
changes
Breaking changes by transition
  • jni_flutter-v1.0.1 \u2192 jnigen-v0.16.0breaking

    Add docs about debugging.

  • jni_flutter-v1.0.1 \u2192 jnigen-v0.16.0breaking

    No more nullable `JType` classes, only `JType` classes, and the `JType` class is simplified.

  • jni_flutter-v1.0.1 \u2192 jnigen-v0.16.0breaking

    Add support for Kotlin interfaces with suspend functions. These can now be implemented using Dart functions that return a `Future`.

  • jni_flutter-v1.0.1 \u2192 jnigen-v0.16.0breaking

    Namespace primitive types to avoid collisions with generated API names, eg `bool`.

  • jni_flutter-v1.0.1 \u2192 jnigen-v0.16.0breaking

    It is no longer necessary to pass around the `JType` in many cases where it used to be required.

  • jni-v0.15.2 \u2192 jnigen-v0.15.0breaking

    Updated to the latest lints.

  • hooks_runner-v1.1.1 \u2192 jni-v1.0.0breaking

    No more nullable `JType` classes, only `JType` classes, and the `JType` class is simplified.

  • hooks_runner-v1.1.1 \u2192 jni-v1.0.0breaking

    **Breaking Change**: All Java wrapper classes have been migrated to extension types. The main effects are:

  • hooks_runner-v1.1.1 \u2192 jni-v1.0.0breaking

    All collections (`JList`, `JMap` etc) are now direct code generated wrappers around the Java objects, so are less Darty. Instead there are now Darty adapter classes you can access via `asDart()`.

  • hooks_runner-v1.1.1 \u2192 jni-v1.0.0breaking

    It is no longer necessary to pass around the `JType` in many cases where it used to be required.

  • hooks_runner-v1.1.1 \u2192 jni-v1.0.0breaking

    Added `Jni.captureStackTraceOnRelease` which defaults to `false`. When this is set, the stack traces of the release points will be stored for `JObject`s to help debug `DoubleReleaseError` and `UseAfterReleaseError`s. This includes the points where `JObject`s have been registered to be released by an `arena` via `JObject.releaseBy`.

  • native_toolchain_c-v0.17.6 \u2192 jni-v0.15.0breaking

    **Breaking Change**: Renamed `JObjType` to `JType`.

  • native_toolchain_c-v0.17.6 \u2192 jni-v0.15.0breaking

    **Breaking Change**: Made all of the type classes internal.

  • native_toolchain_c-v0.17.6 \u2192 jni-v0.15.0breaking

    **Breaking Change**: Removed `Jni.getApplicationClassLoader()`, `Jni.getCurrentActivity()`, and `Jni.getCachedApplicationContext()`. Instead use `Jni.androidApplicationContext(engineId)` to access the application context and use `Jni.androidActivity(engineId)` to acccess the activity.

  • native_toolchain_c-v0.17.6 \u2192 jni-v0.15.0breaking

    Update to the latest lints.

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/pub/hooks
hooks breaking changes — Pub migration guide | DepScope