Skip to main content

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.

来源信息

仓库
instructure/canvas-android
最近来源活动
2025年11月18日 09:48
检测到的 SKILL.md 语言
英语
星标
154
Forks
116

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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: ```bash # 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: ```bash ./gradle/gradlew -p apps assembleAllApps ``` ### Clean Build Remove build artifacts before building: ```bash ./gradle/gradlew -p apps clean ``` ## Build Variants - **Flavors**: `dev`, `qa`, `prod` - **Types**: `debug`, `debugMinify`, `release` - **Common variants**: - `devDebug` - for development - `qaDebug` - for testing ## Examples Build Teacher app for QA testing: ```bash ./gradle/gradlew -p apps :teacher:assembleQaDebug ``` Clean and rebuild Student app: ```bash ./gradle/gradlew -p apps clean :student:assembleDevDebug ```
在 GitHub 查看