Skip to content

Commit

Permalink
[ADD/#264] key store release version
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Sep 27, 2024
1 parent b607c5d commit 733f053
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
23 changes: 19 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
import java.util.Properties

plugins {
alias(libs.plugins.android.application)
Expand All @@ -8,7 +9,20 @@ plugins {
alias(libs.plugins.ksp)
}

val properties = Properties().apply {
load(rootProject.file("local.properties").inputStream())
}

android {
signingConfigs {
create("release") {
keyAlias = properties.getProperty("release.keyAlias")
keyPassword = properties.getProperty("release.keyPassword")
storeFile = file(properties.getProperty("release.storeFile") + "/terning/terning.jks")
storePassword = properties.getProperty("release.storePassword")
}
}

namespace = "com.terning.point"
compileSdk = libs.versions.compileSdk.get().toInt()

Expand All @@ -27,31 +41,32 @@ android {
buildConfigField(
"String",
"NATIVE_APP_KEY",
gradleLocalProperties(rootDir, providers).getProperty("native.app.key"),
properties.getProperty("native.app.key"),
)
manifestPlaceholders["NATIVE_APP_KEY"] =
gradleLocalProperties(rootDir, providers).getProperty("nativeAppKey")
properties.getProperty("nativeAppKey")
}

buildTypes {
debug {
buildConfigField(
"String",
"BASE_URL",
gradleLocalProperties(rootDir, providers).getProperty("test.base.url")
properties.getProperty("test.base.url")
)
}
release {
buildConfigField(
"String",
"BASE_URL",
gradleLocalProperties(rootDir, providers).getProperty("base.url")
properties.getProperty("base.url")
)
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
signingConfig = signingConfigs.getByName("release")
}
}
compileOptions {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ kotlinCompilerExtensionVersion = "1.5.0"
jvmTarget = "1.8"

## Android gradle plugin
androidGradlePlugin = "8.5.0"
androidGradlePlugin = "8.6.0"
androidDesugarJdkLibs = "2.0.4"

## AndroidX
Expand Down

0 comments on commit 733f053

Please sign in to comment.