build
Build Canvas Android apps (Student, Teacher, Parent) using Gradle. Use when user mentions building, compiling, assembling, or making the app. Provides commands for dev, qa, and prod build variants.
When & Why to Use This Skill
This Claude skill automates the build and assembly process for the Canvas Android ecosystem, covering Student, Teacher, and Parent applications. By leveraging Gradle, it provides a streamlined interface for compiling various build variants—including dev, qa, and prod—ensuring consistent and efficient development workflows, environment switching, and artifact generation.
Use Cases
- Rapid Local Development: Quickly assembling specific app modules like the Student or Teacher app with dev-debug configurations to speed up the iterative coding process.
- QA and Testing Readiness: Generating specialized QA build variants (e.g., qaDebug) to provide testers with the appropriate environment settings and debugging capabilities.
- Automated Build Management: Using the 'assembleAllApps' command to build the entire suite of Canvas applications simultaneously, ensuring cross-app compatibility.
- Build Environment Optimization: Performing clean builds to clear cached artifacts and resolve compilation errors, maintaining a healthy and reliable build pipeline.
| name | build |
|---|---|
| description | Build Canvas Android apps (Student, Teacher, Parent) using Gradle. Use when user mentions building, compiling, assembling, or making the app. Provides commands for dev, qa, and prod build variants. |
Build Canvas Android Apps
Build the Canvas Android apps (Student, Teacher, Parent) using Gradle.
Build Location
All build commands must be run from the repository root (canvas-android/), not the apps/ directory.
Build Commands
Build Individual Apps
Build a specific app in the dev debug variant:
# Build Student app
./gradle/gradlew -p apps :student:assembleDevDebug
# Build Teacher app
./gradle/gradlew -p apps :teacher:assembleDevDebug
# Build Parent app
./gradle/gradlew -p apps :parent:assembleDevDebug
Build All Apps
Build all three apps at once:
./gradle/gradlew -p apps assembleAllApps
Clean Build
Remove build artifacts before building:
./gradle/gradlew -p apps clean
Build Variants
- Flavors:
dev,qa,prod - Types:
debug,debugMinify,release - Common variants:
devDebug- for developmentqaDebug- for testing
Examples
Build Teacher app for QA testing:
./gradle/gradlew -p apps :teacher:assembleQaDebug
Clean and rebuild Student app:
./gradle/gradlew -p apps clean :student:assembleDevDebug