Skip to content

Commit 35787ba

Browse files
dependabot[bot]domesticmouseHosseinYousefi
authored
Bump jni from 0.11.0 to 0.12.0 in /experimental/pedometer (#2465)
Bumps [jni](https://github.com/dart-lang/native/tree/main/pkgs) from 0.11.0 to 0.12.0. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/dart-lang/native/commits/HEAD/pkgs">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=jni&package-manager=pub&previous-version=0.11.0&new-version=0.12.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Brett Morgan <[email protected]> Co-authored-by: Hossein Yousefi <[email protected]>
1 parent 8ecb09f commit 35787ba

File tree

4 files changed

+15486
-14325
lines changed

4 files changed

+15486
-14325
lines changed

experimental/pedometer/example/lib/steps_repo.dart

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import 'dart:io';
66
import 'package:flutter/foundation.dart';
77
import 'package:intl/intl.dart';
88
import 'package:jni/jni.dart' as jni;
9-
import 'package:pedometer/pedometer_bindings_generated.dart' as pd;
109
import 'package:pedometer/health_connect.dart' as hc;
10+
import 'package:pedometer/pedometer_bindings_generated.dart' as pd;
1111

1212
/// Class to hold the information needed for the chart
1313
class Steps {
@@ -124,10 +124,12 @@ class _AndroidStepsRepo implements StepsRepo {
124124
late final hc.HealthConnectClient client;
125125

126126
_AndroidStepsRepo() {
127+
// ignore: invalid_use_of_internal_member
127128
activity = hc.Activity.fromReference(jni.Jni.getCurrentActivity());
128129
applicationContext =
130+
// ignore: invalid_use_of_internal_member
129131
hc.Context.fromReference(jni.Jni.getCachedApplicationContext());
130-
client = hc.HealthConnectClient.getOrCreate1(applicationContext);
132+
client = hc.HealthConnectClient.getOrCreate$1(applicationContext);
131133
}
132134

133135
@override
@@ -153,7 +155,7 @@ class _AndroidStepsRepo implements StepsRepo {
153155
}
154156
final data = await Future.wait(futures);
155157
return data.asMap().entries.map((entry) {
156-
final stepsLong = entry.value.get0(hc.StepsRecord.COUNT_TOTAL);
158+
final stepsLong = entry.value.get(hc.StepsRecord.COUNT_TOTAL);
157159
final steps = stepsLong.isNull ? 0 : stepsLong.intValue();
158160
return Steps(entry.key.toString().padLeft(2, '0'), steps);
159161
}).toList();

experimental/pedometer/example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies:
4141

4242
ffi: ^2.1.2
4343
intl: ^0.19.0
44-
jni: ^0.11.0
44+
jni: ^0.12.0
4545
fl_chart: ^0.69.0
4646

4747
dev_dependencies:

0 commit comments

Comments
 (0)