Building from Source¶
Build DrawBox locally for development and contributions.
Prerequisites¶
- JDK 11+
- Gradle 8.0+
- Kotlin 1.9.0+
Clone Repository¶
git clone https://github.com/akshay2211/DrawBox.git
cd DrawBox
Build All Modules¶
./gradlew build
Build Specific Modules¶
# Build DrawBox library
./gradlew :DrawBox:build
# Build sample app
./gradlew :shared:build
Run Tests¶
./gradlew test
Format Code¶
./gradlew spotlessApply
Generate Documentation¶
# Dokka API docs
./gradlew dokkaHtml
# View at: DrawBox/build/dokka/html/index.html
Troubleshooting¶
Build fails¶
./gradlew clean build
Gradle sync issues¶
- Invalidate cache in Android Studio (File → Invalidate Caches)
- Delete
.gradlefolder
See Contributing for more details.