feat(android): 릴리즈 서명 설정 추가
- keystore 파일 추가 (doc/key/askiineverdie.jks) - key.properties 설정 파일 추가 - build.gradle.kts에 릴리즈 서명 설정 추가
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import java.util.Properties
|
||||
import java.io.FileInputStream
|
||||
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
@@ -5,6 +8,13 @@ plugins {
|
||||
id("dev.flutter.flutter-gradle-plugin")
|
||||
}
|
||||
|
||||
// key.properties 파일 로드
|
||||
val keystorePropertiesFile = rootProject.file("key.properties")
|
||||
val keystoreProperties = Properties()
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.naturebridgeai.asciineverdie"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
@@ -20,21 +30,25 @@ android {
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId = "com.naturebridgeai.asciineverdie"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||
minSdk = flutter.minSdkVersion
|
||||
targetSdk = flutter.targetSdkVersion
|
||||
versionCode = flutter.versionCode
|
||||
versionName = flutter.versionName
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
keyAlias = keystoreProperties["keyAlias"] as String?
|
||||
keyPassword = keystoreProperties["keyPassword"] as String?
|
||||
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
|
||||
storePassword = keystoreProperties["storePassword"] as String?
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
4
android/key.properties
Normal file
4
android/key.properties
Normal file
@@ -0,0 +1,4 @@
|
||||
storePassword=askiineverdie
|
||||
keyPassword=askiineverdie
|
||||
keyAlias=askiineverdie
|
||||
storeFile=../../doc/key/askiineverdie.jks
|
||||
3
doc/key/Readme.md
Normal file
3
doc/key/Readme.md
Normal file
@@ -0,0 +1,3 @@
|
||||
storePassword=askiineverdie
|
||||
keyPassword=askiineverdie
|
||||
keyAlias=askiineverdie
|
||||
BIN
doc/key/askiineverdie.jks
Normal file
BIN
doc/key/askiineverdie.jks
Normal file
Binary file not shown.
Reference in New Issue
Block a user