Files
PIKKIE/android/app/build.gradle.kts
T
juli 24c7008d42 PIKKIE 1.4.1: code changes with a lower threshold, safer review, better MCP
Lower threshold
- Only the code is required: the title is optional and named after the
  bullet or file. Paste a fix right on a bullet (web), drop or load
  several files, and optionally say where it goes and what it replaces.
- A "patch" that is not a diff is kept as a snippet; the same code sent
  twice returns the existing change.

MCP
- submit_change works with just `code` (+ fixes, path, replaces, note).
- get_change_bundle returns review warnings, the steps to land the
  batch and short-lived download links for the mbox and code sheet.
- review_changes records the version a batch landed in.
- Prompts: fix_bullet and land_code_changes.

Review safety
- Encoded or multipart format-patch messages are refused and only
  From/Date/Subject headers reach git am.
- Warnings for invisible/text-direction characters (shown spelled out),
  build/CI/script files, binaries, symlinks and executable bits.
- The code sheet and MCP results mark contributor content as untrusted;
  descriptions are quoted.
- Commit author e-mails are only shown to admins and the submitter.
- Code counts against the upload budget; 30 waiting changes per tester.

Fixes
- Revising no longer drops a snippet's note; archived-project fallback;
  no literal invisible characters in the source.
- Android: one-line Bullets header, discard confirmation in the submit
  form, wrapping stats row.
2026-11-11 14:42:35 +01:00

84 lines
3.2 KiB
Kotlin

plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("org.jetbrains.kotlin.plugin.compose")
}
android {
namespace = "nl.pikkie.app"
compileSdk = 35
defaultConfig {
applicationId = "nl.pikkie.app"
minSdk = 26
targetSdk = 35
versionCode = 12
versionName = "1.4.1"
}
signingConfigs {
// Set PIKKIE_KEYSTORE / PIKKIE_KEYSTORE_PASSWORD / PIKKIE_KEY_ALIAS / PIKKIE_KEY_PASSWORD to sign release builds.
create("release") {
val ks = System.getenv("PIKKIE_KEYSTORE")
if (ks != null) {
storeFile = file(ks)
storePassword = System.getenv("PIKKIE_KEYSTORE_PASSWORD")
keyAlias = System.getenv("PIKKIE_KEY_ALIAS")
keyPassword = System.getenv("PIKKIE_KEY_PASSWORD")
}
}
}
buildTypes {
// Debug builds install NEXT TO the real app (own package, own login), so testing never touches a real account.
debug {
applicationIdSuffix = ".dev"
versionNameSuffix = "-dev"
}
release {
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
if (System.getenv("PIKKIE_KEYSTORE") != null) signingConfig = signingConfigs.getByName("release")
// `./gradlew assembleRelease -PdevRelease`: the real, minified release code as the side-by-side dev app,
// signed with the debug key, to test release-only behaviour without touching a real install
if (project.hasProperty("devRelease")) {
applicationIdSuffix = ".dev"
versionNameSuffix = "-devrelease"
signingConfig = signingConfigs.getByName("debug")
}
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions { jvmTarget = "17" }
buildFeatures {
compose = true
buildConfig = true
}
}
dependencies {
val composeBom = platform("androidx.compose:compose-bom:2024.10.01")
implementation(composeBom)
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.material3:material3")
implementation("androidx.compose.material:material-icons-extended")
implementation("androidx.compose.ui:ui-tooling-preview")
debugImplementation("androidx.compose.ui:ui-tooling")
implementation("androidx.activity:activity-compose:1.9.3")
implementation("androidx.navigation:navigation-compose:2.8.4")
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.7")
implementation("androidx.core:core-ktx:1.15.0")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
// QR scanning without Google Play services
val camerax = "1.4.0"
implementation("androidx.camera:camera-camera2:$camerax")
implementation("androidx.camera:camera-lifecycle:$camerax")
implementation("androidx.camera:camera-view:$camerax")
implementation("com.google.zxing:core:3.5.3")
implementation("androidx.work:work-runtime-ktx:2.10.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
}