1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-04 02:32:25 +00:00

[experimental/pedometer] Use jnigen and jni version from pub instead of git url. (#1655)

This commit is contained in:
Hossein Yousefi
2023-02-20 10:56:12 +01:00
committed by GitHub
parent 3e9bb78aec
commit dd3a024aa8
24 changed files with 98 additions and 5447 deletions

View File

@@ -17,12 +17,10 @@ Configuration for FFIgen is [here](/ffigen.yaml) for the [CoreMotion](https://de
`dart run ffigen --config ffigen.yaml`
### JNIgen
Configuration for JNIgen is [here](/jnigen.yaml) for the [HealthConnect API](https://developer.android.com/guide/health-and-fitness/health-connect). Right now, JNIgen requires an Android folder to generate the bindings so there are a few steps to regenerate:
Configuration for JNIgen is [here](/jnigen.yaml) for the [HealthConnect API](https://developer.android.com/guide/health-and-fitness/health-connect).
1. `flutter create .`
2. `flutter build apk`
3. `dart run jnigen --config jnigen.yaml`
4. delete the android folder
1. `cd Example && flutter build apk`
2. `cd .. && dart run jnigen --config jnigen.yaml`
## Running the example app