Initial scaffold for LibreMail, a free and open-source (GPL-3.0) Android email client. This increment delivers a buildable, runnable, themed app shell on top of the full architecture skeleton; account sign-in, IMAP/SMTP sync and sending arrive in later increments. - Gradle 9.6 + AGP 9.2 + Kotlin 2.4.0 (AGP built-in Kotlin via the buildscript classpath; KSP, no KAPT); version catalog; minSdk 33, target/compile SDK 37 - Jetpack Compose + Material 3 with Material You dynamic color, light/dark and edge-to-edge; adaptive, themed launcher icon - Navigation across Inbox, Reader, Compose, Settings (with an Advanced Settings group) and Account Setup - Hilt DI, Room cache (entities/DAOs/database), domain models, and a MailRepository as single source of truth with a sample-data fallback - Unit tests (repository + sample data) and a Compose smoke test - GPL-3.0 LICENSE, SPDX headers, README with build and Gmail OAuth setup steps Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
23 lines
1.1 KiB
Kotlin
23 lines
1.1 KiB
Kotlin
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
//
|
|
// AGP 9.x uses "built-in Kotlin"; the legacy org.jetbrains.kotlin.android plugin is
|
|
// incompatible with its new DSL (applying it throws a ClassCastException). Built-in
|
|
// Kotlin compiles with AGP's bundled KGP (2.2.10) unless a newer Kotlin Gradle plugin
|
|
// is placed on the buildscript classpath. To build with Kotlin 2.4.0 we put KGP 2.4.0
|
|
// — plus the matching Compose compiler, KSP and Hilt plugins — on the single buildscript
|
|
// classpath here, and apply them by id in the module build files. Versions mirror
|
|
// gradle/libs.versions.toml (which still supplies all library versions).
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:9.2.0")
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.4.0")
|
|
classpath("org.jetbrains.kotlin:compose-compiler-gradle-plugin:2.4.0")
|
|
classpath("com.google.devtools.ksp:symbol-processing-gradle-plugin:2.3.9")
|
|
classpath("com.google.dagger:hilt-android-gradle-plugin:2.60")
|
|
}
|
|
}
|