Skip to content

chore(ok_http): bump jni to 0.15.2#1879

Open
mertalev wants to merge 3 commits intodart-lang:masterfrom
mertalev:chore/jni-0.15.2
Open

chore(ok_http): bump jni to 0.15.2#1879
mertalev wants to merge 3 commits intodart-lang:masterfrom
mertalev:chore/jni-0.15.2

Conversation

@mertalev
Copy link

@mertalev mertalev commented Feb 12, 2026

The JNI bindings seem to be based on an older jnigen output, so regenerating them with 0.14.2 caused a large diff with some changes needed to make it work. This PR regenerates the bindings and makes the necessary changes. I also figured it may as well use the newer 0.15.2 like cronet_http and bumped it here.


  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:

Many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

Note: The Dart team is trialing Gemini Code Assist. Don't take its comments as final Dart team feedback. Use the suggestions if they're helpful; otherwise, wait for a human reviewer.

regenerate bindings

update client

fix nullability change
@mertalev mertalev changed the title chore: bump jni to 0.15.2 chore(ok_http): bump jni to 0.15.2 Feb 12, 2026
@github-actions
Copy link

PR Health

Coverage ⚠️
File Coverage
pkgs/ok_http/lib/src/jni/bindings.dart 💔 Not covered
pkgs/ok_http/lib/src/ok_http_client.dart 💔 Not covered

This check for test coverage is informational (issues shown here will not fail the PR).

This check can be disabled by tagging the PR with skip-coverage-check.

Breaking changes ✔️
Package Change Current Version New Version Needed Version Looking good?
ok_http Non-Breaking 0.1.0 0.1.1-wip 0.1.1-wip ✔️

This check can be disabled by tagging the PR with skip-breaking-check.

Unused Dependencies ⚠️
Package Status
ok_http
❗ Show Issues
These packages are used outside lib/ but are not dev_dependencies:
* flutter_test
* http_client_conformance_tests
* http_image_provider
* integration_test
* provider
* test
* web_socket_conformance_tests
These packages are only used outside lib/ and should be downgraded to dev_dependencies:
* flutter
These packages may be unused, or you may be using assets from these packages:
* dart_flutter_team_lints
* plugin_platform_interface
Failed to update packages.

For details on how to fix these, see dependency_validator.

This check can be disabled by tagging the PR with skip-unused-dependencies-check.

Changelog Entry
Package Changed Files
package:ok_http pkgs/ok_http/lib/src/jni/bindings.dart
pkgs/ok_http/lib/src/ok_http_client.dart
pkgs/ok_http/pubspec.yaml

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

License Headers ✔️
// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
Files
no missing headers

All source files should start with a license header.

Unrelated files missing license headers
Files
pkgs/http/example/main.dart
pkgs/http_multi_server/test/cert.dart

This check can be disabled by tagging the PR with skip-license-check.

API leaks ⚠️

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package Leaked API symbol Leaking sources
ok_http PublicKey jni/bindings.dart::Certificate::getPublicKey
jni/bindings.dart::PublicKey::nullableType
jni/bindings.dart::PublicKey::type
jni/bindings.dart::Certificate::verify::publicKey
jni/bindings.dart::Certificate::verify$1::publicKey
jni/bindings.dart::Certificate::verify$2::publicKey
jni/bindings.dart::X509Certificate::verify2::publicKey
ok_http $PublicKey jni/bindings.dart::PublicKey::implementIn::$impl
jni/bindings.dart::PublicKey::implement::$impl
ok_http $PrivateKey jni/bindings.dart::PrivateKey::implementIn::$impl
jni/bindings.dart::PrivateKey::implement::$impl

This check can be disabled by tagging the PR with skip-leaking-check.

@brianquinlan
Copy link
Collaborator

Could you update CHANGELOG.md?

@mertalev
Copy link
Author

mertalev commented Feb 17, 2026

I checked the test failures and it seems they happen on main as well. The client tests pass with #1880

Edit: The certificate_test suite is indeed failing in this PR despite (mostly) passing on main. Fixed as of the latest commit - the two remaining failures exist on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants