Files
tern-android/app/build.gradle.kts
T
Mateusz PstruchaandClaude Opus 5 6d63d92766 Initial Android app scaffold
Compose + Material 3 with dynamic color and the branding palette as
static fallback, edge-to-edge drawing, SplashScreen API, and predictive
back. Adaptive launcher icon includes a monochrome variant for themed
icons; the mark itself is a placeholder pending icon design.

No Play Services or Firebase anywhere in the dependency tree, verified
against the resolved runtime classpath.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 19:01:07 +02:00

76 lines
2.4 KiB
Kotlin

plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("org.jetbrains.kotlin.plugin.compose")
}
android {
namespace = "pl.mtps.tern"
compileSdk = 35
defaultConfig {
applicationId = "pl.mtps.tern"
// GrapheneOS/modern-Pixel-only target (android-client-spec.md §1) —
// no need to support old platform versions for a from-scratch app.
minSdk = 29
targetSdk = 35
versionCode = 1
versionName = "0.1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
buildFeatures {
compose = true
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
}
dependencies {
implementation(platform("androidx.compose:compose-bom:2024.10.01"))
implementation("androidx.core:core-ktx:1.13.1")
implementation("androidx.core:core-splashscreen:1.0.1") // Android 12+ SplashScreen API (§6)
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
implementation("androidx.activity:activity-compose:1.9.3")
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview")
implementation("androidx.compose.material3:material3")
implementation("androidx.compose.material3.adaptive:adaptive:1.0.0")
implementation("androidx.compose.material3.adaptive:adaptive-layout:1.0.0")
implementation("androidx.compose.material3.adaptive:adaptive-navigation:1.0.0")
implementation("androidx.compose.material:material-icons-core")
debugImplementation("androidx.compose.ui:ui-tooling")
debugImplementation("androidx.compose.ui:ui-test-manifest")
testImplementation("junit:junit:4.13.2")
androidTestImplementation(platform("androidx.compose:compose-bom:2024.10.01"))
androidTestImplementation("androidx.test.ext:junit:1.2.1")
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
}