Build Cactus for Android.
(args)
| 918 | |
| 919 | |
| 920 | def cmd_build_android(args): |
| 921 | """Build Cactus for Android.""" |
| 922 | print_color(BLUE, "Building Cactus for Android...") |
| 923 | print("=" * 32) |
| 924 | |
| 925 | build_script = PROJECT_ROOT / "android" / "build.sh" |
| 926 | if not build_script.exists(): |
| 927 | print_color(RED, f"Error: build.sh not found at {build_script}") |
| 928 | return 1 |
| 929 | |
| 930 | result = run_command(str(build_script), cwd=PROJECT_ROOT / "android", check=False) |
| 931 | if result.returncode != 0: |
| 932 | print_color(RED, "Android build failed") |
| 933 | return 1 |
| 934 | |
| 935 | print_color(GREEN, "Android build complete!") |
| 936 | return 0 |
| 937 | |
| 938 | |
| 939 | def cmd_build_flutter(args): |
no test coverage detected