์๋๋ก์ด๋ ์ฑ ๊ฐ๋ฐ์ด ๋๋์ relase ํ google play store์ ์ฌ๋ฆฌ๊ธฐ ์ํด์๋
์ฑ ์๋ช ์ด ํ์ํ๋ค.
์ด๋ฅผ ์ํด์ debug๊ฐ ์๋, release key๊ฐ ํ์ํ๋ค.
1. app ๋ด๋ถ์ key store๋ฅผ ๋ง๋ ๋ค.
2. app์ build.gradle์์ ์๋์ ๊ฐ์ด ์ด๋ฏธ ๋ง๋ค์ด๋์ key store๋ฅผ ์ง์ ํ๋ค.
android {
compileSdkVersion 30
defaultConfig {
...
}
}
signingConfigs {
release {
storeFile file('app_key_store')
storePassword "xxxxxxx!"
keyAlias "release"
keyPassword "xxxxxxx!"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
3. apk build ๊ฐ ๋์๊ฐ ๋ค, aab ํ์ผ์ด ์์ฑ ๋ ๊ฒ์ ํ์ธํ๋ค. (app/release ํด๋์ ์์น)
4. google play console์ ์ ๋ก๋ ํ๋ฉด ๋๋ค.
์ด ๋ ์ฃผ์ํ ์ ์, ํ๋ฒ ์ฑ์ ์ฌ๋ฆฐ ํ key store๋ฅผ ๋ณ๊ฒฝํ๊ฑฐ๋ package name์ ๋ณ๊ฒฝํ ์ ์๋ค๋ ๊ฒ์ด๋ค.
๋ง์ฝ ๊ทธ๋ ๊ฒ ํ๊ณ ์ถ์ผ๋ฉด ์ฑ๊ณผ play console์์ ์๋ก ์ฑ์ ์์ฑํด์ผ ํ๋ค.
'Coding > Kotlin' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Android ๊ฐ๋ฐ - Google service ์ฐ๋ํ๊ธฐ (0) | 2021.03.20 |
---|---|
[Android] - ์ฝํ๋ฆฐ[Kotlin] - ๊ฐ๋จํ ์ดํ๋ฆฌ์ผ์ด์ ๋ง๋ค๊ธฐ - 1 (19) | 2020.11.17 |