mirror of
https://github.com/avinal/nikki.git
synced 2026-07-03 21:40:09 +05:30
d2be80bc7d
Build workflow: runs tests + assembles debug APK on pull requests. Release workflow: builds signed APK and uploads to GitHub release. Signing config reads keystore from env vars (set by CI secrets). Keystore files excluded from git. Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com> Co-Authored-By: Claude Opus 4.6 (1M context)
52 lines
1.3 KiB
Kotlin
52 lines
1.3 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.compose.multiplatform)
|
|
alias(libs.plugins.compose.compiler)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.avinal.memos"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
applicationId = "com.avinal.memos"
|
|
minSdk = 26
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "1.0.0"
|
|
}
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
val path = System.getenv("KEYSTORE_PATH")
|
|
if (path != null) {
|
|
storeFile = file(path)
|
|
storePassword = System.getenv("KEYSTORE_PASSWORD")
|
|
keyAlias = System.getenv("KEY_ALIAS")
|
|
keyPassword = System.getenv("KEY_PASSWORD")
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
signingConfig = signingConfigs.getByName("release")
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":composeApp"))
|
|
implementation(libs.androidx.activity.compose)
|
|
}
|