chore: 워치 릴리스 빌드 준비 — 업로드 키 서명, 운영 API 주소 속성화, R8, 라이선스 동봉
- 서명·API 주소는 ~/.gradle/gradle.properties 의 NALSSIGAK_* 에서 읽음 (저장소에 키 없음) - 앱 R8·리소스 줄이기, 스킨은 dex 없게 R8 만 켜고 리소스 줄이기는 끔 - MIT·OFL 전문을 앱 assets 로 같이 실음, *.jks·*.keystore 무시 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8c7fbdaac7
commit
b72206f7ee
5 files changed
+55
-2
No files matched your search
@@ -2,3 +2,20 @@ plugins {
|
||||
id("com.android.application") version "9.4.1" apply false
|
||||
id("org.jetbrains.kotlin.plugin.compose") version "2.4.20" apply false
|
||||
}
|
||||
|
||||
// 앱·스킨 공통 업로드 키. 키 파일·비밀번호는 저장소 밖 ~/.gradle/gradle.properties 에 둔다.
|
||||
// 값이 없으면 서명 없는 릴리스가 나온다(Play 에 올릴 수 없음).
|
||||
subprojects {
|
||||
plugins.withId("com.android.application") {
|
||||
extensions.configure<com.android.build.api.dsl.ApplicationExtension> {
|
||||
val store = providers.gradleProperty("NALSSIGAK_STORE_FILE").orNull ?: return@configure
|
||||
val upload = signingConfigs.create("upload") {
|
||||
storeFile = file(store)
|
||||
storePassword = providers.gradleProperty("NALSSIGAK_STORE_PASSWORD").get()
|
||||
keyAlias = providers.gradleProperty("NALSSIGAK_KEY_ALIAS").get()
|
||||
keyPassword = providers.gradleProperty("NALSSIGAK_KEY_PASSWORD").get()
|
||||
}
|
||||
buildTypes.getByName("release").signingConfig = upload
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user