Skip to content

Commit

Permalink
[A/FFI] FFI sample
Browse files Browse the repository at this point in the history
  • Loading branch information
AseemWangoo authored Oct 16, 2022
1 parent 04cc3b8 commit 52ed597
Show file tree
Hide file tree
Showing 21 changed files with 73,930 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ffi_2_18/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial version.
21 changes: 21 additions & 0 deletions ffi_2_18/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
A sample command-line application with an entrypoint in `bin/`, library code
in `lib/`, and example unit test in `test/`.

### For creating the app
- dart create ffi_2_18

### For generating bindings
- dart run ffigen --config timezone_config.yaml
- dart run ffigen --config calendar_config.yaml
- dart run ffigen --config url_cache_config.yaml


### For testing the app
- dart run bin/timezones.dart
- dart run bin/audio.dart test.mp3
- dart run bin/url_cache.dart
- dart run bin/calendar.dart


### For running the tests
- dart test test/ffi_2_18_test.dart
31 changes: 31 additions & 0 deletions ffi_2_18/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.

include: package:lints/recommended.yaml

# Uncomment the following section to specify additional rules.

# linter:
# rules:
# - camel_case_types

analyzer:
exclude:
- timezone_bindings.dart
- avf_audio_bindings.dart

# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints

# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
Loading

0 comments on commit 52ed597

Please sign in to comment.