Skip to content

Add support for jni 1.0.0 #2580

Closed as not planned
Closed as not planned

Description

@nrsimha

There is limitation in pubspec file to use old version of jni.

  # Direct dependency for `JniException`, used to classify the
  # Cronet-provider-disabled failure surfaced by `CronetEngine.build()`.
  # The constraint tracks the version resolved by `cronet_http: ^1.5.0`.
  jni: ^0.14.0

https://github.com/cfug/dio/blob/8a1cf1953053864bd9c75615c6ee90ddb5a02138/plugins/native_dio_adapter/pubspec.yaml#L27-L3

But cronet_http 1.9.0 supports already supports jni: ^1.0.0
https://github.com/dart-lang/http/blob/49ddf11a1879e5eca84cef6ee0d7df07f6af2302/pkgs/cronet_http/pubspec.yaml#L16-L17

Can this be upgraded (and replacing JniException with JThrowable) so native_dio_adapter will supports jni 1.0.0 too?

Activity

  1. github-actions commented on Jul 27, 2026

    @github-actions
    Contributor

    @nrsimha Infra and blank issues are only available for moderators. You're apparently using the wrong issue template.

    Infra 和空白 issue 仅供管理人员使用,请选择其他 issue 模板创建 issue。

  2. locked as off topic and limited conversation to collaborators on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions