-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
87 lines (72 loc) · 2.43 KB
/
melos.yaml
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
82
83
84
85
86
87
name: cs_monero
repository: https://github.com/cypherstack/cs_monero
packages:
- "compat"
- "cs_monero"
- "cs_monero_flutter_libs"
- "cs_monero_flutter_libs_android"
- "cs_monero_flutter_libs_android_x86_64"
- "cs_monero_flutter_libs_android_arm64_v8a"
- "cs_monero_flutter_libs_android_armeabi_v7a"
- "cs_monero_flutter_libs_ios"
- "cs_monero_flutter_libs_linux"
- "cs_monero_flutter_libs_macos"
- "cs_monero_flutter_libs_platform_interface"
- "cs_monero_flutter_libs_windows"
- "example_app"
command:
version:
# Generates a link to a prefilled GitHub release creation page.
releaseUrl: true
bootstrap:
environment:
sdk: ">=3.5.3 <4.0.0"
flutter: ">=3.24.0"
dependencies:
ffi: ^2.1.0
logger: ^2.4.0
meta: ^1.15.0
plugin_platform_interface: ^2.0.2
dev_dependencies:
lints: ^4.0.0
test: ^1.24.0
ffigen: ^14.0.0
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
scripts:
prepareMoneroC:
run: dart tools/dart/bin/prepare_monero_c.dart
description: Clone and prepare the monero_c source. The melos build:* will do this if required.
build:android:
run: dart tools/dart/bin/build_libs.dart android
description: Build the android monero_c libraries
build:ios:
run: dart tools/dart/bin/build_libs.dart ios
description: Build the android monero_c libraries
build:macos:
run: dart tools/dart/bin/build_libs.dart macos
description: Build the android monero_c libraries
build:linux:
run: dart tools/dart/bin/build_libs.dart linux
description: Build the android monero_c libraries
build:windows:
run: dart tools/dart/bin/build_libs.dart windows
description: Build the android monero_c libraries
copyLibs:
run: dart tools/dart/bin/copy_libs.dart
description: Copy monero_c libraries to their respective package locations
genFFI:
run: dart tools/dart/bin/gen_ffi.dart
description: Generate the monero_c dart FFI bindings
example:
run: melos exec --scope=example_app -- flutter run
description: Run the example app
test:
run: melos exec --dir-exists=test -c 1 -- flutter test
description: Run tests for all packages
coverage:
steps:
- melos exec --dir-exists=test -c 1 -- flutter test --coverage
- melos exec --dir-exists=test -c 1 -- genhtml coverage/lcov.info --output-directory=coverage/
description: Generate coverage for the selected package.