Urgent UI polish patch on top of v0.3.0.0.
EDITOR (NoteEditorScreen.kt)
- Drop the '+ add' chip from the hashtag row. The '#' icon in the
top bar is now the only way to add tags.
- Move the hashtag chip row to the bottom of the editor. The text
field now uses weight(1f) instead of fillMaxSize() so the row stays
visible below it.
- Hide the chip row entirely when the note has no hashtags (no 'No
tags' placeholder).
- Centre the colour picker horizontally. Switched from a left-aligned
LazyRow to a plain Row with Arrangement.spacedBy(12.dp,
Alignment.CenterHorizontally).
LIST CARDS (NoteListScreen.kt)
- Replace the small 10 dp colour circle chip (next to the star) with
a 'dog-ear' colour accent overlaid on the top-right corner of the
card (a 28 dp right-triangle filled with the note's colour).
- Add a hashtag row to each card. Shows up to three tags as a
FlowRow of label-styled text; an '+N' indicator appears when
there are more than three. Hidden when the note has no tags.
- Wrap the Card in a Box so the dog-ear can be aligned to
Alignment.TopEnd.
VERSION + DOCS
- app/build.gradle.kts: versionCode 5 → 6, versionName '0.3.0.0' →
'0.3.0.1'. The MAJOR.MINOR.MAINTENANCE.EMERGENCY scheme validator
remains in place.
- README.md changelog: new 0.3.0.1 row.
- Incido Development Plan.txt §10: new 0.3.0.1 row.
VERIFIED
- ./gradlew assembleDebug assembleRelease both green.
- Debug 25.7 MB, release 19.8 MB.
- versionCode=6, versionName='0.3.0.1'.
- No INTERNET permission in either APK.
- Release signed (v2 scheme).
107 lines
3.0 KiB
Kotlin
107 lines
3.0 KiB
Kotlin
// :app — Android application entry point. Hosts MainActivity and the
|
|
// application manifest, including the launcher icon and theme.
|
|
//
|
|
// Version scheme (v0.3.0.0 onwards):
|
|
// versionName = "MAJOR.MINOR.MAINTENANCE.EMERGENCY"
|
|
// - MAJOR: large breaking redesigns (rare in v0.x)
|
|
// - MINOR: normal feature releases
|
|
// - MAINTENANCE: bug fixes / refactors on a given MINOR
|
|
// - EMERGENCY: 0 in normal releases; non-zero only for hotfixes
|
|
// shipped out-of-band (e.g. v0.2.0.1 — search-icon fix)
|
|
// versionCode: monotonic int. Always +1 per release.
|
|
//
|
|
// The validator below fails the build if versionName doesn't match the
|
|
// required dotted format, so we can't regress the scheme by accident.
|
|
import java.util.Properties
|
|
|
|
plugins {
|
|
alias(libs.plugins.androidApplication)
|
|
alias(libs.plugins.kotlinAndroid)
|
|
alias(libs.plugins.kotlinCompose)
|
|
}
|
|
|
|
android {
|
|
namespace = "org.incido.app"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "org.incido.app"
|
|
minSdk = 26
|
|
targetSdk = 35
|
|
versionCode = 6
|
|
versionName = "0.3.0.1"
|
|
}
|
|
|
|
// --- Signing ---
|
|
signingConfigs {
|
|
create("release") {
|
|
val keystoreFilePath = rootProject.file("keystore/release.jks")
|
|
if (keystoreFilePath.exists()) {
|
|
storeFile = keystoreFilePath
|
|
storePassword = "incido_dev_keystore"
|
|
keyAlias = "incido"
|
|
keyPassword = "incido_dev_keystore"
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
isMinifyEnabled = false
|
|
}
|
|
release {
|
|
isMinifyEnabled = false // TODO(v0.3.0.0+): enable R8
|
|
signingConfig = signingConfigs.getByName("release")
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
packaging {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":composeApp"))
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.kotlinx.coroutines.android)
|
|
|
|
val composeBom = platform(libs.composeBom)
|
|
implementation(composeBom)
|
|
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(libs.compose.ui)
|
|
implementation(libs.compose.material3)
|
|
}
|
|
|
|
// --- Version-name scheme validator ---
|
|
//
|
|
// MAJOR.MINOR.MAINTENANCE.EMERGENCY — exactly four dotted integers.
|
|
// Fails fast so we can't accidentally publish a "0.3" again.
|
|
val versionScheme = Regex("""^\d+\.\d+\.\d+\.\d+$""")
|
|
|
|
gradle.taskGraph.whenReady {
|
|
val vn = android.defaultConfig.versionName
|
|
if (vn != null && !versionScheme.matches(vn)) {
|
|
throw GradleException(
|
|
"app versionName = \"$vn\" doesn't match the required " +
|
|
"MAJOR.MINOR.MAINTENANCE.EMERGENCY scheme (e.g. 0.3.0.0). " +
|
|
"Update app/build.gradle.kts."
|
|
)
|
|
}
|
|
}
|