Refactor flutter to support Android (#1072)
This commit is contained in:
29
flutter/sherpa_onnx_macos/.gitignore
vendored
Normal file
29
flutter/sherpa_onnx_macos/.gitignore
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# Miscellaneous
|
||||
*.class
|
||||
*.log
|
||||
*.pyc
|
||||
*.swp
|
||||
.DS_Store
|
||||
.atom/
|
||||
.buildlog/
|
||||
.history
|
||||
.svn/
|
||||
migrate_working_dir/
|
||||
|
||||
# IntelliJ related
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
.idea/
|
||||
|
||||
# The .vscode folder contains launch configuration and tasks you configure in
|
||||
# VS Code which you may wish to be included in version control, so this line
|
||||
# is commented out by default.
|
||||
#.vscode/
|
||||
|
||||
# Flutter/Dart/Pub related
|
||||
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
|
||||
/pubspec.lock
|
||||
**/doc/api/
|
||||
.dart_tool/
|
||||
build/
|
||||
30
flutter/sherpa_onnx_macos/.metadata
Normal file
30
flutter/sherpa_onnx_macos/.metadata
Normal file
@@ -0,0 +1,30 @@
|
||||
# This file tracks properties of this Flutter project.
|
||||
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
||||
#
|
||||
# This file should be version controlled and should not be manually edited.
|
||||
|
||||
version:
|
||||
revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1"
|
||||
channel: "stable"
|
||||
|
||||
project_type: plugin_ffi
|
||||
|
||||
# Tracks metadata for the flutter migrate command
|
||||
migration:
|
||||
platforms:
|
||||
- platform: root
|
||||
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
|
||||
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
|
||||
- platform: macos
|
||||
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
|
||||
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
|
||||
|
||||
# User provided section
|
||||
|
||||
# List of Local paths (relative to this file) that should be
|
||||
# ignored by the migrate tool.
|
||||
#
|
||||
# Files that are not part of the templates will be ignored by default.
|
||||
unmanaged_files:
|
||||
- 'lib/main.dart'
|
||||
- 'ios/Runner.xcodeproj/project.pbxproj'
|
||||
7
flutter/sherpa_onnx_macos/README.md
Normal file
7
flutter/sherpa_onnx_macos/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# sherpa_onnx_linux
|
||||
|
||||
This is a sub project of [sherpa-onnx](https://github.com/k2-fsa/sherpa-onnx).
|
||||
|
||||
You are not expected to use this package directly.
|
||||
|
||||
Please see the entry point at <https://pub.dev/packages/sherpa_onnx>.
|
||||
4
flutter/sherpa_onnx_macos/analysis_options.yaml
Normal file
4
flutter/sherpa_onnx_macos/analysis_options.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
include: package:flutter_lints/flutter.yaml
|
||||
|
||||
# Additional information about this file can be found at
|
||||
# https://dart.dev/guides/language/analysis-options
|
||||
9
flutter/sherpa_onnx_macos/example/README.md
Normal file
9
flutter/sherpa_onnx_macos/example/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Introduction
|
||||
|
||||
Please find examples at
|
||||
|
||||
https://github.com/k2-fsa/sherpa-onnx/tree/master/flutter-examples
|
||||
|
||||
and
|
||||
|
||||
https://github.com/k2-fsa/sherpa-onnx/tree/master/dart-api-examples
|
||||
18
flutter/sherpa_onnx_macos/example/example.md
Normal file
18
flutter/sherpa_onnx_macos/example/example.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# sherpa-onnx app example
|
||||
|
||||
## Streaming speech recognition
|
||||
|
||||
Please see https://github.com/k2-fsa/sherpa-onnx/tree/master/dart-api-examples/streaming-asr
|
||||
|
||||
## Non-streaming speech recognition
|
||||
|
||||
Please see https://github.com/k2-fsa/sherpa-onnx/tree/master/dart-api-examples/non-streaming-asr
|
||||
|
||||
## Text to speech (TTS)
|
||||
|
||||
Please see https://github.com/k2-fsa/sherpa-onnx/tree/master/dart-api-examples/tts
|
||||
|
||||
## Voice activity detection (VAD)
|
||||
|
||||
Please see https://github.com/k2-fsa/sherpa-onnx/tree/master/dart-api-examples/vad
|
||||
|
||||
0
flutter/sherpa_onnx_macos/lib/.gitkeep
Normal file
0
flutter/sherpa_onnx_macos/lib/.gitkeep
Normal file
5
flutter/sherpa_onnx_macos/macos/README.md
Normal file
5
flutter/sherpa_onnx_macos/macos/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Introduction
|
||||
|
||||
`*.dylib` files are generated dynamically using GitHub actions during a new release.
|
||||
|
||||
We don't check-in pre-built library files into git.
|
||||
27
flutter/sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec
Normal file
27
flutter/sherpa_onnx_macos/macos/sherpa_onnx_macos.podspec
Normal file
@@ -0,0 +1,27 @@
|
||||
#
|
||||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
|
||||
# Run `pod lib lint sherpa_onnx_macos.podspec` to validate before publishing.
|
||||
#
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'sherpa_onnx_macos'
|
||||
s.version = '1.10.6'
|
||||
s.summary = 'sherpa-onnx Flutter FFI plugin project.'
|
||||
s.description = <<-DESC
|
||||
sherpa-onnx Flutter FFI plugin project.
|
||||
DESC
|
||||
s.homepage = 'https://github.com/k2-fsa/sherpa-onnx'
|
||||
s.license = { :file => '../LICENSE' }
|
||||
s.author = { 'Fangjun Kuang' => 'csukuangfj@gmail.com' }
|
||||
|
||||
# This will ensure the source files in Classes/ are included in the native
|
||||
# builds of apps using this FFI plugin. Podspec does not support relative
|
||||
# paths, so Classes contains a forwarder C file that relatively imports
|
||||
# `../src/*` so that the C sources can be shared among all target platforms.
|
||||
s.source = { :path => '.' }
|
||||
s.dependency 'FlutterMacOS'
|
||||
s.vendored_libraries = '*.dylib'
|
||||
|
||||
s.platform = :osx, '10.11'
|
||||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
|
||||
s.swift_version = '5.0'
|
||||
end
|
||||
18
flutter/sherpa_onnx_macos/pubspec.yaml
Normal file
18
flutter/sherpa_onnx_macos/pubspec.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
name: sherpa_onnx_macos
|
||||
description: "A new Flutter FFI plugin project."
|
||||
version: 0.0.1
|
||||
homepage:
|
||||
|
||||
environment:
|
||||
sdk: '>=3.4.0 <4.0.0'
|
||||
flutter: '>=3.3.0'
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
flutter:
|
||||
plugin:
|
||||
platforms:
|
||||
macos:
|
||||
ffiPlugin: true
|
||||
Reference in New Issue
Block a user