Files
Matewave/app/build.gradle.kts
T
kalarinaandClaude Opus 5.5 1b7550061d Normalize line endings and drop VCS info from release APKs
.gitattributes stores and checks out all text files with LF, so a
Windows clone no longer turns assets/openings/*.tsv into CRLF and
release APKs built on Windows match F-Droid's Linux build. Batch
files keep CRLF so gradlew.bat still runs under cmd.

vcsInfo.include = false stops AGP from writing the git revision
into META-INF, so builds from a zip and from a git clone match.
Takes effect from the next release; v1.0.43 is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K8GS1YNyjzkkhpGz368nGD
2026-10-10 14:04:04 +00:00

83 lines
2.0 KiB
Kotlin

plugins {
id("com.android.application")
id("org.jetbrains.kotlin.plugin.compose")
}
android {
namespace = "cc.skysparkle.matewave"
compileSdk = 37
defaultConfig {
applicationId = "cc.skysparkle.matewave"
minSdk = 26
targetSdk = 36
versionCode = 1
versionName = "1.0.43"
}
buildTypes {
release {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
// Keeps release builds reproducible (F-Droid).
vcsInfo.include = false
}
}
buildFeatures {
compose = true
}
testOptions {
unitTests.isReturnDefaultValues = true
}
// F-Droid rejects the Google-encrypted dependency metadata block in APKs.
dependenciesInfo {
includeInApk = false
includeInBundle = true
}
packaging {
jniLibs {
keepDebugSymbols += "**/libandroidx.graphics.path.so"
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
compilerOptions {
freeCompilerArgs.add("-opt-in=androidx.compose.material3.ExperimentalMaterial3Api")
}
}
}
dependencies {
implementation(platform("androidx.compose:compose-bom:2026.09.00"))
implementation("androidx.compose.material3:material3")
implementation("androidx.compose.ui:ui")
implementation("androidx.activity:activity-compose:1.13.0")
implementation("androidx.core:core-ktx:1.18.0")
implementation("androidx.navigation:navigation-compose:2.9.7")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.11.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.11.0")
implementation("com.google.zxing:core:3.5.4")
testImplementation("junit:junit:4.13.2")
testImplementation("org.json:json:20240303")
}