Add Nix shell and local 16KB-aligned Olm build

This commit is contained in:
ltadeu6 2026-05-16 15:59:41 -03:00
parent 9bc3651341
commit 700289fef9
15 changed files with 499 additions and 51 deletions

View file

@ -65,6 +65,25 @@ gradle wrapper --gradle-version 8.9
The APK is at `app/build/outputs/apk/debug/app-debug.apk`.
### NixOS / CLI build
This repo includes a `flake.nix` dev shell with:
- JDK 17
- Gradle
- Android SDK 35 + Build Tools 35.0.0
Enter the shell and build:
```bash
cd matrix-android
nix develop
gradle wrapper --gradle-version 8.9
./gradlew assembleDebug
```
The shell exports `ANDROID_HOME` / `ANDROID_SDK_ROOT` and rewrites `local.properties` to the Nix SDK path so Gradle uses the packaged Android SDK instead of a user-specific installation.
## Login
### SSO (recommended)