Skip to content

Commit

Permalink
TML-12 workflow: update moon dart task
Browse files Browse the repository at this point in the history
  • Loading branch information
harrytran998 committed May 8, 2024
1 parent 82386de commit f77582b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
1 change: 0 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash

echo "\nStart run units test\n"
make test.unit.run
8 changes: 8 additions & 0 deletions .moon/tasks/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ tasks:
command:
- flutter
args: "pub get"
build.ios:
command:
- flutter
args: "build ipa --split-debug-info=./ --obfuscate --verbose"
build.android:
command:
- flutter
args: "build apk --split-per-abi --split-debug-info=./ --obfuscate --verbose"

test:
command:
Expand Down
26 changes: 26 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# You can see detail the tool here
# https://github.com/sagiegurari/cargo-make

extend = [
{ path = "scripts/api.toml" },
{ path = "scripts/generate.toml" },
{ path = "scripts/git.toml" },
{ path = "scripts/migration.toml" },
{ path = "scripts/mobile.toml" },
# { path = "scripts/protobuf.toml" },
# { path = "scripts/docker.toml" },
# { path = "scripts/env.toml" },
{ path = "scripts/tests.toml" },
{ path = "scripts/tool.toml" },
{ path = "scripts/web.toml" },
]

[config]
on_error_task = "catch"

[env]
RUST_LOG = "info"
CARGO_PROFILE = "dev"
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
# CARGO_MAKE_CRATE_FS_NAME = "dart_ffi"
# CARGO_MAKE_CRATE_NAME = "dart-ffi"

0 comments on commit f77582b

Please sign in to comment.