You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/experimental/pedometer/pubspec.yaml

78 lines
2.4 KiB

name: pedometer
description: A new Flutter FFI plugin project.
version: 0.0.1
publish_to: "none"
environment:
sdk: ^3.2.0
flutter: ">=2.11.0"
dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.0.2
Bump jni from 0.6.1 to 0.7.0 in /experimental/pedometer (#2015) Bumps [jni](https://github.com/dart-lang/jnigen) from 0.6.1 to 0.7.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dart-lang/jnigen/releases">jni's releases</a>.</em></p> <blockquote> <h2>package:jni v0.7.0</h2> <ul> <li><strong>Breaking Change</strong> (<a href="https://redirect.github.com/dart-lang/jnigen/issues/387">#387</a>): Added <code>JBuffer</code> and <code>JByteBuffer</code> classes as default classes for <code>java.nio.Buffer</code> and <code>java.nio.ByteBuffer</code> respectively.</li> <li><strong>Breaking Change</strong>: Made the type classes <code>final</code>.</li> <li>Fixed a bug where <code>addAll</code>, <code>removeAll</code> and <code>retainAll</code> in <code>JSet</code> would run their respective operation twice.</li> <li>Fixed a bug where <code>JList.insertAll</code> would not throw the potentially thrown Java exception.</li> </ul> <h2>package:jnigen v0.7.0</h2> <ul> <li><strong>Breaking Change</strong> (<a href="https://redirect.github.com/dart-lang/jnigen/issues/387">#387</a>): Added <code>JBuffer</code> and <code>JByteBuffer</code> classes as default classes for <code>java.nio.Buffer</code> and <code>java.nio.ByteBuffer</code> respectively.</li> <li><strong>Breaking Change</strong>: Made the type classes <code>final</code>.</li> <li>Added <code>ignore_for_file: lines_longer_than_80_chars</code> to the generated file preamble.</li> <li>Added an explicit cast in generated <code>&lt;Interface&gt;.implement</code> code to allow <code>dart analyze</code> to pass when <code>strict-casts</code> is set.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/dart-lang/jnigen/commits/jni-v0.7.0">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.6.1&new-version=0.7.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`. --- <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>
1 year ago
jni: ^0.7.0
ffi: ^2.0.1
dev_dependencies:
Bump ffigen from 9.0.1 to 10.0.0 in /experimental/pedometer (#2093) Bumps [ffigen](https://github.com/dart-lang/native/tree/main/pkgs) from 9.0.1 to 10.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dart-lang/native/releases">ffigen's releases</a>.</em></p> <blockquote> <h2>package:ffigen v10.0.0</h2> <ul> <li>Stable release targeting Dart 3.2 using new <code>dart:ffi</code> features available in Dart 3.2 and later.</li> <li>Add support for ObjC Blocks that can be invoked from any thread, using NativeCallable.listener.</li> <li>Fix invalid exceptional return value ObjCBlocks that return floats.</li> <li>Fix return_of_invalid_type analysis error for ObjCBlocks.</li> <li>Fix crash in ObjC methods and blocks that return structs by value.</li> <li>Fix ObjC methods returning instancetype having the wrong type in sublasses.</li> <li>When generating typedefs for <code>Pointer&lt;NativeFunction&lt;Function&gt;&gt;</code>, also generate a typedef for the <code>Function</code>.</li> <li>Use Dart wrapper types in args and returns of ObjCBlocks.</li> <li>Use Dart wrapper types in args and returns of static functions.</li> <li>Renamed <code>asset</code> to <code>assetId</code> for <code>ffi-native</code>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/dart-lang/native/commit/c64e9c87e1979b5a9e0de481f8d2d0ea950882b0"><code>c64e9c8</code></a> [ffigen] Stable release 10.0.0 (<a href="https://github.com/dart-lang/native/tree/main/pkgs/issues/202">#202</a>)</li> <li><a href="https://github.com/dart-lang/native/commit/e3e63406dad60eb4bf1002a26dc84914a12ed6ca"><code>e3e6340</code></a> [ffigen] Update urls after repo merge (<a href="https://github.com/dart-lang/native/tree/main/pkgs/issues/203">#203</a>)</li> <li><a href="https://github.com/dart-lang/native/commit/c0018281dacbb5acc797e3be77e8da197f7f2c68"><code>c001828</code></a> update repo references from the move (<a href="https://github.com/dart-lang/native/tree/main/pkgs/issues/198">#198</a>)</li> <li><a href="https://github.com/dart-lang/native/commit/3634229877cd616155a2bf11cc2bc19ece744490"><code>3634229</code></a> Merge package:ffigen into dart-lang/native</li> <li><a href="https://github.com/dart-lang/native/commit/85e4257b34a37da5b16dffea4f50704ce9510aae"><code>85e4257</code></a> [ffigen] Change ffigen to use dart-lang/native's directory stucture</li> <li><a href="https://github.com/dart-lang/native/commit/1920cc982354598de4ca7421d237f48345aceb28"><code>1920cc9</code></a> [ffigen] Prepare for merge into dart-lang/native (<a href="https://github.com/dart-lang/native/tree/main/pkgs/issues/641">#641</a>)</li> <li><a href="https://github.com/dart-lang/native/commit/eaea725b0939815e7d007a34808a7293b179a2ad"><code>eaea725</code></a> Preserve temp directory when running isolated test on Windows (<a href="https://github.com/dart-lang/native/tree/main/pkgs/issues/192">#192</a>)</li> <li><a href="https://github.com/dart-lang/native/commit/2491826d4d5c91ac60448a8ab1d8ad69c7b6763c"><code>2491826</code></a> [ffigen] ObjC static functions (<a href="https://github.com/dart-lang/native/tree/main/pkgs/issues/633">#633</a>)</li> <li><a href="https://github.com/dart-lang/native/commit/e2d6f4c9eb2a8226ac866562bd331be80d7a3178"><code>e2d6f4c</code></a> [ffigen] Bump actions/checkout from 4.1.0 to 4.1.1 (<a href="https://github.com/dart-lang/native/tree/main/pkgs/issues/636">#636</a>)</li> <li><a href="https://github.com/dart-lang/native/commit/bf2e60ddedd32e2b8125f377a905ffe638bb588f"><code>bf2e60d</code></a> [ffigen] Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (<a href="https://github.com/dart-lang/native/tree/main/pkgs/issues/637">#637</a>)</li> <li>Additional commits viewable in <a href="https://github.com/dart-lang/native/commits/ffigen-v10.0.0/pkgs">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ffigen&package-manager=pub&previous-version=9.0.1&new-version=10.0.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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
ffigen: ^10.0.0
Bump jnigen from 0.6.0 to 0.7.0 in /experimental/pedometer (#2016) Bumps [jnigen](https://github.com/dart-lang/jnigen) from 0.6.0 to 0.7.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dart-lang/jnigen/releases">jnigen's releases</a>.</em></p> <blockquote> <h2>package:jnigen v0.7.0</h2> <ul> <li><strong>Breaking Change</strong> (<a href="https://redirect.github.com/dart-lang/jnigen/issues/387">#387</a>): Added <code>JBuffer</code> and <code>JByteBuffer</code> classes as default classes for <code>java.nio.Buffer</code> and <code>java.nio.ByteBuffer</code> respectively.</li> <li><strong>Breaking Change</strong>: Made the type classes <code>final</code>.</li> <li>Added <code>ignore_for_file: lines_longer_than_80_chars</code> to the generated file preamble.</li> <li>Added an explicit cast in generated <code>&lt;Interface&gt;.implement</code> code to allow <code>dart analyze</code> to pass when <code>strict-casts</code> is set.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/dart-lang/jnigen/commit/4443cebdd31470c613e7ccd6e946b46aec5a57cf"><code>4443ceb</code></a> Add <code>JBuffer</code>, <code>JByteBuffer</code> to enable fast copying to and from <code>Uint8List</code> (...</li> <li><a href="https://github.com/dart-lang/jnigen/commit/7c837763be77d6e2471a3f5a23cc0178752328ed"><code>7c83776</code></a> Add <code>ignore_for_file: lines_longer_than_80_chars</code> to generated files (<a href="https://redirect.github.com/dart-lang/jnigen/issues/386">#386</a>)</li> <li><a href="https://github.com/dart-lang/jnigen/commit/49d4ac04a596a41c098d4bdec06151a4e69448b7"><code>49d4ac0</code></a> Add correct cast to interface method invocation (<a href="https://redirect.github.com/dart-lang/jnigen/issues/385">#385</a>)</li> <li><a href="https://github.com/dart-lang/jnigen/commit/b845ff16108e8d41054a3a637c7afd363e1ef9f6"><code>b845ff1</code></a> Specify JDK min and max version in README (<a href="https://redirect.github.com/dart-lang/jnigen/issues/384">#384</a>)</li> <li><a href="https://github.com/dart-lang/jnigen/commit/ef458e3b011ef0969ab427186a6c85b84b71a368"><code>ef458e3</code></a> jni-0.6.1 fix number of topics (<a href="https://redirect.github.com/dart-lang/jnigen/issues/382">#382</a>)</li> <li><a href="https://github.com/dart-lang/jnigen/commit/eba06738a4fad16c9f147e2f4eaf229c9f818415"><code>eba0673</code></a> Bump actions/checkout from 3.5.3 to 3.6.0 (<a href="https://redirect.github.com/dart-lang/jnigen/issues/381">#381</a>)</li> <li>See full diff in <a href="https://github.com/dart-lang/jnigen/compare/jnigen-v0.6.0...jnigen-v0.7.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=jnigen&package-manager=pub&previous-version=0.6.0&new-version=0.7.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`. --- <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>
1 year ago
jnigen: ^0.7.0
flutter_test:
sdk: flutter
Bump flutter_lints from 2.0.3 to 3.0.0 in /experimental/pedometer (#2061) Bumps [flutter_lints](https://github.com/flutter/packages/tree/main/packages) from 2.0.3 to 3.0.0. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/flutter/packages/commit/3f8a5029fbb4f79f94ade1c937826b434f335469"><code>3f8a502</code></a> [pigeon] Remove support for non-NNBD (<a href="https://github.com/flutter/packages/tree/main/packages/issues/1524">#1524</a>)</li> <li><a href="https://github.com/flutter/packages/commit/4eda7ad208d00283e1de2a65e3e803dfe9bd6d75"><code>4eda7ad</code></a> [pigeon] Fixes bug where Dart <code>FlutterApi</code>s would assert that a nullable argu...</li> <li><a href="https://github.com/flutter/packages/commit/dff39d7b48e098cff055f472d116e662b358f3c0"><code>dff39d7</code></a> [go_router]refactor runtime check to assert (<a href="https://github.com/flutter/packages/tree/main/packages/issues/1362">#1362</a>)</li> <li><a href="https://github.com/flutter/packages/commit/5600590b500ea5be8fea94642439e9c3bc008767"><code>5600590</code></a> [go_router] Export inherited_go_router.dart file (<a href="https://github.com/flutter/packages/tree/main/packages/issues/1145">#1145</a>)</li> <li><a href="https://github.com/flutter/packages/commit/d8bf76e582c3514e7c0533de3085e70bdd847bb8"><code>d8bf76e</code></a> [flutter_markdown] Remove build status from <code>README.md</code> (<a href="https://github.com/flutter/packages/tree/main/packages/issues/1326">#1326</a>)</li> <li><a href="https://github.com/flutter/packages/commit/bc223c127202bce429901c1070247f7bb93abe9d"><code>bc223c1</code></a> Remove checked in binaries from flutter/packages. (<a href="https://github.com/flutter/packages/tree/main/packages/issues/1338">#1338</a>)</li> <li><a href="https://github.com/flutter/packages/commit/aff9cccafbe47913f1473e47b902585dc3079a8b"><code>aff9ccc</code></a> [rfw] Run tests for package:rfw on stable as well. (<a href="https://github.com/flutter/packages/tree/main/packages/issues/888">#888</a>)</li> <li><a href="https://github.com/flutter/packages/commit/84a2e796d7e5bbe8684cfaf4df0b0aeefab18042"><code>84a2e79</code></a> [Pigeon] Make the generated Java Builder class final (<a href="https://github.com/flutter/packages/tree/main/packages/issues/1247">#1247</a>)</li> <li><a href="https://github.com/flutter/packages/commit/a9d6bf14ba011c8389dc2e8db713ae245a7c7293"><code>a9d6bf1</code></a> [go_router] improve coverage (<a href="https://github.com/flutter/packages/tree/main/packages/issues/977">#977</a>)</li> <li><a href="https://github.com/flutter/packages/commit/202fb329c970baf647547594cb3d18fa85fcdc68"><code>202fb32</code></a> [flutter_lints] version 2.0 (<a href="https://github.com/flutter/packages/tree/main/packages/issues/1165">#1165</a>)</li> <li>Additional commits viewable in <a href="https://github.com/flutter/packages/commits/pigeon-v3.0.0/packages">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=flutter_lints&package-manager=pub&previous-version=2.0.3&new-version=3.0.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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Brett Morgan <brettmorgan@google.com>
1 year ago
flutter_lints: ^3.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter:
# This section identifies this Flutter project as a plugin project.
# The 'pluginClass' specifies the class (in Java, Kotlin, Swift, Objective-C, etc.)
# which should be registered in the plugin registry. This is required for
# using method channels.
# The Android 'package' specifies package in which the registered class is.
# This is required for using method channels on Android.
# The 'ffiPlugin' specifies that native code should be built and bundled.
# This is required for using `dart:ffi`.
# All these are used by the tooling to maintain consistency when
# adding or updating assets for this project.
#
# Please refer to README.md for a detailed explanation.
plugin:
platforms:
ios:
ffiPlugin: true
android:
ffiPlugin: true
# To add assets to your plugin package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
#
# For details regarding assets in packages, see
# https://flutter.dev/assets-and-images/#from-packages
#
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
# To add custom fonts to your plugin package, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts in packages, see
# https://flutter.dev/custom-fonts/#from-packages