chore: add license and build configs
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import java.util.Properties
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlinMultiplatform)
|
||||
@@ -47,16 +48,31 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
val localProperties = Properties().apply {
|
||||
val file = rootProject.file("local.properties")
|
||||
if (file.exists()) {
|
||||
load(file.inputStream())
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "su.reya.coop"
|
||||
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
||||
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
storeFile = localProperties.getProperty("keystore.path")?.let { file(it) }
|
||||
storePassword = localProperties.getProperty("keystore.password")
|
||||
keyAlias = localProperties.getProperty("key.alias")
|
||||
keyPassword = localProperties.getProperty("key.password")
|
||||
}
|
||||
}
|
||||
defaultConfig {
|
||||
applicationId = "su.reya.coop"
|
||||
minSdk = libs.versions.android.minSdk.get().toInt()
|
||||
targetSdk = libs.versions.android.targetSdk.get().toInt()
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
versionName = "0.1.0"
|
||||
}
|
||||
packaging {
|
||||
resources {
|
||||
@@ -65,7 +81,26 @@ android {
|
||||
}
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = false
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt")
|
||||
)
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
create("beta") {
|
||||
initWith(getByName("release"))
|
||||
applicationIdSuffix = ".beta"
|
||||
versionNameSuffix = "-beta"
|
||||
manifestPlaceholders["appName"] = "Coop Beta"
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
create("alpha") {
|
||||
initWith(getByName("release"))
|
||||
applicationIdSuffix = ".alpha"
|
||||
versionNameSuffix = "-alpha"
|
||||
manifestPlaceholders["appName"] = "Coop Alpha"
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
|
||||
Reference in New Issue
Block a user