Files
capod/.claude/rules/build-commands.md
T
darken 4e279ca44d chore: Restructure Claude Code config into modular rules
Migrate monolithic root CLAUDE.md into .claude/rules/ structure
with focused topic files and glob-based contextual loading.
Clean up leftover helper scripts in .claude/tmp/.
2026-02-07 19:31:28 +01:00

1.3 KiB

description, globs
description globs
Build, test, lint, and release commands for Gradle
**/*.gradle.kts
**/*.gradle
gradle/**

Build Commands

Build

# Build debug version
./gradlew assembleDebug

# Build all variants (FOSS and Google Play flavors)
./gradlew assemble

# Build specific flavor and type
./gradlew assembleFossDebug
./gradlew assembleGplayRelease

# Build app bundles for Play Store
./gradlew bundleGplayRelease

Testing

# Run all unit tests
./gradlew test

# Run unit tests for specific variant
./gradlew testFossDebugUnitTest

# Run instrumentation tests (requires connected device/emulator)
./gradlew connectedAndroidTest
./gradlew connectedFossDebugAndroidTest

# Run all checks (lint + tests)
./gradlew check

Code Quality

# Run lint for all variants
./gradlew lint

# Run lint for specific variant
./gradlew lintFossDebug

# Auto-fix lint issues where possible
./gradlew lintFix

# Update lint baseline
./gradlew updateLintBaseline

Release

./gradlew assembleFossRelease assembleGplayRelease

Notes

  • Use assembleFossDebug as the default quick-check build (fastest variant)
  • Run ./gradlew check before submitting changes to catch lint and test issues
  • Instrumentation tests require a connected device or running emulator