-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpubspec.yaml
More file actions
81 lines (72 loc) · 2.05 KB
/
pubspec.yaml
File metadata and controls
81 lines (72 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: go
description: "A new Flutter plugin project."
publish_to: none
version: 0.0.1
homepage:
environment:
sdk: ^3.5.4
flutter: '>=3.3.0'
dependencies:
flutter:
sdk: flutter
flutter_web_plugins:
sdk: flutter
ffi: ^2.1.3
# 文件路径管理
path_provider: ^2.1.3
# 路径
path: ^1.9.0
web: ^1.1.1
dev_dependencies:
ffigen: ^17.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.
plugin:
platforms:
android:
ffiPlugin: true
ios:
ffiPlugin: true
linux:
ffiPlugin: true
macos:
ffiPlugin: true
windows:
ffiPlugin: true
web:
# pluginClass: WasmPlugin
# fileName: src/wasm_plugin.dart
assets:
- web/libgocoresdk.wasm
- web/plugin.js
- web/wasm_exec.js
# flutter pub run ffigen
ffigen:
output: './lib/src/bindings.dart'
headers:
entry-points:
- './android/src/main/jniLibs/arm64-v8a/libgocoresdk.h'
name: 'EngineLib'
silence-enum-warning: true
preamble: |
// ignore_for_file: always_specify_types
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
// ignore_for_file: unused_field
// ignore_for_file: unused_element
comments:
style: any
length: full
description: 'golang 编写的库文件EngineLib'