์•ˆ๋“œ๋กœ์ด๋“œ ์•ฑ ๊ฐœ๋ฐœ์ด ๋๋‚˜์„œ 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์—์„œ ์ƒˆ๋กœ ์•ฑ์„ ์ƒ์„ฑํ•ด์•ผ ํ•œ๋‹ค.

+ Recent posts