Skip to content

M0: multi-module build foundation - #4

Merged
tobiasKaminsky merged 3 commits into
mainfrom
m0/foundation
Dec 3, 2026
Merged

tobiasKaminsky merged 3 commits into
mainfrom
m0/foundation

Conversation

@tobiasKaminsky

Copy link
Copy Markdown
Member

First M0 PR (SPEC §4.1, §14, STATUS.md M0).

  • build-logic convention plugins: photos.android.application, photos.android.library, photos.android.compose, photos.android.feature, photos.hilt, photos.room, photos.jvm.library, photos.screenshots; namespaces from module paths
  • Version catalog with all versions; includeBuild switch via local.properties (photos.localAndroidLibrary, photos.localAndroidCommon)
  • Hilt application; core/designsystem: Material 3 Expressive (MaterialExpressiveTheme, material3 1.5.0, since BOM 2026.09.00 still pins 1.4 where the Expressive API is internal), colours from the server colour via android-common MaterialSchemes, dynamic colour option
  • core/model (pure Kotlin; ServerVersion with tests), core/testing
  • detekt, Spotless/ktlint, lint, plus unit and Roborazzi screenshot tests (reference images in src/test/screenshots): scripts/analysis/analysis-wrapper.sh runs all of them, so the shared analysis workflow covers them
  • Dependency verification (sha256,pgp, armored keyring)
  • REUSE: license texts for the synced files (GPL-3.0-or-later, MIT, CC0-1.0)

Local: assembleQaDebug, unit + screenshot tests, spotless, detekt, lint all pass with --dependency-verification strict.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Nb4eMg7ShMcjycNqaRBq3z

- build-logic convention plugins (application, library, compose, feature,
  hilt, room, jvm library, screenshots), version catalog, includeBuild
  switch for local android-library / android-common checkouts
- Hilt in the app, Material 3 Expressive theme with the server colour from
  android-common (core/designsystem), core/model, core/testing
- detekt, Spotless (ktlint), lint; real analysis wrapper
- Roborazzi screenshot tests on Robolectric; the analysis wrapper
  runs them together with the static checks
- Gradle dependency verification (sha256 + pgp)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nb4eMg7ShMcjycNqaRBq3z
Signed-off-by: Tobias Kaminsky <tobias@nextcloud.com>
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit 1e0cfcf
Version 4
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

detekt 1.23 knows JVM targets only up to 22 and cannot run on JDK 25, the
default JDK of the shared analysis workflow. GitHub runners also provide
JDK 21, so the wrapper uses that one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nb4eMg7ShMcjycNqaRBq3z
Signed-off-by: Tobias Kaminsky <tobias@nextcloud.com>
The shared workflows run Gradle on JDK 25, where detekt 1.23 cannot run.
gradle/gradle-daemon-jvm.properties pins the daemon to JDK 21; the foojay
resolver downloads it where it is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nb4eMg7ShMcjycNqaRBq3z
Signed-off-by: Tobias Kaminsky <tobias@nextcloud.com>
@tobiasKaminsky
tobiasKaminsky merged commit ac92087 into main Dec 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant