Initial public release 1.0.0
Android / build (push) Canceled after 0s

This commit is contained in:
Oshicue committed 2026-11-14 11:47:44 +08:00
commit 8b89b80019
56 files changed
+5876

No files matched your search

+75
View File
@@ -0,0 +1,75 @@
import java.util.Properties
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.plugin.compose")
id("org.jetbrains.kotlin.plugin.serialization")
}
// Release signing lives in an untracked keystore.properties, so the keystore and its
// passwords never reach version control. Without the file the release APK is built unsigned.
val keystoreProperties = Properties().apply {
val file = rootProject.file("keystore.properties")
if (file.exists()) file.inputStream().use { load(it) }
}
android {
namespace = "com.oshicue.lineup"
compileSdk = 37
defaultConfig {
applicationId = "com.oshicue.lineup"
minSdk = 26
targetSdk = 37
versionCode = 1
versionName = "1.0.0"
}
signingConfigs {
if (keystoreProperties.isNotEmpty()) {
create("release") {
storeFile = rootProject.file(keystoreProperties.getProperty("storeFile"))
storePassword = keystoreProperties.getProperty("storePassword")
keyAlias = keystoreProperties.getProperty("keyAlias")
keyPassword = keystoreProperties.getProperty("keyPassword")
}
}
}
buildTypes {
release {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
if (keystoreProperties.isNotEmpty()) signingConfig = signingConfigs.getByName("release")
}
}
buildFeatures {
compose = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
testOptions {
unitTests.isReturnDefaultValues = true
}
}
dependencies {
implementation(platform("androidx.compose:compose-bom:2026.09.00"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-tooling-preview")
implementation("androidx.compose.material3:material3")
implementation("androidx.compose.material:material-icons-extended")
implementation("androidx.activity:activity-compose:1.13.0")
implementation("androidx.core:core-ktx:1.19.1")
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.9.4")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.9.4")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.11.0")
testImplementation("junit:junit:4.13.2")
debugImplementation("androidx.compose.ui:ui-tooling")
}