Update CLAUDE.md with release build and secrets setup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ltadeu6 2026-05-25 17:06:52 -03:00
parent e4e960024d
commit 1d99440b01
No known key found for this signature in database
GPG key ID: FB9FDAB6B6F3418D

View file

@ -8,11 +8,11 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
# First-time setup: generate the Gradle wrapper (requires Gradle installed) # First-time setup: generate the Gradle wrapper (requires Gradle installed)
gradle wrapper --gradle-version 8.9 gradle wrapper --gradle-version 8.9
# Build debug APK # Build debug APK (inside nix dev shell)
./gradlew assembleDebug nix develop --command gradle --no-daemon assembleDebug
# Build release APK # Build release APK — requires android-signing-env (sets signing vars + PUSH_GATEWAY_URL)
./gradlew assembleRelease android-signing-env nix develop --command gradle --no-daemon assembleRelease
# Install on connected device/emulator # Install on connected device/emulator
./gradlew installDebug ./gradlew installDebug
@ -24,6 +24,20 @@ gradle wrapper --gradle-version 8.9
./gradlew clean ./gradlew clean
``` ```
### Secrets setup (required before release build)
```bash
# Creates symlinks for google-services.json, firebase-service-account.json, .mc/credentials.json
# Only needed once per boot (symlinks point into /run/agenix which is tmpfs)
matrix-android-secrets /home/ltadeu6/Projetos/Codigo/matrix-android
```
### Deploy Cloudflare Worker (push gateway)
```bash
cloudflare-worker-env nix develop --command wrangler deploy --config gateway/wrangler.toml
```
The project has no unit tests yet. Android Studio is the recommended way to open, sync, and run the project. The project has no unit tests yet. Android Studio is the recommended way to open, sync, and run the project.
## Architecture ## Architecture