snapshot of https://github.com/flutter/samples.git (main, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Main Branch CI / Test Flutter beta on ubuntu-latest (push) Has been skipped
Main Branch CI / Test Flutter stable on ubuntu-latest (push) Has been skipped
Main Branch CI / Test Flutter beta on macos-latest (push) Has been cancelled
Main Branch CI / Test Flutter stable on macos-latest (push) Has been cancelled
Some checks failed
Main Branch CI / Test Flutter beta on ubuntu-latest (push) Has been skipped
Main Branch CI / Test Flutter stable on ubuntu-latest (push) Has been skipped
Main Branch CI / Test Flutter beta on macos-latest (push) Has been cancelled
Main Branch CI / Test Flutter stable on macos-latest (push) Has been cancelled
This commit is contained in:
24
pedometer/ffigen.yaml
Normal file
24
pedometer/ffigen.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
# Run with `dart run ffigen --config ffigen.yaml`.
|
||||
name: PedometerBindings
|
||||
description: "Bindings for CM pedometers"
|
||||
language: objc
|
||||
output: "lib/pedometer_bindings_generated.dart"
|
||||
compiler-opts:
|
||||
- "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks"
|
||||
- "-mios-version-min=13.0"
|
||||
exclude-all-by-default: true
|
||||
functions:
|
||||
include:
|
||||
- "wrapCallback"
|
||||
objc-interfaces:
|
||||
include:
|
||||
- "CMPedometer"
|
||||
- "NSDate"
|
||||
- "NSDateFormatter"
|
||||
headers:
|
||||
entry-points:
|
||||
- "src/pedometerHelper.h"
|
||||
|
||||
# To use this API, you must include the NSMotionUsageDescription key in your app’s Info.plist file
|
||||
# and provide a usage description string for this key.
|
||||
# The usage description appears in the prompt that the user must accept the first time the system asks the user to access motion data for your app.
|
||||
Reference in New Issue
Block a user